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

Issue 627573002: Enable passing cast channel certificate authority keys. (Closed)

Created:
6 years, 2 months ago by vadimgo
Modified:
6 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Enable passing cast channel certificate authority keys. BUG=417090 Committed: https://crrev.com/df6b610eb8fb8cdaac5eb6b16aafefac3c90adb9 Cr-Commit-Position: refs/heads/master@{#302141}

Patch Set 1 #

Patch Set 2 : Enable passing cast channel certificate authority keys. #

Patch Set 3 : Added trusted certificate authorities data verification. #

Total comments: 8

Patch Set 4 : Code review changes. #

Patch Set 5 : Updated idl. #

Patch Set 6 : Fixed callback signature #

Patch Set 7 : Use SHA-256 fingerprints and protobuf #

Patch Set 8 : Removed unneeded header include. #

Total comments: 22

Patch Set 9 : Set trusted ICAs. #

Patch Set 10 : Fixed initialization code. #

Total comments: 24

Patch Set 11 : Code review feedback changes. #

Total comments: 12

Patch Set 12 : Code review changes. #

Patch Set 13 : Removed unused include. #

Patch Set 14 : Added static to consts. #

Total comments: 18

Patch Set 15 : Code review changes #

Patch Set 16 : Browser and unit tests. #

Total comments: 4

Patch Set 17 : Code review changes. #

Total comments: 48

Patch Set 18 : Code review changes. #

Total comments: 10

Patch Set 19 : Code review changes. #

Total comments: 15

Patch Set 20 : Code review changes. #

Patch Set 21 : Added comments and rebased. #

Patch Set 22 : Added SetTrustedCerificateAuthorities stub to cast_auth_util_openssl and rebased. #

Total comments: 2

Patch Set 23 : Synced with nss/ssl common code changes. #

Total comments: 2

Patch Set 24 : Updated histograms.xml #

Patch Set 25 : Rebased. #

