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

Issue 2436233002: Record UMA metrics for Must-Staple certificates on private roots (Closed)

Created:
4 years, 2 months ago by estark
Modified:
4 years, 2 months ago
Reviewers:
eroman, Steven Holte
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, extensions-reviews_chromium.org, davidben
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Record UMA metrics for Must-Staple certificates on private roots We'd like to get an idea of what MITM proxies tend to do with the TLS Feature Extension (colloquially known as Must-Staple). If MITM proxies blindly copy the extension into generated certificates, then deploying Must-Staple will cause a lot of breakage, due to MITM proxies generating Must-Staple certificates but not stapling OCSP responses. This CL adds an UMA metric for the presence of the TLS Feature Extension in certificates that chain to private roots, as a baby step in this investigation. (Note that this conflates misbehaving MITM proxies with private PKIs that are using Must-Staple, so it's only a starting point for an investigation.) A new asn1::HasTLSFeatureExtension() function is used to record this histogram. BUG=633732 Committed: https://crrev.com/2e2e27cf8745fc190864cf182d5467363d59fb13 Cr-Commit-Position: refs/heads/master@{#426971}

Patch Set 1 #

Patch Set 2 : Add another histogram for OCSP response status #

Total comments: 11

Patch Set 3 : eroman comments #

Patch Set 4 : add new test cert to net.gypi #

Patch Set 5 : ... and to README #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -48 lines) Patch
M net/cert/asn1_util.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M net/cert/asn1_util.cc View 1 2 3 chunks +99 lines, -48 lines 0 comments Download
M net/cert/cert_verify_proc.cc View 1 2 3 chunks +34 lines, -0 lines 0 comments Download
M net/cert/cert_verify_proc_unittest.cc View 1 4 chunks +118 lines, -0 lines 0 comments Download
M net/cert/x509_certificate_unittest.cc View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M net/data/ssl/certificates/README View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/tls_feature_extension.pem View 1 chunk +21 lines, -0 lines 0 comments Download
M net/data/ssl/scripts/ee.cnf View 1 chunk +4 lines, -0 lines 0 comments Download
M net/data/ssl/scripts/generate-test-certs.sh View 1 chunk +8 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
estark
Eric, could you take a look, please? I might have done this in a completely ...
4 years, 2 months ago (2016-10-20 23:59:59 UTC) #6
eroman
This general approach looks reasonable to me. https://codereview.chromium.org/2436233002/diff/20001/net/cert/asn1_util.cc File net/cert/asn1_util.cc (right): https://codereview.chromium.org/2436233002/diff/20001/net/cert/asn1_util.cc#newcode196 net/cert/asn1_util.cc:196: LOG(ERROR) << ...
4 years, 2 months ago (2016-10-21 01:49:23 UTC) #7
estark
https://codereview.chromium.org/2436233002/diff/20001/net/cert/asn1_util.cc File net/cert/asn1_util.cc (right): https://codereview.chromium.org/2436233002/diff/20001/net/cert/asn1_util.cc#newcode196 net/cert/asn1_util.cc:196: LOG(ERROR) << "No extensions!"; On 2016/10/21 01:49:22, eroman wrote: ...
4 years, 2 months ago (2016-10-21 02:11:29 UTC) #10
eroman
lgtm
4 years, 2 months ago (2016-10-21 18:37:37 UTC) #13
estark
holte, can you please review histograms.xml?
4 years, 2 months ago (2016-10-21 18:49:35 UTC) #15
Steven Holte
histograms lgtm
4 years, 2 months ago (2016-10-21 23:01:37 UTC) #16
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/2436233002/80001
4 years, 2 months ago (2016-10-21 23:06:02 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-22 04:33:21 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-10-22 04:38:02 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2e2e27cf8745fc190864cf182d5467363d59fb13
Cr-Commit-Position: refs/heads/master@{#426971}

Powered by Google App Engine
This is Rietveld 408576698