Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7942)

Issue 56560043: Obey ssl-hostname-verification for provider-state

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by gz
Modified:
10 years, 2 months ago
Reviewers:
axw, mp+203037
Visibility:
Public.

Description

Obey ssl-hostname-verification for provider-state When reading the provider-state file from cloud storage on bootstrap, skip validating the https cert if the config ssl-hostname-verification is set to false. Change simplified to not test the valid cert case, avoiding the need for a usable testing https server. https://code.launchpad.net/~gz/juju-core/1.16_ssl_verification_bootstrap_state_1268913/+merge/203037 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Obey ssl-hostname-verification for provider-state #

Total comments: 4

Patch Set 3 : Obey ssl-hostname-verification for provider-state #

Patch Set 4 : Obey ssl-hostname-verification for provider-state #

Total comments: 2

Patch Set 5 : Obey ssl-hostname-verification for provider-state #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -16 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/bootstrap.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/httpstorage/storage.go View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M provider/common/bootstrap_test.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/common/state.go View 2 chunks +11 lines, -2 lines 0 comments Download
M provider/common/state_test.go View 1 2 3 4 3 chunks +46 lines, -11 lines 0 comments Download

Messages

Total messages: 12
gz
Please take a look.
10 years, 2 months ago (2014-01-27 18:11:55 UTC) #1
axw
On 2014/01/27 18:11:55, gz wrote: > Please take a look. "On trunk, I don't see ...
10 years, 2 months ago (2014-01-29 07:53:19 UTC) #2
axw
https://codereview.appspot.com/56560043/diff/20001/environs/httpstorage/storage.go File environs/httpstorage/storage.go (right): https://codereview.appspot.com/56560043/diff/20001/environs/httpstorage/storage.go#newcode26 environs/httpstorage/storage.go:26: type PromotableStorage interface { I'm not keen on this. ...
10 years, 2 months ago (2014-01-29 08:12:59 UTC) #3
axw
On 2014/01/29 07:53:19, axw wrote: > On 2014/01/27 18:11:55, gz wrote: > > Please take ...
10 years, 2 months ago (2014-01-29 09:13:38 UTC) #4
gz
Please take a look. https://codereview.appspot.com/56560043/diff/20001/environs/httpstorage/storage.go File environs/httpstorage/storage.go (right): https://codereview.appspot.com/56560043/diff/20001/environs/httpstorage/storage.go#newcode26 environs/httpstorage/storage.go:26: type PromotableStorage interface { On ...
10 years, 2 months ago (2014-01-30 13:34:26 UTC) #5
gz
Please take a look.
10 years, 2 months ago (2014-01-30 13:57:41 UTC) #6
axw
On 2014/01/30 13:57:41, gz wrote: > Please take a look. Thanks, much nicer I think. ...
10 years, 2 months ago (2014-01-31 01:57:04 UTC) #7
axw
Oops, forgot to publish this. https://codereview.appspot.com/56560043/diff/60001/provider/common/state_test.go File provider/common/state_test.go (right): https://codereview.appspot.com/56560043/diff/60001/provider/common/state_test.go#newcode46 provider/common/state_test.go:46: // testingHTTPServer creates a ...
10 years, 2 months ago (2014-01-31 01:57:27 UTC) #8
gz
Please take a look. https://codereview.appspot.com/56560043/diff/60001/provider/common/state_test.go File provider/common/state_test.go (right): https://codereview.appspot.com/56560043/diff/60001/provider/common/state_test.go#newcode46 provider/common/state_test.go:46: // testingHTTPServer creates a tempdir ...
10 years, 2 months ago (2014-01-31 12:33:34 UTC) #9
axw
On 2014/01/31 12:33:34, gz wrote: > Please take a look. > > https://codereview.appspot.com/56560043/diff/60001/provider/common/state_test.go > File ...
10 years, 2 months ago (2014-01-31 12:52:59 UTC) #10
gz
On 2014/01/31 12:52:59, axw wrote: > > No, there's a certificate (there has to be), ...
10 years, 2 months ago (2014-02-01 14:54:54 UTC) #11
axw
10 years, 2 months ago (2014-02-02 00:29:56 UTC) #12
On 2014/02/01 14:54:54, gz wrote:
> On 2014/01/31 12:52:59, axw wrote:
> > 
> > No, there's a certificate (there has to be), it's just self-signed. The SSL
> > certificate verification fails because the CA is unknown.
> 
> Hm, but we're not supplying it, so presumably the httptest server stuff has
its
> own one?

Yes: http://golang.org/src/pkg/net/http/httptest/server.go?s=3153:3180#L107
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b