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

Issue 2303673004: Hook up Chrome Cast sender to Cast CRL. (Closed)

Created:
4 years, 3 months ago by ryanchung
Modified:
4 years, 2 months ago
CC:
btolsch, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hook up Chrome Cast sender to Cast CRL. * Hook up cast_auth_util to Cast CRL. * Revocation status is not enforced at the moment. * Allows custom trust store to be passed to VerifyDeviceCert and ParseAndVerifyCRL. This is so that testing the Chrome Cast sender can use test roots. * Running the whole proto-test-suite on the Chrome Cast sender. Sync-up of the following with internal: * test_suite.proto * cast_channel.proto BUG=618463 Committed: https://crrev.com/559a29a14edcfdb03f5c952d0f6534b5bc4b7667 Cr-Commit-Position: refs/heads/master@{#425875}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Addresses comments #

Patch Set 3 : . #

Patch Set 4 : VerifyDeviceCert and ParseAndVerifyCRL to allow custom trust store #

Patch Set 5 : VerifyDeviceCertUsingCustomTrustStore and ParseAndVerifyCRLUsingCustomTrustStore #

Total comments: 12

Patch Set 6 : Merged Impl with UsingCustomTrustStore #

Total comments: 6

Patch Set 7 : Addresses some comments #

Patch Set 8 : Removed cache #

Patch Set 9 : Cleaned up unused headers. #

Total comments: 16

Patch Set 10 : Addresses comments #

Patch Set 11 : Rebase only #

Patch Set 12 : Some cleanup #

Total comments: 6

Patch Set 13 : Addresses comments #

Total comments: 2

Patch Set 14 : Add feature flag, add metric histograms #

Patch Set 15 : Metrics #

Total comments: 2

Patch Set 16 : Update logger.cc to surface errors. #

Total comments: 2

