Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1633)

Issue 2153123002: Certificate Transparency: Collect metrics on age of SCT vs STH (Closed)

Created:
4 years, 5 months ago by Eran Messeri
Modified:
4 years, 5 months ago
CC:
chromium-reviews, certificate-transparency-chrome_googlegroups.com, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Measure how often SCTs can't be checked because they're too new Signed Certificate Timestamps (SCTs) designate Merkle tree leaves that can be checked for inclusion with a CT Log's Signed Tree Head (STH). However, inclusion should only be checked against an STH that is newer than the SCTs timestamp by at least 24 hours - this is because Logs' have a Maximum Merge Delay of 24 hours, which is the time they have to produce a new STH that incorporates a given SCT. STHs are delivered periodically out of band. If there isn't a new enough STH, then SCTs will need to be marked as pending inclusion check, waiting for a new STH to be delivered. To determine how frequently an STH should be delivered (currently, daily) and how big the SCT queue list should be (that is, how frequently clients encounter a brand new SCT that is newer than any STH), measure how often an SCT can't be checked for inclusion immediately after it's been seen. BUG=613495 Committed: https://crrev.com/b03a8a77ead185c85a6c55303ac20176eaa20a56 Cr-Commit-Position: refs/heads/master@{#407471}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rename histogram #

Total comments: 6

Patch Set 3 : Addressing review comments #

Total comments: 2

Patch Set 4 : Renaming enum name #

Total comments: 16

Patch Set 5 : Addressing Ryan's comments #

Total comments: 4

Patch Set 6 : Tri-state enum indicating lack of valid STH #

Total comments: 6

