cloud_config apt_proxy has no option to specify HTTPS or not

Bug #1057195 reported by Clint Byrum
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Scott Moser
cloud-init (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

apt will use the same value for apt proxy for HTTPS as HTTP if Acquire::HTTP is set. This can cause issues for https apt sources since apt will now complain about downloading from an untrusted source.

I would suggest a second option 'apt_proxy_https' which can be set to "false" just like the apt option.

Related branches

Revision history for this message
Scott Moser (smoser) wrote :

Clint,
 Can you explain more? How would I configure "false". I think you're suggesting that:
    apt_proxy_https: false
would then write apt config of:
    Acquire::HTTPS::Proxy "false"

Is that right? I dont see clear documentation on this behavior anywhere.

Changed in cloud-init:
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

In 'man apt.conf'

       https
           The Cache-control, Timeout, AllowRedirect, Dl-Limit and proxy options work for HTTPS URIs in the same way as for the http method, and
           default to the same values if they are not explicitly set.

The value of 'false' is simply the unset default. It would appear to be a documentation bug that the apt.conf man page doesn't mention this. Anyway, it is tested and works fine, and versions of juju prior to v0.6 used this to disable the apt proxy for https apt sources.

Scott Moser (smoser)
Changed in cloud-init:
status: Incomplete → Triaged
Scott Moser (smoser)
Changed in cloud-init (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote :

fix committed in revno 857.

Changed in cloud-init:
assignee: nobody → Scott Moser (smoser)
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.7.3~bzr858-0ubuntu1

---------------
cloud-init (0.7.3~bzr858-0ubuntu1) saucy; urgency=low

  * New upstream snapshot.
    * fix resizing of root partition by preferring the functional 'growpart'
      support over the broken 'parted resizepart' support (LP: #1212444)
    * add options for apt_ftp_proxy, apt_https_proxy and apt_config
      (LP: #1057195)
 -- Scott Moser <email address hidden> Wed, 14 Aug 2013 21:44:22 -0400

Changed in cloud-init (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

fixed in 0.7.3

Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.