Patch Set 17 : Fixed nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+451 lines, -157 lines) Patch
M components/cast_certificate/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/cast_certificate/cast_cert_validator.h View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -11 lines 0 comments Download
M components/cast_certificate/cast_cert_validator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +18 lines, -26 lines 0 comments Download
M components/cast_certificate/cast_cert_validator_test_helpers.h View 1 2 chunks +14 lines, -0 lines 0 comments Download
M components/cast_certificate/cast_cert_validator_test_helpers.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +23 lines, -0 lines 0 comments Download
M components/cast_certificate/cast_cert_validator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -9 lines 0 comments Download
M components/cast_certificate/cast_crl.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -5 lines 0 comments Download
M components/cast_certificate/cast_crl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +14 lines, -18 lines 0 comments Download
M components/cast_certificate/cast_crl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +19 lines, -66 lines 0 comments Download
M components/cast_certificate/proto/test_suite.proto View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M components/test/data/cast_certificate/testsuite/testsuite1.pb View 1 2 3 4 5 6 7 8 9 10 11 12 Binary file 0 comments Download
M components/test/data/cast_certificate/testsuite/testsuite1.pb_text View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +23 lines, -4 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +111 lines, -16 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +159 lines, -1 line 0 comments Download
M extensions/browser/api/cast_channel/logger.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +10 lines, -0 lines 0 comments Download
M extensions/common/api/cast_channel/cast_channel.proto View 2 chunks +10 lines, -0 lines 0 comments Download
M extensions/common/api/cast_channel/logging.proto View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (14 generated)
ryanchung
4 years, 3 months ago (2016-09-01 18:26:47 UTC) #3
sheretov
I'm not quite sold on the verification-reverificatino approach here. See comments in the code. https://codereview.chromium.org/2303673004/diff/1/extensions/browser/api/cast_channel/cast_auth_util.cc ...
4 years, 3 months ago (2016-09-06 21:21:48 UTC) #4
ryanchung
https://codereview.chromium.org/2303673004/diff/1/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/2303673004/diff/1/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode225 extensions/browser/api/cast_channel/cast_auth_util.cc:225: // This function does the following On 2016/09/06 21:21:47, ...
4 years, 3 months ago (2016-09-07 17:23:05 UTC) #5
ryanchung
https://codereview.chromium.org/2303673004/diff/1/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/2303673004/diff/1/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode259 extensions/browser/api/cast_channel/cast_auth_util.cc:259: bool verification_success = cast_crypto::VerifyDeviceCert( On 2016/09/07 17:23:05, ryanchung wrote: ...
4 years, 3 months ago (2016-09-08 18:12:52 UTC) #7
ryanchung
We are removing the suffix "ForTest" on VerifyDeviceCert() and ParseAndVerifyCRL() to allow these functions to ...
4 years, 3 months ago (2016-09-08 18:17:23 UTC) #9
ryanchung
On 2016/09/08 18:17:23, ryanchung wrote: > We are removing the suffix "ForTest" on VerifyDeviceCert() and ...
4 years, 3 months ago (2016-09-08 18:18:31 UTC) #10
eroman
Quick comments on the API: This change has some ambiguity on what the peferred way ...
4 years, 3 months ago (2016-09-08 18:45:47 UTC) #11
ryanchung
On 2016/09/08 18:45:47, eroman wrote: > Quick comments on the API: > > This change ...
4 years, 3 months ago (2016-09-08 21:55:21 UTC) #12
sheretov
Couple of nits, but otherwise lgtm. https://codereview.chromium.org/2303673004/diff/80001/components/cast_certificate/cast_cert_validator.cc File components/cast_certificate/cast_cert_validator.cc (right): https://codereview.chromium.org/2303673004/diff/80001/components/cast_certificate/cast_cert_validator.cc#newcode336 components/cast_certificate/cast_cert_validator.cc:336: return VerifyDeviceCertImpl(certs, time, ...
4 years, 3 months ago (2016-09-10 00:26:57 UTC) #13
ryanchung
https://codereview.chromium.org/2303673004/diff/80001/components/cast_certificate/cast_cert_validator.cc File components/cast_certificate/cast_cert_validator.cc (right): https://codereview.chromium.org/2303673004/diff/80001/components/cast_certificate/cast_cert_validator.cc#newcode336 components/cast_certificate/cast_cert_validator.cc:336: return VerifyDeviceCertImpl(certs, time, context, policy, crl, crl_policy, On 2016/09/10 ...
4 years, 3 months ago (2016-09-10 00:50:09 UTC) #14
eroman
https://codereview.chromium.org/2303673004/diff/80001/components/cast_certificate/cast_cert_validator_test_helpers.cc File components/cast_certificate/cast_cert_validator_test_helpers.cc (right): https://codereview.chromium.org/2303673004/diff/80001/components/cast_certificate/cast_cert_validator_test_helpers.cc#newcode102 components/cast_certificate/cast_cert_validator_test_helpers.cc:102: base::TimeDelta::FromMilliseconds(time * 1000); Use FromSeconds(). (It also avoids doing ...
4 years, 3 months ago (2016-09-10 01:03:23 UTC) #15
ryanchung
https://codereview.chromium.org/2303673004/diff/80001/components/cast_certificate/cast_cert_validator_test_helpers.cc File components/cast_certificate/cast_cert_validator_test_helpers.cc (right): https://codereview.chromium.org/2303673004/diff/80001/components/cast_certificate/cast_cert_validator_test_helpers.cc#newcode102 components/cast_certificate/cast_cert_validator_test_helpers.cc:102: base::TimeDelta::FromMilliseconds(time * 1000); On 2016/09/10 01:03:23, eroman wrote: > ...
4 years, 3 months ago (2016-09-14 18:53:40 UTC) #16
eroman
https://codereview.chromium.org/2303673004/diff/100001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/2303673004/diff/100001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode224 extensions/browser/api/cast_channel/cast_auth_util.cc:224: crl = CastCRLCache::Put(response.crl(), std::move(crl_parsed)); On 2016/09/14 18:53:40, ryanchung wrote: ...
4 years, 3 months ago (2016-09-14 19:46:42 UTC) #17
ryanchung
https://codereview.chromium.org/2303673004/diff/100001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/2303673004/diff/100001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode224 extensions/browser/api/cast_channel/cast_auth_util.cc:224: crl = CastCRLCache::Put(response.crl(), std::move(crl_parsed)); On 2016/09/14 19:46:42, eroman wrote: ...
4 years, 3 months ago (2016-09-14 23:35:48 UTC) #18
eroman
Sounds good! In the future Matt and I will be spending some time profiling and ...
4 years, 3 months ago (2016-09-14 23:47:46 UTC) #19
ryanchung
+mfoltz@ This CL adds certificate revocation checking to the Chrome sender's cast channel device authentication. ...
4 years, 3 months ago (2016-09-16 17:55:54 UTC) #21
mark a. foltz
vadimgo@ and zivh@ own the code that use this API. I suggest getting their feedback. ...
4 years, 3 months ago (2016-09-16 23:09:42 UTC) #24
eroman
looks good, but will do a final review pass on next patchset before signing off ...
4 years, 3 months ago (2016-09-17 00:44:41 UTC) #26
ryanchung
https://codereview.chromium.org/2303673004/diff/160001/components/cast_certificate/cast_cert_validator.h File components/cast_certificate/cast_cert_validator.h (right): https://codereview.chromium.org/2303673004/diff/160001/components/cast_certificate/cast_cert_validator.h#newcode105 components/cast_certificate/cast_cert_validator.h:105: // For production use pass |trust_store| as nullptr to ...
4 years, 3 months ago (2016-09-22 21:38:52 UTC) #27
eroman
lgtm https://codereview.chromium.org/2303673004/diff/160001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/2303673004/diff/160001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode162 extensions/browser/api/cast_channel/cast_auth_util.cc:162: const base::Time& cert_verification_time, On 2016/09/22 21:38:51, ryanchung wrote: ...
4 years, 3 months ago (2016-09-22 22:02:51 UTC) #28
ryanchung
https://codereview.chromium.org/2303673004/diff/160001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/2303673004/diff/160001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode162 extensions/browser/api/cast_channel/cast_auth_util.cc:162: const base::Time& cert_verification_time, On 2016/09/22 22:02:50, eroman wrote: > ...
4 years, 3 months ago (2016-09-22 22:43:35 UTC) #29
ryanchung
+vadimgo@ for cast channel review. Thanks.
4 years, 3 months ago (2016-09-22 23:05:26 UTC) #31
vadimgo
lgtm
4 years, 2 months ago (2016-10-04 22:30:11 UTC) #32
ryanchung
mfoltz@ for cast_channel owners approval please. I will make a follow up CL for adding ...
4 years, 2 months ago (2016-10-04 22:40:47 UTC) #33
mark a. foltz
If I'm reading this correctly, there's no backwards compatibility for devices that don't provide a ...
4 years, 2 months ago (2016-10-08 04:44:33 UTC) #34
ryanchung
On 2016/10/08 04:44:33, mark a. foltz wrote: > If I'm reading this correctly, there's no ...
4 years, 2 months ago (2016-10-11 17:15:16 UTC) #35
mark a. foltz
LGTM +btolsch as an FYI. This is another set of conditions that may cause connections ...
4 years, 2 months ago (2016-10-11 22:12:16 UTC) #36
ryanchung
I forgot to update logger.cc It's been updated in patchset 16 so that the auth ...
4 years, 2 months ago (2016-10-11 22:59:19 UTC) #37
ryanchung
+asargent Please review /extensions/browser/BUILD.gn +jwd Please review histograms. Thanks you!
4 years, 2 months ago (2016-10-14 21:58:18 UTC) #39
mark a. foltz
Thanks for updating the logging. Still LGTM.
4 years, 2 months ago (2016-10-17 17:53:39 UTC) #40
asargent_no_longer_on_chrome
lgtm
4 years, 2 months ago (2016-10-17 20:48:24 UTC) #41
jwd
LGTM with nit. https://codereview.chromium.org/2303673004/diff/300001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/2303673004/diff/300001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode78 extensions/browser/api/cast_channel/cast_auth_util.cc:78: // Must match with histogram. Nit: ...
4 years, 2 months ago (2016-10-17 20:55:11 UTC) #42
ryanchung
https://codereview.chromium.org/2303673004/diff/300001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/2303673004/diff/300001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode78 extensions/browser/api/cast_channel/cast_auth_util.cc:78: // Must match with histogram. On 2016/10/17 20:55:11, jwd ...
4 years, 2 months ago (2016-10-17 23:58:56 UTC) #43
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/2303673004/320001
4 years, 2 months ago (2016-10-18 00:00:24 UTC) #46
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 2 months ago (2016-10-18 02:58:05 UTC) #48
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 03:00:20 UTC) #50
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/559a29a14edcfdb03f5c952d0f6534b5bc4b7667
Cr-Commit-Position: refs/heads/master@{#425875}

Powered by Google App Engine
This is Rietveld 408576698