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

Issue 2551153003: Add static domain security state generator tool. (Closed)

Created:
4 years ago by martijnc
Modified:
4 years ago
Reviewers:
lgarron, agl
CC:
cbentzel+watch_chromium.org, chromium-reviews, Ryan Sleevi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add static domain security state generator tool. This tool is a C++ port of the Go script [1] currently used to generate the static (preloaded) domain security state (net/http/transport_security_state_static.h) blob. A follow up CL [2] integrates this tool into the build process. This tool generates identical outputs as the Go script after merging [3]. The only difference should be related to whitespace and comments. You can run the tool manually: out/Default/domain_security_preload_generator net/http/transport_security_state_static.json net/http/transport_security_state_static.pins net/tools/domain_security_preload_generator/resources/transport_security_state_static.template /home/you/output.h -v [1] https://github.com/chromium/hstspreload/blob/master/cmd/transport_security_state_static_generate/transport_security_state_static_generate.go [2] https://codereview.chromium.org/2551943002 [3] https://github.com/chromium/hstspreload/pull/91 BUG=595493 R=agl@chromium.org, lgarron@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/09983e3dcc7573863a52ef827870613dde3cd83e Committed: https://crrev.com/40db4b769e07e2e2a7ccbdcf5a8d734a1385c32b Cr-Commit-Position: refs/heads/master@{#438358}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix base64 issue and accidental replace. #

Total comments: 81

Patch Set 3 : comments agl, styleguide issues & cross-platform fixes. #

Patch Set 4 : Align types. #

Patch Set 5 : Add MatchNames check. #

Patch Set 6 : Fix iOS? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2634 lines, -0 lines) Patch
M net/BUILD.gn View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/bit_writer.h View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/bit_writer.cc View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/cert_util.h View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/cert_util.cc View 1 2 3 4 1 chunk +155 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/domain_security_entry.h View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/domain_security_entry.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/domain_security_preload_generator.cc View 1 2 3 4 1 chunk +632 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/huffman/huffman_frequency_tracker.h View 1 2 1 chunk +84 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/huffman/huffman_frequency_tracker.cc View 1 2 1 chunk +159 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/pinset.h View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/pinset.cc View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/pinsets.h View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/pinsets.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/preloaded_state_generator.h View 1 2 1 chunk +59 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/preloaded_state_generator.cc View 1 2 3 1 chunk +366 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/resources/transport_security_state_static.template View 1 chunk +50 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/spki_hash.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/spki_hash.cc View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/trie/trie_bit_buffer.h View 1 2 3 4 1 chunk +85 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/trie/trie_bit_buffer.cc View 1 2 3 4 1 chunk +133 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/trie/trie_writer.h View 1 2 3 1 chunk +92 lines, -0 lines 0 comments Download
A net/tools/domain_security_preload_generator/trie/trie_writer.cc View 1 2 3 4 1 chunk +283 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (28 generated)
martijnc
This is what I currently have, the code isn't as polished as I'd like it ...
4 years ago (2016-12-05 19:13:26 UTC) #3
lgarron
Thanks so much for doing this! I believe agl@ wrote all the old relevant code. ...
4 years ago (2016-12-05 20:48:30 UTC) #5
agl
I'm not sure how familiar you are with code reviewing but I wanted to say, ...
4 years ago (2016-12-06 18:51:36 UTC) #8
martijnc
On 2016/12/06 at 18:51:36, agl wrote: > I'm not sure how familiar you are with ...
4 years ago (2016-12-07 22:37:54 UTC) #12
agl
Lucas: your call, but I would be inclined to land this CL at this stage ...
4 years ago (2016-12-12 23:59:59 UTC) #15
lgarron
I wanted to test this before landing, but this isn't working for me. :-( Do ...
4 years ago (2016-12-13 21:43:13 UTC) #16
lgarron
Oh, ignore me, I didn't change the output file name. :-P
4 years ago (2016-12-13 21:43:58 UTC) #17
lgarron
Awesome, it works and I've verified that the only difference (after updating to use the ...
4 years ago (2016-12-13 21:48:09 UTC) #18
agl
lgtm
4 years ago (2016-12-13 21:50:36 UTC) #19
martijnc
I'll send this to the CQ, feel free to cancel if you want to add ...
4 years ago (2016-12-13 22:07:10 UTC) #21
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/2551153003/220001
4 years ago (2016-12-13 22:07:49 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/122257) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-13 22:14:47 UTC) #24
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/09983e3dcc7573863a52ef827870613dde3cd83e Cr-Commit-Position: refs/heads/master@{#438316}
4 years ago (2016-12-13 22:41:12 UTC) #26
lgarron
Committed patchset #5 (id:220001) manually as 09983e3dcc7573863a52ef827870613dde3cd83e (presubmit successful).
4 years ago (2016-12-13 22:43:09 UTC) #28
lgarron
Oops, I accidentally landed this directly due to a a mixup about branches and patches. ...
4 years ago (2016-12-13 22:57:57 UTC) #29
martijnc
On 2016/12/13 at 22:57:57, lgarron wrote: > Oops, I accidentally landed this directly due to ...
4 years ago (2016-12-13 23:02:09 UTC) #30
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/2551153003/240001
4 years ago (2016-12-14 00:21:31 UTC) #38
commit-bot: I haz the power
Committed patchset #6 (id:240001)
4 years ago (2016-12-14 00:28:07 UTC) #41
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/40db4b769e07e2e2a7ccbdcf5a8d734a1385c32b Cr-Commit-Position: refs/heads/master@{#438358}
4 years ago (2016-12-14 00:32:29 UTC) #43
lgarron
Indeed, I had the wrong patch set for a binary list update that I had ...
4 years ago (2016-12-14 01:26:34 UTC) #44
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/2551153003/240001
4 years ago (2016-12-14 01:27:17 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/325425)
4 years ago (2016-12-14 01:38:31 UTC) #48
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/2551153003/240001
4 years ago (2016-12-14 01:46:18 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/325447)
4 years ago (2016-12-14 01:55:06 UTC) #52
martijnc
4 years ago (2016-12-14 16:49:20 UTC) #53
On 2016/12/14 at 01:26:34, lgarron wrote:
> Indeed, I had the wrong patch set for a binary list update that I had to land
directly.
> That's the kind of error that this tools should hopefully obsolete; sorry for
messing up this landing. :-(
> 
> I think you need to create a copy of this CL so we can land it; would you mind
doing that?

This already landed. It went through the second time;
https://chromium.googlesource.com/chromium/src/+/40db4b769e07e2e2a7ccbdcf5a8d...

Powered by Google App Engine
This is Rietveld 408576698