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

Issue 1211363005: Parse HPKP report-uri and persist in TransportSecurityPersister (Closed)

Created:
5 years, 6 months ago by estark
Modified:
5 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman, palmer
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Parse HPKP report-uri and persist in TransportSecurityPersister This CL parses the report-uri attribute on HPKP headers and stores them in TransportSecurityPersister. This is CL #1. CL #2: crrev.com/1212973002 (add net::CertificateReportSender) CL #3: crrev.com/1212613004 (build and send HPKP reports) BUG=445793 Committed: https://crrev.com/1320e36d908427d615357df1630348bfb38cb5c4 Cr-Commit-Position: refs/heads/master@{#339667} Committed: https://crrev.com/83487b6773bbda6a46191dede6010ec90e5a9ae8 Cr-Commit-Position: refs/heads/master@{#340490}

Patch Set 1 #

Patch Set 2 : minor cleanup #

Total comments: 13

Patch Set 3 : rsleevi comments #

Total comments: 3

Patch Set 4 : use a values-optional mode for NameValuePairsIterator #

Patch Set 5 : style tweaks #

Patch Set 6 : rebase #

Total comments: 21

Patch Set 7 : davidben comments #

Total comments: 12

Patch Set 8 : rsleevi comments #

Patch Set 9 : another rsleevi comment #

Total comments: 2

Patch Set 10 : pass iterators to LowerCaseEqualsASCII #

Total comments: 4

Patch Set 11 : style fixes #

Patch Set 12 : update LowerCaseEqualsAscii() call sites #

Patch Set 13 : GetNext() fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+432 lines, -222 lines) Patch
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_security_headers.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -1 line 0 comments Download
M net/http/http_security_headers.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +67 lines, -55 lines 0 comments Download
M net/http/http_security_headers_unittest.cc View 1 2 3 4 5 6 7 9 chunks +179 lines, -77 lines 0 comments Download
M net/http/http_util.h View 1 2 3 4 5 6 7 8 4 chunks +19 lines, -8 lines 0 comments Download
M net/http/http_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +28 lines, -49 lines 0 comments Download
M net/http/http_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +42 lines, -0 lines 0 comments Download
M net/http/transport_security_persister.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -0 lines 0 comments Download
M net/http/transport_security_persister_unittest.cc View 1 2 3 4 5 6 7 7 chunks +11 lines, -5 lines 0 comments Download
M net/http/transport_security_state.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -2 lines 0 comments Download
M net/http/transport_security_state.cc View 1 2 3 4 5 6 7 4 chunks +12 lines, -5 lines 0 comments Download
M net/http/transport_security_state_unittest.cc View 1 2 3 4 5 6 7 16 chunks +49 lines, -19 lines 0 comments Download

Messages

