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

Issue 1074193003: Verify alternative server certificate validity for origin. (Closed)

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

Description

Verify alternative server certificate validity for origin. Verify that the certificate presented by the alternative server is valid for the origin when using HTTP/2, both when opening a new connection or when pooling to an existing one. Patch Set 1: * Enable hopping to a different host for HTTP/2 (not for QUIC). * Add unittests for both new connection and pooling cases. Note in trybot output that *Valid tests pass and *Invalid tests fail. Patch Set 2 and up: * Verify certificate validity in HttpStreamFactoryImpl::Job. BUG=474217 Committed: https://crrev.com/1b0e36850193d0bd16669260c8eac374e9e419fe Cr-Commit-Position: refs/heads/master@{#327293}

Patch Set 1 #

Patch Set 2 : Verify certificate validity. #

Total comments: 29

Patch Set 3 : Addressing comments. #

Total comments: 2

Patch Set 4 : Re: new comments in #5. #

Patch Set 5 : Combine two switch cases. #

Total comments: 12

Patch Set 6 : SpdySessionPool member and fewer parentheses. #

Patch Set 7 : Rebase. #

Patch Set 8 : Re: comments #7. #

Total comments: 4

Patch Set 9 : Rebase. #

Patch Set 10 : Remove helper method. #

Patch Set 11 : Remove new certificate. #

Patch Set 12 : Change tests to use hostname "www.example.org". #

Patch Set 13 : Rebase on https://crrev.com/1090943002. #

Patch Set 14 : Edit comments. #

Patch Set 15 : Re: #9. #

Total comments: 2

Patch Set 16 : Re: #11. #

Patch Set 17 : Nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -18 lines) Patch
M net/base/net_error_list.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +157 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 2 3 4 5 6 2 chunks +4 lines, -5 lines 0 comments Download
M net/http/http_stream_factory_impl_job.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +46 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +70 lines, -13 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
Bence
Ryan: PTAL. I understand that we are trying to move away from OrderedSocketData, but I ...
5 years, 8 months ago (2015-04-10 16:40:47 UTC) #2
Ryan Hamilton
I haven't looked at the tests yet. Don't worry about the socket data bits. if ...
5 years, 8 months ago (2015-04-10 18:37:37 UTC) #3
Bence
Ryan, PTAL. Thanks for the first round of review. Unfortunately your comments do not show ...
5 years, 8 months ago (2015-04-10 19:55:16 UTC) #4
Ryan Hamilton
https://codereview.chromium.org/1074193003/diff/20001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1074193003/diff/20001/net/http/http_stream_factory_impl_job.cc#newcode301 net/http/http_stream_factory_impl_job.cc:301: if (origin_url_.host() == spdy_session->host_port_pair().host()) { On 2015/04/10 19:55:16, Bence ...
5 years, 8 months ago (2015-04-11 02:40:41 UTC) #5
Bence
Ryan, PTAL. Thanks. https://codereview.chromium.org/1074193003/diff/20001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1074193003/diff/20001/net/http/http_stream_factory_impl_job.cc#newcode301 net/http/http_stream_factory_impl_job.cc:301: if (origin_url_.host() == spdy_session->host_port_pair().host()) { On ...
5 years, 8 months ago (2015-04-13 17:52:40 UTC) #6
Ryan Hamilton
Looking much better! I really like the pool wrapper's centralization of the logic around cert ...
5 years, 8 months ago (2015-04-13 18:29:56 UTC) #7
Bence
Ryan: PTAL. I included the modified unittests here so that we can savor them in ...
5 years, 8 months ago (2015-04-15 21:07:46 UTC) #8
Ryan Hamilton
Looks good! Adding the certs in a different CL on which you rebase this would ...
5 years, 8 months ago (2015-04-15 21:24:35 UTC) #9
Bence
Ryan, PTAL. Thanks. https://codereview.chromium.org/1074193003/diff/80001/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1074193003/diff/80001/net/http/http_stream_factory_impl_job.cc#newcode1522 net/http/http_stream_factory_impl_job.cc:1522: return !is_spdy_alternate_ || !spdy_session || On ...
5 years, 8 months ago (2015-04-23 17:17:07 UTC) #10
Ryan Hamilton
LGTM, modulo simplifying/cleaning up a comment. https://codereview.chromium.org/1074193003/diff/280001/net/http/http_stream_factory_impl_job.h File net/http/http_stream_factory_impl_job.h (right): https://codereview.chromium.org/1074193003/diff/280001/net/http/http_stream_factory_impl_job.h#newcode157 net/http/http_stream_factory_impl_job.h:157: // be used. ...
5 years, 7 months ago (2015-04-27 15:35:55 UTC) #11
Bence
Thank you. https://codereview.chromium.org/1074193003/diff/280001/net/http/http_stream_factory_impl_job.h File net/http/http_stream_factory_impl_job.h (right): https://codereview.chromium.org/1074193003/diff/280001/net/http/http_stream_factory_impl_job.h#newcode157 net/http/http_stream_factory_impl_job.h:157: // be used. On 2015/04/27 15:35:55, Ryan ...
5 years, 7 months ago (2015-04-28 14:42:21 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1074193003/320001
5 years, 7 months ago (2015-04-28 14:42:56 UTC) #15
commit-bot: I haz the power
Committed patchset #17 (id:320001)
5 years, 7 months ago (2015-04-28 15:33:11 UTC) #16
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 15:33:59 UTC) #17
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/1b0e36850193d0bd16669260c8eac374e9e419fe
Cr-Commit-Position: refs/heads/master@{#327293}

Powered by Google App Engine
This is Rietveld 408576698