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

Issue 2709523008: [Cast Channel] Add support for nonce challenge to Cast channel authentication. (Closed)

Created:
3 years, 10 months ago by ryanchung
Modified:
3 years, 9 months ago
CC:
asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Cast Channel] Add support for nonce challenge to Cast channel authentication. Include feature flag and histograms. A nonce challenge is sent to the Cast receiver. The challenge is expected to be included in the signature supplied in the authentication response. BUG=694868 Review-Url: https://codereview.chromium.org/2709523008 Cr-Commit-Position: refs/heads/master@{#458292} Committed: https://chromium.googlesource.com/chromium/src/+/308019e846c5f06e679550aadd002b888a9690a0

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addresses comments #

Total comments: 4

Patch Set 3 : Addresses comments #

Total comments: 8

Patch Set 4 : Addresses comments #

Patch Set 5 : Use crypto::RandBytes for cryptographically secure random data #

Total comments: 8

Patch Set 6 : Addresses comments #

Patch Set 7 : Remove unused header #

Patch Set 8 : Added a comment #

Total comments: 2

Patch Set 9 : Make AuthContext constructor private #

Total comments: 2

Patch Set 10 : Helper function for histograms #

Patch Set 11 : Rebase-only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+380 lines, -30 lines) Patch
A components/test/data/cast_certificate/certificates/test_tls_cert.pem View 1 1 chunk +68 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 2 chunks +29 lines, -1 line 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util.cc View 1 2 3 4 5 6 7 8 9 11 chunks +140 lines, -22 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_auth_util_unittest.cc View 1 2 3 4 5 3 chunks +79 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_message_util.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M extensions/browser/api/cast_channel/cast_message_util.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +16 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +23 lines, -2 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (20 generated)
ryanchung
3 years, 10 months ago (2017-02-22 01:53:19 UTC) #2
mark a. foltz
Please unit test the changes in cast_auth_util.cc https://codereview.chromium.org/2709523008/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/2709523008/diff/1/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode167 extensions/browser/api/cast_channel/cast_auth_util.cc:167: if (response.sender_nonce().empty()) ...
3 years, 9 months ago (2017-02-27 23:04:32 UTC) #3
ryanchung
Added tests for cast_auth_util changes. https://codereview.chromium.org/2709523008/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/2709523008/diff/1/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode167 extensions/browser/api/cast_channel/cast_auth_util.cc:167: if (response.sender_nonce().empty()) { On ...
3 years, 9 months ago (2017-03-01 20:09:47 UTC) #4
mark a. foltz
If the nonce lifetime is not tied to a particular socket, it would probably make ...
3 years, 9 months ago (2017-03-03 23:25:51 UTC) #5
ryanchung
Each socket must keep track of a single nonce. It needs to verify that the ...
3 years, 9 months ago (2017-03-06 22:57:46 UTC) #6
mark a. foltz
Getting close, and looking pretty clean overall. Remaining question around AuthContext. https://codereview.chromium.org/2709523008/diff/40001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): ...
3 years, 9 months ago (2017-03-10 00:47:23 UTC) #7
ryanchung
https://codereview.chromium.org/2709523008/diff/40001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/2709523008/diff/40001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode162 extensions/browser/api/cast_channel/cast_auth_util.cc:162: AuthContext::AuthContext(const std::string& nonce) : nonce_(nonce) {} On 2017/03/10 00:47:23, ...
3 years, 9 months ago (2017-03-10 02:10:28 UTC) #8
mark a. foltz
LGTM Sorry for the delays in review. A couple of minor suggestions. https://codereview.chromium.org/2709523008/diff/80001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc ...
3 years, 9 months ago (2017-03-16 23:23:02 UTC) #10
ryanchung
https://codereview.chromium.org/2709523008/diff/80001/extensions/browser/api/cast_channel/cast_auth_util.cc File extensions/browser/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/2709523008/diff/80001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode104 extensions/browser/api/cast_channel/cast_auth_util.cc:104: static const std::string& Get() { On 2017/03/16 23:23:01, mark ...
3 years, 9 months ago (2017-03-17 02:46:06 UTC) #11
ryanchung
+isherman for histogram review Thanks.
3 years, 9 months ago (2017-03-17 17:06:35 UTC) #15
mark a. foltz
https://codereview.chromium.org/2709523008/diff/140001/extensions/browser/api/cast_channel/cast_auth_util.h File extensions/browser/api/cast_channel/cast_auth_util.h (right): https://codereview.chromium.org/2709523008/diff/140001/extensions/browser/api/cast_channel/cast_auth_util.h#newcode73 extensions/browser/api/cast_channel/cast_auth_util.h:73: explicit AuthContext(const std::string& nonce); Nit: Make this private, it ...
3 years, 9 months ago (2017-03-17 17:15:39 UTC) #16
ryanchung
https://codereview.chromium.org/2709523008/diff/140001/extensions/browser/api/cast_channel/cast_auth_util.h File extensions/browser/api/cast_channel/cast_auth_util.h (right): https://codereview.chromium.org/2709523008/diff/140001/extensions/browser/api/cast_channel/cast_auth_util.h#newcode73 extensions/browser/api/cast_channel/cast_auth_util.h:73: explicit AuthContext(const std::string& nonce); On 2017/03/17 17:15:39, mark a. ...
3 years, 9 months ago (2017-03-17 17:34:07 UTC) #17
Ilya Sherman
Metrics LGTM % a nit: https://codereview.chromium.org/2709523008/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/2709523008/diff/160001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode187 extensions/browser/api/cast_channel/cast_auth_util.cc:187: NONCE_COUNT); Please use a ...
3 years, 9 months ago (2017-03-17 19:45:26 UTC) #18
ryanchung
https://codereview.chromium.org/2709523008/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/2709523008/diff/160001/extensions/browser/api/cast_channel/cast_auth_util.cc#newcode187 extensions/browser/api/cast_channel/cast_auth_util.cc:187: NONCE_COUNT); On 2017/03/17 19:45:26, Ilya Sherman wrote: > Please ...
3 years, 9 months ago (2017-03-17 20:48:34 UTC) #19
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/2709523008/180001
3 years, 9 months ago (2017-03-20 21:39:20 UTC) #26
commit-bot: I haz the power
Failed to apply patch for extensions/browser/api/cast_channel/cast_socket.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 9 months ago (2017-03-21 00:50:41 UTC) #28
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/2709523008/200001
3 years, 9 months ago (2017-03-21 03:12:08 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 03:20:38 UTC) #38
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/308019e846c5f06e679550aadd00...

Powered by Google App Engine
This is Rietveld 408576698