Support LXD multiple sub-uid mapping
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LXD Charm |
Fix Released
|
High
|
James Page | ||
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
Mitaka |
Fix Committed
|
High
|
Unassigned | ||
Newton |
Fix Committed
|
High
|
Unassigned | ||
Ocata |
Fix Released
|
High
|
Unassigned | ||
nova-lxd |
Fix Released
|
High
|
James Page | ||
nova-lxd (Ubuntu) |
Fix Released
|
High
|
James Page | ||
Xenial |
Fix Released
|
High
|
Unassigned | ||
Yakkety |
Fix Released
|
High
|
Unassigned | ||
Zesty |
Fix Released
|
High
|
James Page |
Bug Description
[Impact]
By default, all LXD containers will run with the same subuid/subgid range, which means that if a single container is compromised, all containers on the same host are potentially compromised as well.
[Test Case]
deploy a nova-lxd based openstack cloud
boot multiple instances
they all share the same uid/gid mapping within a host
boot multiple instances with a flavor property of lxd:isolated
all containers have different uid/gid mappings within a host
[Regression Potential]
Minimal in nova-lxd itself; we're just adding an additional extra-spec and tweaking the container profile if the underlying LXD daemon supports the isolation feature.
[Original Bug Report]
LXD 2.0.6 supports use of distinct sub-uid/gid for each running container; nova-lxd has support for this upstream in all stable and master branches so we should update nova-lxd in >= Xenial to support this feature.
Changed in nova-lxd: | |
assignee: | nobody → James Page (james-page) |
status: | New → In Progress |
importance: | Undecided → High |
Changed in nova-lxd (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in nova-lxd (Ubuntu Yakkety): | |
status: | New → Triaged |
Changed in nova-lxd (Ubuntu Zesty): | |
status: | New → Triaged |
Changed in nova-lxd: | |
status: | In Progress → Fix Released |
Changed in charm-lxd: | |
status: | Fix Committed → Fix Released |
description: | updated |
Changed in nova-lxd (Ubuntu Zesty): | |
assignee: | nobody → James Page (james-page) |
Changed in cloud-archive: | |
status: | Triaged → Fix Committed |
Charm will also need some updates to support configuration of an expanded uid range for suid/guid.