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 1083493003: Encrypt certificate reports before uploading to HTTP URLs (Closed)

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

Description

Encrypt certificate reports before uploading to HTTP URLs This CL introduces a new protobuf to store encrypted CertLoggerRequests. Serialized certificate reports are encrypted with an AES-CTR-128-HMAC-SHA256 AEAD (from BoringSSL, thus encrypted reports are only supported on BoringSSL platforms) before being uploaded to HTTP endpoints. |CertificateErrorReporter::IsHttpUploadUrlSupported| allows users of the class to set an HTTP URL if supported. BUG=461590 Committed: https://crrev.com/0a3351c2a7c81284f82e6531380a21d079f55056 Cr-Commit-Position: refs/heads/master@{#326876} Committed: https://crrev.com/03206a1fcfe475604570d49dca0a885591e45ad7 Cr-Commit-Position: refs/heads/master@{#326957}

Patch Set 1 #

Patch Set 2 : style fixes and miscellaneous cleanup #

Patch Set 3 : more cleanup #

Total comments: 4

Patch Set 4 : insert prod public key #

Patch Set 5 : rebase #

Total comments: 5

Patch Set 6 : Use BoringSSL's AEAD #

Patch Set 7 : fix safe browsing upload url check #

Patch Set 8 : whitespace and delete dead code #

Patch Set 9 : add missing #ifdefs #

Patch Set 10 : fix non-openssl unit test #

Patch Set 11 : make nonce/key length static functions on Aead #

Total comments: 23

Patch Set 12 : rebase #

Patch Set 13 : add HKDF label, make Decrypt method static, add algorithm parameter, other tweaks #

Total comments: 1

Patch Set 14 : rebase #

Patch Set 15 : revert accidentally-committed completely-unrelated change #

Patch Set 16 : fix unused variable compile error on non-openssl #

Total comments: 5

Patch Set 17 : rebase #

Patch Set 18 : break up CertificateErrorReporter constructor call for readability #

Patch Set 19 : remove unnecessary nullptr assignment #

Total comments: 2

Patch Set 20 : tweak comments #

