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

Issue 2726873003: Make transport security state data source configurable. (Closed)

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

Description

Make transport security state data source configurable. The static transport security state data is currently harcoded to the data in transport_security_state_static.h. In order to test the whole process end-to-end, this CL makes the data source configurable so that unittests can specicfy their own data source. These data sources are generated by the generator during the build from several json and pin files. The actual tests will be landed in a follow up CL but [1] gives a general overview of this approach (which is based on the registry_controlled_domains DAFSA tests) and is split off from [2]. [1] https://codereview.chromium.org/2680933009 [2] https://codereview.chromium.org/2660793002 BUG=595493 Review-Url: https://codereview.chromium.org/2726873003 Cr-Commit-Position: refs/heads/master@{#457971} Committed: https://chromium.googlesource.com/chromium/src/+/9b806ab221956979391d7d1974c6ea434c7f1752

Patch Set 1 #

Patch Set 2 : Add TransportSecurityStateSource struct. #

Total comments: 15

Patch Set 3 : comments rsleevi #

Patch Set 4 : newline #

Patch Set 5 : -struct #

Total comments: 2

Patch Set 6 : ternary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -22 lines) Patch
M net/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M net/http/transport_security_state.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M net/http/transport_security_state.cc View 1 2 3 4 5 6 chunks +20 lines, -8 lines 0 comments Download
A net/http/transport_security_state_source.h View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
M net/http/transport_security_state_static.h View 1 2 3 4 5 3 chunks +10 lines, -7 lines 0 comments Download
M net/tools/transport_security_state_generator/resources/transport_security_state_static.template View 1 2 3 4 5 3 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 40 (30 generated)
martijnc
This is the next part I split off from https://codereview.chromium.org/2660793002. It makes the HSTS data ...
3 years, 9 months ago (2017-03-01 22:12:28 UTC) #11
martijnc
friendly ping :)
3 years, 9 months ago (2017-03-13 18:07:52 UTC) #12
Ryan Sleevi
Thanks for the ping! Sorry about the delays, don't hesitate to make such pings in ...
3 years, 9 months ago (2017-03-13 18:31:19 UTC) #13
martijnc
https://codereview.chromium.org/2726873003/diff/20001/net/http/transport_security_state.h File net/http/transport_security_state.h (right): https://codereview.chromium.org/2726873003/diff/20001/net/http/transport_security_state.h#newcode33 net/http/transport_security_state.h:33: SetTransportSecurityStateSource(const TransportSecurityStateSource* source); On 2017/03/13 at 18:31:18, Ryan Sleevi ...
3 years, 9 months ago (2017-03-13 21:51:40 UTC) #26
Ryan Sleevi
https://codereview.chromium.org/2726873003/diff/20001/net/http/transport_security_state_structs.h File net/http/transport_security_state_structs.h (right): https://codereview.chromium.org/2726873003/diff/20001/net/http/transport_security_state_structs.h#newcode5 net/http/transport_security_state_structs.h:5: #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_STRUCTS_H_ On 2017/03/13 21:51:40, martijnc wrote: > Not ...
3 years, 9 months ago (2017-03-13 21:59:40 UTC) #27
martijnc
Thanks for the feedback! https://codereview.chromium.org/2726873003/diff/20001/net/http/transport_security_state_structs.h File net/http/transport_security_state_structs.h (right): https://codereview.chromium.org/2726873003/diff/20001/net/http/transport_security_state_structs.h#newcode5 net/http/transport_security_state_structs.h:5: #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_STRUCTS_H_ On 2017/03/13 at ...
3 years, 9 months ago (2017-03-13 22:47:58 UTC) #28
Ryan Sleevi
LGTM (Also, if it's ever > 24 hours and I haven't replied, please ping :D) ...
3 years, 9 months ago (2017-03-17 22:07:16 UTC) #29
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/2726873003/170001
3 years, 9 months ago (2017-03-18 16:09:54 UTC) #36
martijnc
https://codereview.chromium.org/2726873003/diff/150001/net/http/transport_security_state.cc File net/http/transport_security_state.cc (right): https://codereview.chromium.org/2726873003/diff/150001/net/http/transport_security_state.cc#newcode735 net/http/transport_security_state.cc:735: } On 2017/03/17 at 22:07:16, Ryan Sleevi wrote: > ...
3 years, 9 months ago (2017-03-18 16:09:58 UTC) #37
commit-bot: I haz the power
3 years, 9 months ago (2017-03-18 16:14:07 UTC) #40
Message was sent while issue was closed.
Committed patchset #6 (id:170001) as
https://chromium.googlesource.com/chromium/src/+/9b806ab221956979391d7d1974c6...

Powered by Google App Engine
This is Rietveld 408576698