juju wants to use the LXD UNIX socket when configured to use HTTP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
Hi,
juju 2.9.32
If you add a LXD cloud with an HTTPS endpoint, such as :
mylxdcloud:
defined: built-in
type: lxd
description: LXD Cluster
auth-types: [certificate]
endpoint: https:/
regions:
default: {}
then when bootstrapping to this cloud, if the IP of the HTTPS endpoint exists on the local machine, juju will try to use the LXD UNIX socket instead of the HTTPS endpoint.
There are 2 problems with that :
1. juju doesn't do as instructed
2. access the UNIX socket gives trivial root access to the machine, as documented in LXD docs (you can map host files to containers which you control). Access to the HTTPS endpoint can be more restricted.
Could we please make juju use the HTTPS endpoint when configured to use the HTTPS endpoint ?
Thanks
Changed in juju: | |
milestone: | none → 2.9.33 |
assignee: | nobody → Ian Booth (wallyworld) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Credit where credit is due, this bug was discovered and investigated by @vultaire