Launchpad backend scripts and services access https urls outside the datacentre without using squid
Bug #133880 reported by
James Troup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
Several of Launchpad's cronscripts require https access. Currently we punch a hole in the firewall, but it'd be better if Launchpad could be modified to use the squid proxy even for https requests.
17:02 < SteveA> we can make HTTPS work via a proxy
17:02 < SteveA> provided it is the proxy that has the SSL connection
17:03 < SteveA> so, not allowing the CONNECT HTTP verb
17:03 < SteveA> but instead, having the script talk to the proxy and say get HTTPS:/
Changed in launchpad-foundations: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in launchpad: | |
importance: | Low → High |
To post a comment you must log in.
A workaround is to have Squid proxy requests made on http:// launchpad. net made to a local running instance of stunnel. First, add the following cache peer to the squid configuration:
acl insecureLaunchpad dstdomain launchpad.net
acl HTTP proto HTTP
cache_peer localhost parent 3129 0 no-query
cache_peer_access localhost allow insecureLaunchpad
cache_peer_access localhost deny !insecureLaunchpad
never_direct deny HTTP insecureLaunchpad
Second, run stunnel to redirect http requests from localhost:3129 to https on launchpad.net:443:
stunnel -c -d localhost:3129 -r launchpad.net:443
Enjoy!