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

Issue 2747173005: Store dynamic Expect-CT state (Closed)

Created:
3 years, 9 months ago by estark
Modified:
3 years, 8 months ago
Reviewers:
mattm
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Store dynamic Expect-CT state This CL begins to implement the Expect-CT HTTP header (draft spec at https://tools.ietf.org/html/draft-ietf-httpbis-expect-ct-00). It adds: - a map to TransportSecurityState to track dynamically enabled Expect-CT hosts, mirroring how dynamic HPKP and HSTS state is stored. - corresponding TransportSecurityState methods for adding, updating, and retrieving dynamic Expect-CT state. - fields to the pre-existing TransportSecurityState::ExpectCTState struct needed to implement the spec (in particular, an |enforce| boolean and dates for implementing max-age). The ExpectCTState struct has up until now only been used for implementing Chrome's experimental preload-list-only version of Expect-CT, which is report-only and does not have an enforcement mode, nor a dynamic version. (I2I at https://groups.google.com/a/chromium.org/d/msg/blink-dev/tgn5R-58iek/Q6YCnu0RFQAJ) BUG=679012 Review-Url: https://codereview.chromium.org/2747173005 Cr-Commit-Position: refs/heads/master@{#465077} Committed: https://chromium.googlesource.com/chromium/src/+/2cf091d5d77a9d4d5451a010c2fd90442b57345e

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix rebase mishap #

Total comments: 2

Patch Set 4 : mattm comment #

Patch Set 5 : clear dynamic Expect-CT data when needed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -7 lines) Patch
M net/http/transport_security_state.h View 1 2 9 chunks +61 lines, -5 lines 0 comments Download
M net/http/transport_security_state.cc View 1 2 3 4 11 chunks +123 lines, -1 line 0 comments Download
M net/http/transport_security_state_unittest.cc View 1 2 3 4 5 chunks +93 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (23 generated)
estark
Hi mattm, would you be able to review a series of patches to implement the ...
3 years, 8 months ago (2017-04-14 18:24:15 UTC) #12
mattm
lgtm https://codereview.chromium.org/2747173005/diff/40001/net/http/transport_security_state.cc File net/http/transport_security_state.cc (right): https://codereview.chromium.org/2747173005/diff/40001/net/http/transport_security_state.cc#newcode1718 net/http/transport_security_state.cc:1718: end_(state.enabled_expect_ct_hosts_.end()) {} Can you check state.CalledOnValidThread() here to ...
3 years, 8 months ago (2017-04-15 04:50:18 UTC) #15
estark
https://codereview.chromium.org/2747173005/diff/40001/net/http/transport_security_state.cc File net/http/transport_security_state.cc (right): https://codereview.chromium.org/2747173005/diff/40001/net/http/transport_security_state.cc#newcode1718 net/http/transport_security_state.cc:1718: end_(state.enabled_expect_ct_hosts_.end()) {} On 2017/04/15 04:50:17, mattm wrote: > Can ...
3 years, 8 months ago (2017-04-15 19:16:09 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/2747173005/60001
3 years, 8 months ago (2017-04-15 19:16:27 UTC) #19
estark
I had forgotten to clear the dynamic Expect-CT state from various methods that wipe dynamic ...
3 years, 8 months ago (2017-04-15 19:36:17 UTC) #23
mattm
lgtm
3 years, 8 months ago (2017-04-17 22:28:18 UTC) #26
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/2747173005/80001
3 years, 8 months ago (2017-04-17 22:30:00 UTC) #28
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 00:31:12 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2cf091d5d77a9d4d5451a010c2fd...

Powered by Google App Engine
This is Rietveld 408576698