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

Issue 6443098: Verify HTTPS certs in OpenStack provider

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by gz
Modified:
13 years, 6 months ago
Reviewers:
jimbaker, mp+118602
Visibility:
Public.

Description

Verify HTTPS certs in OpenStack provider First pass at using the txaws cert validation logic for the OpenStack client backend as well. It's a little messy as the client still needs cleaning up properly, but the basic behaviours should be about right. I've aimed at making the output a bit less spammy than the EC2 provider equivalent. Generally if the option is unset, the user doesn't want to hear about it four times in different ways. This needs tests for the logging etc. https://code.launchpad.net/~gz/juju/os_https_certs_1026102/+merge/118602 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : Verify HTTPS certs in OpenStack provider #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+396 lines, -138 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M juju/environment/config.py View 2 chunks +5 lines, -2 lines 0 comments Download
A juju/providers/openstack/_ssl.py View 1 chunk +19 lines, -0 lines 0 comments Download
M juju/providers/openstack/client.py View 1 10 chunks +41 lines, -8 lines 0 comments Download
M juju/providers/openstack/launch.py View 1 1 chunk +10 lines, -2 lines 0 comments Download
M juju/providers/openstack/provider.py View 1 1 chunk +8 lines, -1 line 0 comments Download
M juju/providers/openstack/tests/__init__.py View 1 7 chunks +13 lines, -7 lines 0 comments Download
M juju/providers/openstack/tests/test_client.py View 1 2 chunks +74 lines, -3 lines 0 comments Download
M juju/providers/openstack/tests/test_launch.py View 1 7 chunks +85 lines, -16 lines 0 comments Download
M juju/providers/openstack/tests/test_provider.py View 1 6 chunks +88 lines, -25 lines 4 comments Download
M juju/providers/openstack_s3/__init__.py View 1 3 chunks +10 lines, -0 lines 0 comments Download
M juju/providers/openstack_s3/tests/test_provider.py View 1 4 chunks +41 lines, -74 lines 0 comments Download

Messages

Total messages: 8
gz
Please take a look.
13 years, 6 months ago (2012-08-07 17:15:59 UTC) #1
jimbaker
Needs fixing. There appears to be a security hole in reversed logic: using curl -k, ...
13 years, 6 months ago (2012-08-21 01:37:04 UTC) #2
gz
Thanks for the review Jim. > ssl-hostname-verification should default to true per Clint's comment earlier. ...
13 years, 6 months ago (2012-08-21 15:30:27 UTC) #3
jimbaker
On 2012/08/21 15:30:27, gz wrote: > Thanks for the review Jim. No worries, thanks for ...
13 years, 6 months ago (2012-08-21 16:17:09 UTC) #4
gz
Please take a look.
13 years, 6 months ago (2012-08-24 16:58:20 UTC) #5
jimbaker
+1, with the two issues fixed in my comments, especially ssl-hostname-verification in the case of ...
13 years, 6 months ago (2012-08-25 14:31:28 UTC) #6
gz
Will push changes requested shortly. https://codereview.appspot.com/6443098/diff/8001/juju/providers/openstack/tests/test_provider.py File juju/providers/openstack/tests/test_provider.py (right): https://codereview.appspot.com/6443098/diff/8001/juju/providers/openstack/tests/test_provider.py#newcode12 juju/providers/openstack/tests/test_provider.py:12: On 2012/08/25 14:31:28, jimbaker ...
13 years, 6 months ago (2012-08-28 11:30:12 UTC) #7
gz
13 years, 6 months ago (2012-08-28 12:58:07 UTC) #8
On 2012/08/28 11:30:12, gz wrote:
> 
> Okay. Again, this is a divergence from the EC2 provider behaviour though.

Having looked at this, I'll flip the behaviour for both providers in a separate
branch after these have landed. That will make life a little easier by avoiding
conflicts with the dependent branches.
Sign in to reply to this message.

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