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

Issue 2144693004: Add the ability to send Expect-Staple reports. (Closed)

Created:
4 years, 5 months ago by dadrian
Modified:
4 years, 5 months ago
Reviewers:
svaldez, Ryan Sleevi, estark
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@ocsp-verify-result
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add the ability to send Expect-Staple reports. This adds a |ProcessExpectStaple| method to TransportSecurityState that implements reporting for Expect-Staple, using contents of SSLInfo and OCSPVerifyResult. No report is sent if a valid staple is provided, or if the remote host is not on the Expect-Staple preload list. This method is not currently called by any socket implementation. BUG=598021 Committed: https://crrev.com/c87b456d823a4bd61599c5ce4512848a6f2be7b6 Cr-Commit-Position: refs/heads/master@{#406742}

Patch Set 1 #

Patch Set 2 : Compile after rebase #

Total comments: 16

Patch Set 3 : Clean tests, add documentation. #

Total comments: 19

Patch Set 4 : More test cleanups. #

Total comments: 1

Patch Set 5 : Remove stragglers. #

Patch Set 6 : Make switch statements Android/ChromeOS friendly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -0 lines) Patch
M net/http/transport_security_state.h View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M net/http/transport_security_state.cc View 1 2 3 4 5 2 chunks +103 lines, -0 lines 0 comments Download
M net/http/transport_security_state_unittest.cc View 1 2 3 4 5 2 chunks +288 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
dadrian
More Expect-Staple!
4 years, 5 months ago (2016-07-18 23:50:13 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/2144693004/diff/20001/net/http/transport_security_state.cc File net/http/transport_security_state.cc (right): https://codereview.chromium.org/2144693004/diff/20001/net/http/transport_security_state.cc#newcode640 net/http/transport_security_state.cc:640: std::string ResponseStatusToString(OCSPVerifyResult::ResponseStatus status) { Documentation needed :) For example, ...
4 years, 5 months ago (2016-07-19 00:02:49 UTC) #3
dadrian
https://codereview.chromium.org/2144693004/diff/20001/net/http/transport_security_state.cc File net/http/transport_security_state.cc (right): https://codereview.chromium.org/2144693004/diff/20001/net/http/transport_security_state.cc#newcode670 net/http/transport_security_state.cc:670: } On 2016/07/19 00:02:49, Ryan Sleevi (extremely slow) wrote: ...
4 years, 5 months ago (2016-07-19 00:18:54 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/2144693004/diff/20001/net/http/transport_security_state.cc File net/http/transport_security_state.cc (right): https://codereview.chromium.org/2144693004/diff/20001/net/http/transport_security_state.cc#newcode670 net/http/transport_security_state.cc:670: } On 2016/07/19 00:18:54, dadrian wrote: > I meant ...
4 years, 5 months ago (2016-07-19 01:17:22 UTC) #5
dadrian
https://codereview.chromium.org/2144693004/diff/20001/net/http/transport_security_state.cc File net/http/transport_security_state.cc (right): https://codereview.chromium.org/2144693004/diff/20001/net/http/transport_security_state.cc#newcode640 net/http/transport_security_state.cc:640: std::string ResponseStatusToString(OCSPVerifyResult::ResponseStatus status) { On 2016/07/19 00:02:49, Ryan Sleevi ...
4 years, 5 months ago (2016-07-19 18:48:40 UTC) #6
Ryan Sleevi
https://codereview.chromium.org/2144693004/diff/40001/net/http/transport_security_state.cc File net/http/transport_security_state.cc (right): https://codereview.chromium.org/2144693004/diff/40001/net/http/transport_security_state.cc#newcode1299 net/http/transport_security_state.cc:1299: if (!GetStaticExpectStapleState(host_port_pair.host(), &expect_staple_state)) In terms of matching conditions to ...
4 years, 5 months ago (2016-07-19 19:11:05 UTC) #7
dadrian
https://codereview.chromium.org/2144693004/diff/40001/net/http/transport_security_state.cc File net/http/transport_security_state.cc (right): https://codereview.chromium.org/2144693004/diff/40001/net/http/transport_security_state.cc#newcode1299 net/http/transport_security_state.cc:1299: if (!GetStaticExpectStapleState(host_port_pair.host(), &expect_staple_state)) On 2016/07/19 19:11:04, Ryan Sleevi (extremely ...
4 years, 5 months ago (2016-07-19 21:21:46 UTC) #8
Ryan Sleevi
lgtm https://codereview.chromium.org/2144693004/diff/60001/net/http/transport_security_state.h File net/http/transport_security_state.h (right): https://codereview.chromium.org/2144693004/diff/60001/net/http/transport_security_state.h#newcode474 net/http/transport_security_state.h:474: void CheckExpectStapleAndMaybeSendReport(const HostPortPair& host_port_pair, Leftover? :)
4 years, 5 months ago (2016-07-19 21:24:57 UTC) #9
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/2144693004/80001
4 years, 5 months ago (2016-07-20 23:35:25 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/99273)
4 years, 5 months ago (2016-07-20 23:45:47 UTC) #14
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/2144693004/100001
4 years, 5 months ago (2016-07-21 00:03:34 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/204816)
4 years, 5 months ago (2016-07-21 00:54:22 UTC) #19
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/2144693004/100001
4 years, 5 months ago (2016-07-21 01:00:34 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/204844)
4 years, 5 months ago (2016-07-21 01:24:05 UTC) #23
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/2144693004/100001
4 years, 5 months ago (2016-07-21 01:50:37 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-21 02:10:24 UTC) #26
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 02:11:49 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c87b456d823a4bd61599c5ce4512848a6f2be7b6
Cr-Commit-Position: refs/heads/master@{#406742}

Powered by Google App Engine
This is Rietveld 408576698