Patch Set 26 : Added newline in cast_channel_apitest.cc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+655 lines, -144 lines) Patch
M extensions/browser/api/cast_channel/cast_auth_ica.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +55 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_ica.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 17 chunks +271 lines, -125 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_auth_ica_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +150 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +20 lines, -2 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +24 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +106 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/api.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M extensions/common/api/cast_channel.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +16 lines, -6 lines 0 comments Download
M extensions/common/api/cast_channel/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A + extensions/common/api/cast_channel/authority_keys.proto View 1 2 3 4 5 6 1 chunk +7 lines, -10 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 77 (25 generated)
mark a. foltz
I have concerns about this approach. (1) It creates an opportunity for an attacker to ...
6 years, 2 months ago (2014-10-03 20:07:12 UTC) #2
vadimgo
This approach pursues appoaches 1 and 2 proposed here: https://code.google.com/p/chromium/issues/detail?id=410668#c5 https://codereview.chromium.org/627573002/diff/40001/extensions/browser/api/cast_channel/cast_auth_util_nss.cc File extensions/browser/api/cast_channel/cast_auth_util_nss.cc (right): https://codereview.chromium.org/627573002/diff/40001/extensions/browser/api/cast_channel/cast_auth_util_nss.cc#newcode32 ...
6 years, 2 months ago (2014-10-03 20:42:36 UTC) #3
mark a. foltz
Thanks, the proto buffer is making me much happier with the patch. I'm sure there ...
6 years, 2 months ago (2014-10-09 17:57:20 UTC) #5
Ryan Sleevi
I've provided a preliminary scan, but there are a LOT of style issues. I'd like ...
6 years, 2 months ago (2014-10-09 21:02:43 UTC) #6
vadimgo
https://codereview.chromium.org/627573002/diff/140001/extensions/browser/api/cast_channel/cast_auth_util_nss.cc File extensions/browser/api/cast_channel/cast_auth_util_nss.cc (right): https://codereview.chromium.org/627573002/diff/140001/extensions/browser/api/cast_channel/cast_auth_util_nss.cc#newcode617 extensions/browser/api/cast_channel/cast_auth_util_nss.cc:617: std::vector<ICACertInfo> g_AllowedICAs; On 2014/10/09 17:57:20, mark a. foltz wrote: ...
6 years, 2 months ago (2014-10-09 23:31:56 UTC) #7
Ryan Sleevi
https://codereview.chromium.org/627573002/diff/290001/extensions/browser/api/cast_channel/cast_auth_util.h File extensions/browser/api/cast_channel/cast_auth_util.h (right): https://codereview.chromium.org/627573002/diff/290001/extensions/browser/api/cast_channel/cast_auth_util.h#newcode63 extensions/browser/api/cast_channel/cast_auth_util.h:63: const std::string& keys); Reminder on the ordering https://codereview.chromium.org/627573002/diff/290001/extensions/browser/api/cast_channel/cast_auth_util_nss.cc File ...
6 years, 2 months ago (2014-10-11 02:22:36 UTC) #8
vadimgo
Ryan, I added a helper class for storing cast channel intermediate certificate authorities, changed parameter ...
6 years, 2 months ago (2014-10-13 22:14:24 UTC) #9
mark a. foltz
Getting closer! - The design of this means that there is one singleton key store ...
6 years, 2 months ago (2014-10-14 06:15:04 UTC) #10
dougsteed
https://codereview.chromium.org/627573002/diff/680001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/627573002/diff/680001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode672 extensions/browser/api/cast_channel/cast_auth_util.cc:672: certificate_authorities_.push_back(cert_info); On 2014/10/14 06:15:04, mark a. foltz wrote: > ...
6 years, 2 months ago (2014-10-14 18:09:51 UTC) #11
vadimgo
https://codereview.chromium.org/627573002/diff/680001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/627573002/diff/680001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode630 extensions/browser/api/cast_channel/cast_auth_util.cc:630: // Returns NULL, if no such ICA is found. ...
6 years, 2 months ago (2014-10-14 19:51:25 UTC) #12
vadimgo
Added browser and unit tests.
6 years, 2 months ago (2014-10-15 19:45:32 UTC) #16
mark a. foltz
On 2014/10/15 19:45:32, vadimgo wrote: > Added browser and unit tests. lgtm % a couple ...
6 years, 2 months ago (2014-10-16 22:15:33 UTC) #17
vadimgo
On 2014/10/16 22:15:33, mark a. foltz wrote: > On 2014/10/15 19:45:32, vadimgo wrote: > > ...
6 years, 2 months ago (2014-10-16 22:17:57 UTC) #18
mark a. foltz
Somehow my last message did not include them... https://codereview.chromium.org/627573002/diff/780001/extensions/browser/api/cast_channel/cast_auth_util_unittest.cc File extensions/browser/api/cast_channel/cast_auth_util_unittest.cc (right): https://codereview.chromium.org/627573002/diff/780001/extensions/browser/api/cast_channel/cast_auth_util_unittest.cc#newcode35 extensions/browser/api/cast_channel/cast_auth_util_unittest.cc:35: void ...
6 years, 2 months ago (2014-10-16 22:46:18 UTC) #19
vadimgo
https://codereview.chromium.org/627573002/diff/780001/extensions/browser/api/cast_channel/cast_auth_util_unittest.cc File extensions/browser/api/cast_channel/cast_auth_util_unittest.cc (right): https://codereview.chromium.org/627573002/diff/780001/extensions/browser/api/cast_channel/cast_auth_util_unittest.cc#newcode35 extensions/browser/api/cast_channel/cast_auth_util_unittest.cc:35: void CastChannelAuthorityKeysTest::TestKeys() { On 2014/10/16 22:46:18, mark a. foltz ...
6 years, 2 months ago (2014-10-17 00:42:12 UTC) #20
Ryan Sleevi
There's still a lot of style issues here. Apologies for marking it up so much, ...
6 years, 2 months ago (2014-10-17 19:53:22 UTC) #21
vadimgo
Ryan, thanks for your review. Please take another look. https://codereview.chromium.org/627573002/diff/800001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/627573002/diff/800001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode38 extensions/browser/api/cast_channel/cast_auth_util.cc:38: ...
6 years, 2 months ago (2014-10-20 23:35:28 UTC) #23
mark a. foltz
Still lgtm https://codereview.chromium.org/627573002/diff/840001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/627573002/diff/840001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode16 extensions/browser/api/cast_channel/cast_auth_util.cc:16: static const net::SHA256HashValue kFingerprintICA1 = {{0x52, What ...
6 years, 2 months ago (2014-10-21 20:22:15 UTC) #24
Ryan Sleevi
https://codereview.chromium.org/627573002/diff/840001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/627573002/diff/840001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode1028 extensions/browser/api/cast_channel/cast_auth_util.cc:1028: return false; If this fails, then all cast connections ...
6 years, 2 months ago (2014-10-21 22:38:03 UTC) #25
vadimgo
Thank you, Mark and Ryan. https://codereview.chromium.org/627573002/diff/840001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/627573002/diff/840001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode16 extensions/browser/api/cast_channel/cast_auth_util.cc:16: static const net::SHA256HashValue kFingerprintICA1 ...
6 years, 2 months ago (2014-10-21 23:35:58 UTC) #26
Ryan Sleevi
LGTM, but there are several things to be addressed before committing. https://codereview.chromium.org/627573002/diff/860001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): ...
6 years, 2 months ago (2014-10-22 22:07:10 UTC) #27
vadimgo
Please note that in addition to code review changes, the latest patch also contains the ...
6 years, 2 months ago (2014-10-23 18:03:26 UTC) #29
mark a. foltz
Still lgtm. Looks like you may need to rebase the patch before committing.
6 years, 2 months ago (2014-10-24 17:44:49 UTC) #30
Ryan Sleevi
I'm going to LGTM this, but I still have reservations about the quality of the ...
6 years, 2 months ago (2014-10-24 19:42:15 UTC) #31
vadimgo
Updated the comments based on Ryan's suggestions and rebased.
6 years, 1 month ago (2014-10-24 21:51:39 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/627573002/920001
6 years, 1 month ago (2014-10-24 21:54:13 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/19992)
6 years, 1 month ago (2014-10-24 22:03:38 UTC) #36
Ken Rockot(use gerrit already)
On 2014/10/24 22:03:38, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-10-25 14:47:14 UTC) #38
Ken Rockot(use gerrit already)
On 2014/10/25 14:47:14, Ken Rockot wrote: > On 2014/10/24 22:03:38, I haz the power (commit-bot) ...
6 years, 1 month ago (2014-10-26 20:29:52 UTC) #40
vadimgo
Added SetTrustedCertificateAuthorities stub to cast_auth_util_openssl and rebased.
6 years, 1 month ago (2014-10-27 17:12:17 UTC) #42
Ken Rockot(use gerrit already)
https://codereview.chromium.org/627573002/diff/940001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc File extensions/browser/api/cast_channel/cast_auth_util_openssl.cc (right): https://codereview.chromium.org/627573002/diff/940001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc#newcode21 extensions/browser/api/cast_channel/cast_auth_util_openssl.cc:21: NOTREACHED(); Why is this not reached? Clearly it's being ...
6 years, 1 month ago (2014-10-27 17:17:50 UTC) #43
vadimgo
https://codereview.chromium.org/627573002/diff/940001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc File extensions/browser/api/cast_channel/cast_auth_util_openssl.cc (right): https://codereview.chromium.org/627573002/diff/940001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc#newcode21 extensions/browser/api/cast_channel/cast_auth_util_openssl.cc:21: NOTREACHED(); On 2014/10/27 17:17:50, Ken Rockot wrote: > Why ...
6 years, 1 month ago (2014-10-27 17:29:54 UTC) #44
Ken Rockot(use gerrit already)
On 2014/10/27 17:29:54, vadimgo wrote: > https://codereview.chromium.org/627573002/diff/940001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc > File extensions/browser/api/cast_channel/cast_auth_util_openssl.cc (right): > > https://codereview.chromium.org/627573002/diff/940001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc#newcode21 > ...
6 years, 1 month ago (2014-10-27 17:32:18 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/627573002/940001
6 years, 1 month ago (2014-10-27 18:00:45 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/20301)
6 years, 1 month ago (2014-10-27 18:08:16 UTC) #49
Ryan Sleevi
On 2014/10/27 17:29:54, vadimgo wrote: > https://codereview.chromium.org/627573002/diff/940001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc > File extensions/browser/api/cast_channel/cast_auth_util_openssl.cc (right): > > https://codereview.chromium.org/627573002/diff/940001/extensions/browser/api/cast_channel/cast_auth_util_openssl.cc#newcode21 > ...
6 years, 1 month ago (2014-10-27 18:11:56 UTC) #50
Ryan Sleevi
Removing LG until the OS X issues are addressed. You need to support OpenSSL, and ...
6 years, 1 month ago (2014-10-27 18:12:23 UTC) #51
vadimgo
Integrated with Kevin's nss/ssl agnostic ica changes.
6 years, 1 month ago (2014-10-29 23:17:22 UTC) #56
Ryan Sleevi
LGTM once Kevin's stuff lands.
6 years, 1 month ago (2014-10-29 23:21:06 UTC) #57
chromium-reviews
My CL has landed. On Wed, Oct 29, 2014 at 4:21 PM, <rsleevi@chromium.org> wrote: > ...
6 years, 1 month ago (2014-10-29 23:25:20 UTC) #58
jar (doing other things)
FWIW: I was looked around to see how populated the histogram called Extensions.FunctionCalls was... and ...
6 years, 1 month ago (2014-10-29 23:56:26 UTC) #59
vadimgo
https://codereview.chromium.org/627573002/diff/1010001/extensions/browser/extension_function_histogram_value.h File extensions/browser/extension_function_histogram_value.h (right): https://codereview.chromium.org/627573002/diff/1010001/extensions/browser/extension_function_histogram_value.h#newcode971 extensions/browser/extension_function_histogram_value.h:971: CAST_CHANNEL_SETAUTHORITYKEYS, On 2014/10/29 23:56:26, jar wrote: > Please include ...
6 years, 1 month ago (2014-10-30 00:08:14 UTC) #60
Devlin
On 2014/10/29 23:56:26, jar wrote: > FWIW: I was looked around to see how populated ...
6 years, 1 month ago (2014-10-30 15:49:15 UTC) #61
jar (doing other things)
histograms.xml and extension_function_histogram_value.h LGTM
6 years, 1 month ago (2014-10-30 17:01:09 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/627573002/1030001
6 years, 1 month ago (2014-10-30 17:15:47 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/86264) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/75866) android_aosp ...
6 years, 1 month ago (2014-10-30 17:19:29 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/627573002/1040001
6 years, 1 month ago (2014-10-30 17:30:28 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/627573002/1060001
6 years, 1 month ago (2014-10-30 17:53:35 UTC) #70
commit-bot: I haz the power
Failed to apply patch for extensions/browser/extension_function_histogram_value.h: While running git apply --index -3 -p1; error: patch ...
6 years, 1 month ago (2014-10-30 19:27:18 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/627573002/1060001
6 years, 1 month ago (2014-10-30 19:56:38 UTC) #75
commit-bot: I haz the power
Committed patchset #26 (id:1060001)
6 years, 1 month ago (2014-10-30 19:58:27 UTC) #76
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 19:59:18 UTC) #77
Message was sent while issue was closed.
Patchset 26 (id:??) landed as
https://crrev.com/df6b610eb8fb8cdaac5eb6b16aafefac3c90adb9
Cr-Commit-Position: refs/heads/master@{#302141}

Powered by Google App Engine
This is Rietveld 408576698