Total messages: 36 (7 generated)
estark
This is CL 1/4 split out from https://codereview.chromium.org/1211933005/.
5 years, 6 months ago (2015-06-26 19:28:17 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/1211363005/diff/20001/net/http/http_security_headers.cc File net/http/http_security_headers.cc (right): https://codereview.chromium.org/1211363005/diff/20001/net/http/http_security_headers.cc#newcode319 net/http/http_security_headers.cc:319: if (!HttpUtil::IsQuote(equals.second[0])) SECURITY BUG: equals.second.empty() may be true, in ...
5 years, 6 months ago (2015-06-26 19:41:53 UTC) #4
estark
Thanks Ryan. https://codereview.chromium.org/1211363005/diff/20001/net/http/http_security_headers.cc File net/http/http_security_headers.cc (right): https://codereview.chromium.org/1211363005/diff/20001/net/http/http_security_headers.cc#newcode319 net/http/http_security_headers.cc:319: if (!HttpUtil::IsQuote(equals.second[0])) On 2015/06/26 19:41:52, Ryan Sleevi ...
5 years, 6 months ago (2015-06-26 22:42:11 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/1211363005/diff/20001/net/http/http_security_headers_unittest.cc File net/http/http_security_headers_unittest.cc (right): https://codereview.chromium.org/1211363005/diff/20001/net/http/http_security_headers_unittest.cc#newcode526 net/http/http_security_headers_unittest.cc:526: backup_pin + ";" + good_pin + "; report-uri=\"/foo\"", On ...
5 years, 5 months ago (2015-06-27 12:13:59 UTC) #6
davidben
https://codereview.chromium.org/1211363005/diff/40001/net/http/http_security_headers.cc File net/http/http_security_headers.cc (right): https://codereview.chromium.org/1211363005/diff/40001/net/http/http_security_headers.cc#newcode109 net/http/http_security_headers.cc:109: size_t point = HttpUtil::FindDelimiter(source, 0, delimiter); On 2015/06/27 12:13:59, ...
5 years, 5 months ago (2015-06-29 22:38:44 UTC) #7
estark
Hello, I'm back from vacation. Patchset #5 adds an optional-values mode to NameValuePairsIterator, uses it ...
5 years, 5 months ago (2015-07-06 23:42:02 UTC) #8
estark
On 2015/07/06 23:42:02, estark wrote: > Hello, I'm back from vacation. Patchset #5 adds an ...
5 years, 5 months ago (2015-07-13 17:33:30 UTC) #9
davidben
Sorry about the delay. A few comments, but they're fairly minor. Thanks for doing the ...
5 years, 5 months ago (2015-07-15 22:21:07 UTC) #10
estark
Thanks David. https://codereview.chromium.org/1211363005/diff/100001/net/http/http_security_headers.cc File net/http/http_security_headers.cc (right): https://codereview.chromium.org/1211363005/diff/100001/net/http/http_security_headers.cc#newcode300 net/http/http_security_headers.cc:300: !HttpUtil::IsQuote(name_value_pairs.raw_value()[0]) || On 2015/07/15 22:21:06, David Benjamin ...
5 years, 5 months ago (2015-07-16 00:07:01 UTC) #11
Ryan Sleevi
https://codereview.chromium.org/1211363005/diff/120001/net/http/http_security_headers.cc File net/http/http_security_headers.cc (right): https://codereview.chromium.org/1211363005/diff/120001/net/http/http_security_headers.cc#newcode275 net/http/http_security_headers.cc:275: if (name_value_pairs.value().empty() || It's worth noting that you force ...
5 years, 5 months ago (2015-07-16 02:25:44 UTC) #12
estark
https://codereview.chromium.org/1211363005/diff/120001/net/http/http_security_headers.cc File net/http/http_security_headers.cc (right): https://codereview.chromium.org/1211363005/diff/120001/net/http/http_security_headers.cc#newcode275 net/http/http_security_headers.cc:275: if (name_value_pairs.value().empty() || On 2015/07/16 02:25:44, Ryan Sleevi (slow ...
5 years, 5 months ago (2015-07-16 04:52:18 UTC) #13
Ryan Sleevi
LGTM % inhumane nits https://codereview.chromium.org/1211363005/diff/160001/net/http/http_security_headers.cc File net/http/http_security_headers.cc (right): https://codereview.chromium.org/1211363005/diff/160001/net/http/http_security_headers.cc#newcode277 net/http/http_security_headers.cc:277: if (base::LowerCaseEqualsASCII(name_value_pairs.name(), "max-age")) { World's ...
5 years, 5 months ago (2015-07-16 05:07:51 UTC) #14
Ryan Sleevi
On 2015/07/16 05:07:51, Ryan Sleevi (slow through 7-15 wrote: > base::LowerCaseEqualsASCII(name_value_pairs.name_begin(), > name_value_pairs.name_end(), ...)) Longer-term, ...
5 years, 5 months ago (2015-07-16 05:11:10 UTC) #15
Ryan Sleevi
On 2015/07/16 05:11:10, Ryan Sleevi (slow through 7-15 wrote: > and more of a cleanup ...
5 years, 5 months ago (2015-07-16 05:15:03 UTC) #16
estark
Haha. Thanks! https://codereview.chromium.org/1211363005/diff/160001/net/http/http_security_headers.cc File net/http/http_security_headers.cc (right): https://codereview.chromium.org/1211363005/diff/160001/net/http/http_security_headers.cc#newcode277 net/http/http_security_headers.cc:277: if (base::LowerCaseEqualsASCII(name_value_pairs.name(), "max-age")) { On 2015/07/16 05:07:51, ...
5 years, 5 months ago (2015-07-16 05:18:49 UTC) #17
estark
eroman@chromium.org: can you please review //c/b/ui/webui/net_internals? (David I'll wait for your l-g-t-m as well before ...
5 years, 5 months ago (2015-07-16 17:34:15 UTC) #19
davidben
lgtm https://codereview.chromium.org/1211363005/diff/180001/net/http/http_util_unittest.cc File net/http/http_util_unittest.cc (right): https://codereview.chromium.org/1211363005/diff/180001/net/http/http_util_unittest.cc#newcode1114 net/http/http_util_unittest.cc:1114: EXPECT_FALSE(values_required_parser.valid()); Nit: This one is probably unnecessary since ...
5 years, 5 months ago (2015-07-16 20:13:01 UTC) #20
estark
Thanks David. https://codereview.chromium.org/1211363005/diff/180001/net/http/http_util_unittest.cc File net/http/http_util_unittest.cc (right): https://codereview.chromium.org/1211363005/diff/180001/net/http/http_util_unittest.cc#newcode1114 net/http/http_util_unittest.cc:1114: EXPECT_FALSE(values_required_parser.valid()); On 2015/07/16 20:13:01, David Benjamin wrote: ...
5 years, 5 months ago (2015-07-17 00:56:32 UTC) #21
estark
On 2015/07/17 00:56:32, estark wrote: > Thanks David. > > https://codereview.chromium.org/1211363005/diff/180001/net/http/http_util_unittest.cc > File net/http/http_util_unittest.cc (right): ...
5 years, 5 months ago (2015-07-17 21:14:21 UTC) #22
eroman
LGTM Sorry was vacationing thu/fri last week :)
5 years, 5 months ago (2015-07-20 23:30:37 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211363005/200001
5 years, 5 months ago (2015-07-21 15:02:07 UTC) #26
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 5 months ago (2015-07-21 16:39:49 UTC) #27
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/1320e36d908427d615357df1630348bfb38cb5c4 Cr-Commit-Position: refs/heads/master@{#339667}
5 years, 5 months ago (2015-07-21 16:41:10 UTC) #28
Ryan Sleevi
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/1249823002/ by rsleevi@chromium.org. ...
5 years, 5 months ago (2015-07-21 22:02:24 UTC) #29
estark
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%281%29/builds/40097 is an example of the BogusPinHeaders tests hanging
5 years, 5 months ago (2015-07-21 22:10:57 UTC) #30
estark
cc'ing palmer@ because he expressed interest, thanks palmer! Feel free to add yourself to any ...
5 years, 5 months ago (2015-07-22 00:18:45 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211363005/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1211363005/240001
5 years, 4 months ago (2015-07-27 14:12:23 UTC) #34
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 4 months ago (2015-07-27 17:11:22 UTC) #35
commit-bot: I haz the power
5 years, 4 months ago (2015-07-27 17:12:18 UTC) #36
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/83487b6773bbda6a46191dede6010ec90e5a9ae8
Cr-Commit-Position: refs/heads/master@{#340490}

Powered by Google App Engine
This is Rietveld 408576698