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

Issue 2241213002: Distinguish between SCT invalidity reasons in UMA (Closed)

Created:
4 years, 4 months ago by Eran Messeri
Modified:
4 years, 4 months ago
CC:
Eran Messeri, cbentzel+watch_chromium.org, certificate-transparency-chrome_googlegroups.com, chromium-reviews, darin-cc_chromium.org, jam, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, Ryan Sleevi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Distinguish between SCT invalidity reasons in UMA As detailed in the bug, Signed Certificate Timestamps (SCTs) can be marked as invalid for two reasons. This change splits the invalid SCT status into two: * Invalid timestamp. * Invalid signature. Since right now we'd only like to collect data on whether invalidity is due to an ecosystem problem (invalid signatures) or misconfigured clients (invalid timestamp), the change only affects the metrics we collect. All other consumers of the SCT verification status have been adjusted to treat both statuses the same. Per rsleevi's recommendation, the SCTVerifyStatus enum has been expanded and the value for the old invalid status is no longer used. BUG=634006 Committed: https://crrev.com/194b45d575cf7168d3875ae1d06960151598093d Cr-Commit-Position: refs/heads/master@{#412779}

Patch Set 1 #

Patch Set 2 : A patchset that actually works #

Total comments: 10

Patch Set 3 : Addressing review comments #

Total comments: 4

Patch Set 4 : Changing _MAX to be the last value #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -27 lines) Patch
M chrome/browser/ssl/chrome_expect_ct_reporter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc View 3 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_unittest.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M content/common/ssl_status_serialization.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/ssl_status_serialization_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/cert/ct_sct_to_string.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M net/cert/multi_log_ct_verifier.cc View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download
M net/cert/sct_status_flags.h View 1 2 3 1 chunk +12 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 36 (22 generated)
Eran Messeri
Eric, Emily, PTAL at this final change to resolve crbug.com/634006 by actually changing the SCTVerifyStatus ...
4 years, 4 months ago (2016-08-15 13:07:42 UTC) #8
estark
lgtm with a couple nits https://codereview.chromium.org/2241213002/diff/20001/chrome/browser/ssl/chrome_expect_ct_reporter.cc File chrome/browser/ssl/chrome_expect_ct_reporter.cc (right): https://codereview.chromium.org/2241213002/diff/20001/chrome/browser/ssl/chrome_expect_ct_reporter.cc#newcode156 chrome/browser/ssl/chrome_expect_ct_reporter.cc:156: case net::ct::SCT_STATUS_INVALID_TIMESTAMP: Just thinking ...
4 years, 4 months ago (2016-08-15 13:22:08 UTC) #9
eroman
lgtm https://codereview.chromium.org/2241213002/diff/20001/content/common/ssl_status_serialization.cc File content/common/ssl_status_serialization.cc (right): https://codereview.chromium.org/2241213002/diff/20001/content/common/ssl_status_serialization.cc#newcode37 content/common/ssl_status_serialization.cc:37: case net::ct::SCT_STATUS_MAX: Why is MAX considered valid? From ...
4 years, 4 months ago (2016-08-15 19:20:22 UTC) #12
Eran Messeri
This change doesn't introduce any behaviour changes, but provides finer-grained metrics in UMA (for the ...
4 years, 4 months ago (2016-08-16 14:17:18 UTC) #15
Avi (use Gerrit)
https://codereview.chromium.org/2241213002/diff/40001/content/common/ssl_status_serialization.cc File content/common/ssl_status_serialization.cc (right): https://codereview.chromium.org/2241213002/diff/40001/content/common/ssl_status_serialization.cc#newcode39 content/common/ssl_status_serialization.cc:39: case net::ct::SCT_STATUS_MAX: This is wrong (see my other note). ...
4 years, 4 months ago (2016-08-16 15:25:47 UTC) #16
Eran Messeri
Avi, thanks for the quick review. PTAL - fixed as you suggested. https://codereview.chromium.org/2241213002/diff/40001/content/common/ssl_status_serialization.cc File content/common/ssl_status_serialization.cc ...
4 years, 4 months ago (2016-08-16 16:06:09 UTC) #17
Eran Messeri
isherman: Please review the histograms.xml change, particularly the way two values were added to the ...
4 years, 4 months ago (2016-08-16 16:08:29 UTC) #19
Avi (use Gerrit)
LGTM I see, and it's rather unfortunate that we've set things up so that we ...
4 years, 4 months ago (2016-08-16 16:53:24 UTC) #20
Ilya Sherman
histograms.xml lgtm -- this is indeed exactly the way to split a single enum entry ...
4 years, 4 months ago (2016-08-16 20:42:14 UTC) #21
Eran Messeri
(switching reviewers as felt@ seems to be out today) raymes, please review the changes to ...
4 years, 4 months ago (2016-08-17 16:14:11 UTC) #27
raymes
website_settings rs lgtm
4 years, 4 months ago (2016-08-18 01:05:01 UTC) #28
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/2241213002/60001
4 years, 4 months ago (2016-08-18 09:56:22 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-18 10:00:56 UTC) #34
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 10:02:45 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/194b45d575cf7168d3875ae1d06960151598093d
Cr-Commit-Position: refs/heads/master@{#412779}

Powered by Google App Engine
This is Rietveld 408576698