Patch Set 7 : Fixing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -3 lines) Patch
M components/certificate_transparency/single_tree_tracker.cc View 1 2 3 4 5 6 2 chunks +41 lines, -3 lines 0 comments Download
M components/certificate_transparency/single_tree_tracker_unittest.cc View 1 2 3 4 5 7 chunks +43 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (34 generated)
Eran Messeri
Rob, PTAL.
4 years, 5 months ago (2016-07-15 12:08:10 UTC) #3
Rob Percival
On 2016/07/15 12:08:10, Eran Messeri wrote: > Rob, PTAL. LGTM, bar a nit. Think we ...
4 years, 5 months ago (2016-07-15 12:49:51 UTC) #4
Rob Percival
https://codereview.chromium.org/2153123002/diff/1/components/certificate_transparency/single_tree_tracker_unittest.cc File components/certificate_transparency/single_tree_tracker_unittest.cc (right): https://codereview.chromium.org/2153123002/diff/1/components/certificate_transparency/single_tree_tracker_unittest.cc#newcode135 components/certificate_transparency/single_tree_tracker_unittest.cc:135: histograms.ExpectTotalCount(kPendingSTHHistogramName, 0); I think it's worth adding a comment ...
4 years, 5 months ago (2016-07-15 14:38:16 UTC) #5
Eran Messeri
On 2016/07/15 12:49:51, Rob Percival wrote: > On 2016/07/15 12:08:10, Eran Messeri wrote: > > ...
4 years, 5 months ago (2016-07-18 07:51:41 UTC) #6
Eran Messeri
https://codereview.chromium.org/2153123002/diff/1/components/certificate_transparency/single_tree_tracker_unittest.cc File components/certificate_transparency/single_tree_tracker_unittest.cc (right): https://codereview.chromium.org/2153123002/diff/1/components/certificate_transparency/single_tree_tracker_unittest.cc#newcode135 components/certificate_transparency/single_tree_tracker_unittest.cc:135: histograms.ExpectTotalCount(kPendingSTHHistogramName, 0); On 2016/07/15 14:38:16, Rob Percival wrote: > ...
4 years, 5 months ago (2016-07-18 08:53:42 UTC) #8
Rob Percival
On 2016/07/18 07:51:41, Eran Messeri wrote: > On 2016/07/15 12:49:51, Rob Percival wrote: > > ...
4 years, 5 months ago (2016-07-18 09:37:10 UTC) #11
Alexei Svitkine (slow)
https://codereview.chromium.org/2153123002/diff/20001/components/certificate_transparency/single_tree_tracker.cc File components/certificate_transparency/single_tree_tracker.cc (right): https://codereview.chromium.org/2153123002/diff/20001/components/certificate_transparency/single_tree_tracker.cc#newcode18 components/certificate_transparency/single_tree_tracker.cc:18: "Net.CertificateTransparency.CanInclusionCheckSCT"; If you're only going to use it from ...
4 years, 5 months ago (2016-07-18 15:03:57 UTC) #14
Eran Messeri
Thanks for the prompt review, PTAL. https://codereview.chromium.org/2153123002/diff/20001/components/certificate_transparency/single_tree_tracker.cc File components/certificate_transparency/single_tree_tracker.cc (right): https://codereview.chromium.org/2153123002/diff/20001/components/certificate_transparency/single_tree_tracker.cc#newcode18 components/certificate_transparency/single_tree_tracker.cc:18: "Net.CertificateTransparency.CanInclusionCheckSCT"; On 2016/07/18 ...
4 years, 5 months ago (2016-07-20 11:02:17 UTC) #15
Alexei Svitkine (slow)
lgtm % comment https://codereview.chromium.org/2153123002/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2153123002/diff/40001/tools/metrics/histograms/histograms.xml#newcode67303 tools/metrics/histograms/histograms.xml:67303: +<enum name="BooleanCanBeChecked" type="int"> Nit: Since this ...
4 years, 5 months ago (2016-07-20 15:14:04 UTC) #20
Eran Messeri
Alexei, thanks for the review, addressed your comment. Ryan - this is now ready for ...
4 years, 5 months ago (2016-07-20 19:44:08 UTC) #21
Ryan Sleevi
Please significantly expand the CL description. Based on the unit tests and code documentation as ...
4 years, 5 months ago (2016-07-20 20:34:00 UTC) #24
Eran Messeri
https://codereview.chromium.org/2153123002/diff/60001/components/certificate_transparency/single_tree_tracker.cc File components/certificate_transparency/single_tree_tracker.cc (right): https://codereview.chromium.org/2153123002/diff/60001/components/certificate_transparency/single_tree_tracker.cc#newcode27 components/certificate_transparency/single_tree_tracker.cc:27: void LogCanBeCheckedForInclusionToUMA(bool can_be_checked) { FYI I've documented, in this ...
4 years, 5 months ago (2016-07-21 17:53:43 UTC) #29
Ryan Sleevi
I tried to rewrite the CL description to be clearer, and to follow the general ...
4 years, 5 months ago (2016-07-21 18:15:01 UTC) #33
Eran Messeri
https://codereview.chromium.org/2153123002/diff/80001/components/certificate_transparency/single_tree_tracker.cc File components/certificate_transparency/single_tree_tracker.cc (right): https://codereview.chromium.org/2153123002/diff/80001/components/certificate_transparency/single_tree_tracker.cc#newcode31 components/certificate_transparency/single_tree_tracker.cc:31: // logged as if they cannot be checked for ...
4 years, 5 months ago (2016-07-21 20:01:34 UTC) #36
Ryan Sleevi
https://codereview.chromium.org/2153123002/diff/80001/components/certificate_transparency/single_tree_tracker.cc File components/certificate_transparency/single_tree_tracker.cc (right): https://codereview.chromium.org/2153123002/diff/80001/components/certificate_transparency/single_tree_tracker.cc#newcode31 components/certificate_transparency/single_tree_tracker.cc:31: // logged as if they cannot be checked for ...
4 years, 5 months ago (2016-07-21 20:14:19 UTC) #37
Eran Messeri
From your reply I gather we should measure cases where SCTs are not checked because ...
4 years, 5 months ago (2016-07-21 20:38:46 UTC) #38
Ryan Sleevi
On 2016/07/21 20:38:46, Eran Messeri wrote: > From your reply I gather we should measure ...
4 years, 5 months ago (2016-07-21 20:51:24 UTC) #39
Eran Messeri
Per your feedback, switched the histogram from bool to an enum indicating all 3 states: ...
4 years, 5 months ago (2016-07-22 10:40:18 UTC) #43
Eran Messeri
https://codereview.chromium.org/2153123002/diff/80001/components/certificate_transparency/single_tree_tracker.cc File components/certificate_transparency/single_tree_tracker.cc (right): https://codereview.chromium.org/2153123002/diff/80001/components/certificate_transparency/single_tree_tracker.cc#newcode31 components/certificate_transparency/single_tree_tracker.cc:31: // logged as if they cannot be checked for ...
4 years, 5 months ago (2016-07-22 10:40:29 UTC) #44
Alexei Svitkine (slow)
still lgtm https://codereview.chromium.org/2153123002/diff/100001/components/certificate_transparency/single_tree_tracker.cc File components/certificate_transparency/single_tree_tracker.cc (right): https://codereview.chromium.org/2153123002/diff/100001/components/certificate_transparency/single_tree_tracker.cc#newcode18 components/certificate_transparency/single_tree_tracker.cc:18: enum SCTCanBeCheckedForInclusion { Add a comment not ...
4 years, 5 months ago (2016-07-22 13:37:33 UTC) #47
Ryan Sleevi
lgtm https://codereview.chromium.org/2153123002/diff/100001/components/certificate_transparency/single_tree_tracker.cc File components/certificate_transparency/single_tree_tracker.cc (right): https://codereview.chromium.org/2153123002/diff/100001/components/certificate_transparency/single_tree_tracker.cc#newcode21 components/certificate_transparency/single_tree_tracker.cc:21: CAN_BE_CHECKED = 2, Document these. This is the ...
4 years, 5 months ago (2016-07-22 16:57:30 UTC) #48
Eran Messeri
All fixed, will be submitting if the trybots are happy. https://codereview.chromium.org/2153123002/diff/100001/components/certificate_transparency/single_tree_tracker.cc File components/certificate_transparency/single_tree_tracker.cc (right): https://codereview.chromium.org/2153123002/diff/100001/components/certificate_transparency/single_tree_tracker.cc#newcode18 ...
4 years, 5 months ago (2016-07-25 13:22:52 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2153123002/120001
4 years, 5 months ago (2016-07-25 13:51:40 UTC) #55
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-25 14:20:48 UTC) #57
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 14:22:16 UTC) #59
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b03a8a77ead185c85a6c55303ac20176eaa20a56
Cr-Commit-Position: refs/heads/master@{#407471}

Powered by Google App Engine
This is Rietveld 408576698