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

Issue 291093002: Fail the SPDY transaction if it does not meet TLS base requirements. (Closed)

Created:
6 years, 7 months ago by willchan no longer on Chromium
Modified:
6 years, 7 months ago
Reviewers:
agl, wtc, Johnny
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Fail the SPDY transaction if it does not meet TLS base requirements. * Generally follows guidelines in https://http2.github.io/http2-spec/#TLSUsage. * Apply only to SPDY4+ versions * Fail the stream job if the TLS version for SPDY is too old (<1.2) * Fail the stream job if the TLS cipher suite is sucky. Note that we're stricter here than the HTTP/2 spec. Also added while implementing this CL: * Add SSLConnectionStatus setters. * Add ability for SSLSocketDataProvider to set SSLConnectionStatus. * Add modern cipher suite check into net/ssl. BUG=374957 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272467

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix the TODOs. #

Patch Set 3 : Add some comments. #

Patch Set 4 : Sync and rebase #

Total comments: 4

Patch Set 5 : Address Johnny's comments. #

Patch Set 6 : Fix component build. #

Patch Set 7 : Rebase #

Total comments: 15

Patch Set 8 : Address wtc's comments. #

Patch Set 9 : Address forgotten comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -11 lines) Patch
M net/base/net_error_list.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 4 1 chunk +9 lines, -2 lines 0 comments Download
M net/net.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/socket_test_util.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 3 chunks +8 lines, -1 line 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 2 3 4 6 chunks +136 lines, -8 lines 0 comments Download
M net/spdy/spdy_session.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 3 4 5 6 7 2 chunks +30 lines, -0 lines 0 comments Download
M net/ssl/ssl_cipher_suite_names.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M net/ssl/ssl_cipher_suite_names.cc View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
M net/ssl/ssl_cipher_suite_names_unittest.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
M net/ssl/ssl_connection_status_flags.h View 1 2 3 4 5 6 7 8 2 chunks +25 lines, -0 lines 0 comments Download
A net/ssl/ssl_connection_status_flags_unittest.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
willchan no longer on Chromium
Preliminary question: Adam, how should I restrict the ciphersuites given an SSLInfo?
6 years, 7 months ago (2014-05-20 02:35:25 UTC) #1
agl
Do you want to restrict the ciphersuites, or validate them after the fact? I think ...
6 years, 7 months ago (2014-05-20 02:45:12 UTC) #2
willchan no longer on Chromium
On Mon, May 19, 2014 at 7:45 PM, <agl@chromium.org> wrote: > Do you want to ...
6 years, 7 months ago (2014-05-20 03:58:25 UTC) #3
agl
On Mon, May 19, 2014 at 8:58 PM, William Chan (陈智昌) <willchan@chromium.org> wrote: > How ...
6 years, 7 months ago (2014-05-20 04:02:51 UTC) #4
willchan no longer on Chromium
On Mon, May 19, 2014 at 9:02 PM, Adam Langley <agl@chromium.org> wrote: > On Mon, ...
6 years, 7 months ago (2014-05-20 05:25:40 UTC) #5
agl
On Mon, May 19, 2014 at 10:25 PM, William Chan (陈智昌) <willchan@chromium.org> wrote: > Sorry, ...
6 years, 7 months ago (2014-05-20 17:40:26 UTC) #6
willchan no longer on Chromium
+wtc for net/ssl +jgraettinger for everything else
6 years, 7 months ago (2014-05-21 00:51:46 UTC) #7
Johnny
https://codereview.chromium.org/291093002/diff/40001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/291093002/diff/40001/net/http/http_stream_factory_impl_job.cc#newcode1131 net/http/http_stream_factory_impl_job.cc:1131: "TLS security too low"); Create an ERR mapping for ...
6 years, 7 months ago (2014-05-21 16:27:04 UTC) #8
willchan no longer on Chromium
https://codereview.chromium.org/291093002/diff/40001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/291093002/diff/40001/net/http/http_stream_factory_impl_job.cc#newcode1131 net/http/http_stream_factory_impl_job.cc:1131: "TLS security too low"); On 2014/05/21 16:27:04, Johnny wrote: ...
6 years, 7 months ago (2014-05-21 17:47:15 UTC) #9
Johnny
lgtm for non-net/ssl
6 years, 7 months ago (2014-05-21 18:12:15 UTC) #10
wtc
Patch set 7 LGTM. High-level comments: The criteria of IsModernTLSCipherSuite needs to be documented clearly. ...
6 years, 7 months ago (2014-05-21 21:51:10 UTC) #11
willchan no longer on Chromium
https://codereview.chromium.org/291093002/diff/100001/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): https://codereview.chromium.org/291093002/diff/100001/net/spdy/spdy_session.cc#newcode871 net/spdy/spdy_session.cc:871: if (!IsModernTLSCipherSuite( On 2014/05/21 21:51:10, wtc wrote: > > ...
6 years, 7 months ago (2014-05-21 22:55:22 UTC) #12
wtc
Patch set 8 LGTM. Thanks. https://codereview.chromium.org/291093002/diff/100001/net/ssl/ssl_connection_status_flags.h File net/ssl/ssl_connection_status_flags.h (right): https://codereview.chromium.org/291093002/diff/100001/net/ssl/ssl_connection_status_flags.h#newcode68 net/ssl/ssl_connection_status_flags.h:68: int tmp = *connection_status; ...
6 years, 7 months ago (2014-05-22 17:57:01 UTC) #13
agl
https://codereview.chromium.org/291093002/diff/100001/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): https://codereview.chromium.org/291093002/diff/100001/net/spdy/spdy_session.cc#newcode871 net/spdy/spdy_session.cc:871: if (!IsModernTLSCipherSuite( On 2014/05/21 22:55:22, willchan (traveling 5.23-6.27) wrote: ...
6 years, 7 months ago (2014-05-22 18:04:57 UTC) #14
willchan no longer on Chromium
https://codereview.chromium.org/291093002/diff/100001/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): https://codereview.chromium.org/291093002/diff/100001/net/spdy/spdy_session.cc#newcode871 net/spdy/spdy_session.cc:871: if (!IsModernTLSCipherSuite( On 2014/05/22 18:04:57, agl wrote: > On ...
6 years, 7 months ago (2014-05-22 18:26:43 UTC) #15
willchan no longer on Chromium
The CQ bit was checked by willchan@chromium.org
6 years, 7 months ago (2014-05-22 22:41:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/willchan@chromium.org/291093002/140001
6 years, 7 months ago (2014-05-22 22:42:24 UTC) #17
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 10:31:53 UTC) #18
Message was sent while issue was closed.
Change committed as 272467

Powered by Google App Engine
This is Rietveld 408576698