Merge lp:~mterry/ubuntuone-couch/no-ssl-validation into lp:ubuntuone-couch

Proposed by Michael Terry
Status: Rejected
Rejected by: Michael Terry
Proposed branch: lp:~mterry/ubuntuone-couch/no-ssl-validation
Merge into: lp:ubuntuone-couch
Diff against target: 11 lines (+1/-1)
1 file modified
ubuntuone/couch/auth.py (+1/-1)
To merge this branch: bzr merge lp:~mterry/ubuntuone-couch/no-ssl-validation
Reviewer Review Type Date Requested Status
John O'Brien (community) Needs Information
dobey (community) Needs Information
Review via email: mp+65384@code.launchpad.net

Description of the change

See bug 797281 for details.

To post a comment you must log in.
Revision history for this message
dobey (dobey) wrote :

Interesting. I'm not sure we should go this "temporary workaround" route by explicitly disabling cert validation, rather than just fixing it so that cert validation works.

Can we either pass in the path to the correct cert file to check against, or somehow fix installation of the CA certs we have to provide in ubuntuone-storage-protocol to be automatically loaded by everything? We will need to change package level dependencies either way, but I think it's the right thing to do, and not much more work. Or is it an insane amount of work to do that?

review: Needs Information
Revision history for this message
Michael Terry (mterry) wrote :

Yes, by all means let's fix it the right way. I was just proposing a way to unblock functionality until this was fixed correctly.

I'm not sure about the Right Way to fix it. SSL certs are black magic to me.

Revision history for this message
John O'Brien (jdobrien) wrote :

This is really old, please confirm that it's still needed.

review: Needs Information
Revision history for this message
Michael Terry (mterry) wrote :

Indeed, this is not needed anymore. httplib2 seems fixed.

Unmerged revisions

14. By Michael Terry

don't validate ssl certficates

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntuone/couch/auth.py'
2--- ubuntuone/couch/auth.py 2011-05-25 14:04:22 +0000
3+++ ubuntuone/couch/auth.py 2011-06-21 17:55:19 +0000
4@@ -138,6 +138,6 @@
5 consumer, token, url, http_method, signature_method, parameters)
6 headers = headers or {}
7 headers.update(oauth_header)
8- http = httplib2.Http(timeout=10)
9+ http = httplib2.Http(timeout=10, disable_ssl_certificate_validation=True)
10 return http.request(
11 url, method=http_method, headers=headers, body=request_body)

Subscribers

People subscribed via source and target branches