Patch Set 21 : add aead files to BUILD.gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+505 lines, -26 lines) Patch
M chrome/browser/net/cert_logger.proto View 2 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/net/certificate_error_reporter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/net/certificate_error_reporter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +144 lines, -6 lines 0 comments Download
M chrome/browser/net/certificate_error_reporter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +59 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/ping_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +20 lines, -10 lines 0 comments Download
M crypto/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -0 lines 0 comments Download
A crypto/aead_openssl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +48 lines, -0 lines 0 comments Download
A crypto/aead_openssl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +125 lines, -0 lines 0 comments Download
A crypto/aead_openssl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +54 lines, -0 lines 0 comments Download
M crypto/crypto.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download
M crypto/crypto.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (8 generated)
estark
agl, could you please take a look? I had previously sent you a similar CL ...
5 years, 8 months ago (2015-04-13 23:43:58 UTC) #2
estark
cc'ing felt -- feel free to review too if you have comments, obviously
5 years, 8 months ago (2015-04-13 23:45:02 UTC) #3
felt
https://codereview.chromium.org/1083493003/diff/40001/chrome/browser/net/certificate_error_reporter.cc File chrome/browser/net/certificate_error_reporter.cc (right): https://codereview.chromium.org/1083493003/diff/40001/chrome/browser/net/certificate_error_reporter.cc#newcode29 chrome/browser/net/certificate_error_reporter.cc:29: // TODO(estark): insert the production public key Why's it ...
5 years, 8 months ago (2015-04-14 04:30:16 UTC) #5
estark
https://codereview.chromium.org/1083493003/diff/40001/chrome/browser/net/certificate_error_reporter.cc File chrome/browser/net/certificate_error_reporter.cc (right): https://codereview.chromium.org/1083493003/diff/40001/chrome/browser/net/certificate_error_reporter.cc#newcode29 chrome/browser/net/certificate_error_reporter.cc:29: // TODO(estark): insert the production public key On 2015/04/14 ...
5 years, 8 months ago (2015-04-14 04:39:16 UTC) #6
estark
friendly ping, agl :) https://codereview.chromium.org/1083493003/diff/40001/chrome/browser/net/certificate_error_reporter.cc File chrome/browser/net/certificate_error_reporter.cc (right): https://codereview.chromium.org/1083493003/diff/40001/chrome/browser/net/certificate_error_reporter.cc#newcode29 chrome/browser/net/certificate_error_reporter.cc:29: // TODO(estark): insert the production ...
5 years, 8 months ago (2015-04-16 15:04:24 UTC) #7
agl
Sorry for missing this email the first time, and I have to run off to ...
5 years, 8 months ago (2015-04-16 17:26:29 UTC) #8
estark
https://codereview.chromium.org/1083493003/diff/80001/chrome/browser/net/certificate_error_reporter.cc File chrome/browser/net/certificate_error_reporter.cc (right): https://codereview.chromium.org/1083493003/diff/80001/chrome/browser/net/certificate_error_reporter.cc#newcode6 chrome/browser/net/certificate_error_reporter.cc:6: On 2015/04/16 17:26:29, agl wrote: > Overall comment, this ...
5 years, 8 months ago (2015-04-16 18:45:12 UTC) #9
agl
On 2015/04/16 18:45:12, estark wrote: > Ah, it didn't occur to me that we could ...
5 years, 8 months ago (2015-04-16 18:47:30 UTC) #10
estark
On 2015/04/16 18:47:30, agl wrote: > On 2015/04/16 18:45:12, estark wrote: > > Ah, it ...
5 years, 8 months ago (2015-04-17 03:51:35 UTC) #11
estark
Adam, could you please take another look? In this iteration I'm using BoringSSL's implementation (exposed ...
5 years, 8 months ago (2015-04-18 05:24:43 UTC) #13
estark
On 2015/04/18 05:24:43, estark wrote: > Adam, could you please take another look? > > ...
5 years, 8 months ago (2015-04-21 20:01:33 UTC) #14
agl
https://codereview.chromium.org/1083493003/diff/220001/chrome/browser/net/certificate_error_reporter.cc File chrome/browser/net/certificate_error_reporter.cc (right): https://codereview.chromium.org/1083493003/diff/220001/chrome/browser/net/certificate_error_reporter.cc#newcode14 chrome/browser/net/certificate_error_reporter.cc:14: #if defined(USE_OPENSSL) On 2015/04/18 05:24:42, estark wrote: > Should ...
5 years, 8 months ago (2015-04-21 20:28:26 UTC) #15
estark
https://codereview.chromium.org/1083493003/diff/220001/chrome/browser/net/certificate_error_reporter.cc File chrome/browser/net/certificate_error_reporter.cc (right): https://codereview.chromium.org/1083493003/diff/220001/chrome/browser/net/certificate_error_reporter.cc#newcode14 chrome/browser/net/certificate_error_reporter.cc:14: #if defined(USE_OPENSSL) On 2015/04/21 20:28:25, agl wrote: > On ...
5 years, 8 months ago (2015-04-22 03:55:31 UTC) #16
estark
Rebase, and reverted an accidentally-committed change I made while debugging something unrelated
5 years, 8 months ago (2015-04-22 04:02:55 UTC) #17
estark
agl, could you please take a look at this again when you have a chance?
5 years, 8 months ago (2015-04-23 17:45:23 UTC) #18
agl
lgtm https://codereview.chromium.org/1083493003/diff/320001/crypto/aead_openssl.cc File crypto/aead_openssl.cc (right): https://codereview.chromium.org/1083493003/diff/320001/crypto/aead_openssl.cc#newcode34 crypto/aead_openssl.cc:34: key_ = key; This should be fixed up ...
5 years, 8 months ago (2015-04-23 20:09:22 UTC) #19
estark
mattm@chromium.org: could you please review chrome/browser/safe_browsing?
5 years, 8 months ago (2015-04-23 22:26:36 UTC) #21
mattm
https://codereview.chromium.org/1083493003/diff/320001/chrome/browser/safe_browsing/ping_manager.cc File chrome/browser/safe_browsing/ping_manager.cc (right): https://codereview.chromium.org/1083493003/diff/320001/chrome/browser/safe_browsing/ping_manager.cc#newcode60 chrome/browser/safe_browsing/ping_manager.cc:60: : GURL(kExtendedReportingUploadUrlSecure), This condition feels a little large/unwieldy to ...
5 years, 8 months ago (2015-04-23 22:59:14 UTC) #22
estark
https://codereview.chromium.org/1083493003/diff/320001/chrome/browser/safe_browsing/ping_manager.cc File chrome/browser/safe_browsing/ping_manager.cc (right): https://codereview.chromium.org/1083493003/diff/320001/chrome/browser/safe_browsing/ping_manager.cc#newcode60 chrome/browser/safe_browsing/ping_manager.cc:60: : GURL(kExtendedReportingUploadUrlSecure), On 2015/04/23 22:59:14, mattm wrote: > This ...
5 years, 8 months ago (2015-04-23 23:53:47 UTC) #23
mattm
safe_browsing lgtm
5 years, 8 months ago (2015-04-24 00:58:03 UTC) #24
estark
Thanks mattm and agl. felt: do you want to take a quick look before I ...
5 years, 8 months ago (2015-04-24 03:20:22 UTC) #25
felt
I don't have anything to add to agl & mattm's reviews https://codereview.chromium.org/1083493003/diff/380001/chrome/browser/net/certificate_error_reporter.h File chrome/browser/net/certificate_error_reporter.h (right): ...
5 years, 8 months ago (2015-04-24 19:33:57 UTC) #26
estark
https://codereview.chromium.org/1083493003/diff/380001/chrome/browser/net/certificate_error_reporter.h File chrome/browser/net/certificate_error_reporter.h (right): https://codereview.chromium.org/1083493003/diff/380001/chrome/browser/net/certificate_error_reporter.h#newcode80 chrome/browser/net/certificate_error_reporter.h:80: // over SSL. On 2015/04/24 19:33:57, felt wrote: > ...
5 years, 8 months ago (2015-04-24 20:10:05 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1083493003/400001
5 years, 8 months ago (2015-04-24 20:10:35 UTC) #30
commit-bot: I haz the power
Committed patchset #20 (id:400001)
5 years, 8 months ago (2015-04-24 21:07:57 UTC) #31
commit-bot: I haz the power
Patchset 20 (id:??) landed as https://crrev.com/0a3351c2a7c81284f82e6531380a21d079f55056 Cr-Commit-Position: refs/heads/master@{#326876}
5 years, 8 months ago (2015-04-24 21:08:44 UTC) #32
Justin Donnelly
A revert of this CL (patchset #20 id:400001) has been created in https://codereview.chromium.org/1073913004/ by jdonnelly@chromium.org. ...
5 years, 8 months ago (2015-04-24 21:28:42 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1083493003/420001
5 years, 8 months ago (2015-04-25 01:03:47 UTC) #36
commit-bot: I haz the power
Committed patchset #21 (id:420001)
5 years, 8 months ago (2015-04-25 04:52:35 UTC) #37
commit-bot: I haz the power
5 years, 8 months ago (2015-04-25 04:54:31 UTC) #38
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/03206a1fcfe475604570d49dca0a885591e45ad7
Cr-Commit-Position: refs/heads/master@{#326957}

Powered by Google App Engine
This is Rietveld 408576698