
System containers, virtual machines, clustering, projects, storage, and networking are presented as separate features. In the daemon they are one API surface, protected by one authentication check. That is the efficiency, and that is the exposure.
1. System containers
A LXD container is a full Linux userspace: init, syslog, cron, sshd, its own /etc, its own package manager. It shares the host kernel but not the host filesystem. This is the original LXD use case and still the one that distinguishes it from application containers. A team can migrate a physical server into a container without rewriting it as a twelve-factor app.
The API calls behind lxc launch create a storage volume, unpack an image, allocate a network interface, apply a profile, and start the init process. Each step is a privileged operation on the host.
2. Virtual machines
LXD also runs QEMU/KVM virtual machines, using the same images, networks, storage pools, and CLI. A VM can be launched with --vm, and the agent inside it communicates with the host over vsock. That agent connection is itself authenticated with a client certificate, which is why the certificate bug reached beyond the HTTPS listener.
The practical advantage is one control plane for two isolation models. The practical risk is that the same API key opens both.
3. Clusters
A LXD cluster spreads containers and VMs across up to dozens of members. Membership is established through a join token, and each member's server certificate is added to the others' trust stores. The cluster database is replicated with dqlite, and the database gateway uses the same TLS identity.
Clustering is where a host compromise becomes an estate compromise. A member that trusts another member's certificate will accept API calls that claim to come from it, so an attacker who can impersonate a member does not need to break each node separately.
4. Projects and profiles
Projects partition the API by tenant or team. Profiles bundle instance configuration — CPU limits, memory, disks, networks — so a launch can be expressed as a name rather than a hundred flags. Fine-grained authorization maps TLS identities and OIDC identities onto entitlements such as can_create_instances or can_view.
The project boundary is an authorization boundary, not a kernel boundary. A user who can create a privileged container with a host mount has left the project model behind.
5. Storage
LXD manages storage pools on ZFS, LVM, Ceph, Btrfs, or a plain directory. It creates volumes, snapshots, backups, and copies between pools. Storage volumes can be attached to instances or exposed over the API. Some of these operations accept a source path, which is exactly the kind of parameter that turns an API permission into a host file read if the authorization check is wrong.
6. Networking
Bridge networks, macvlan, SR-IOV, OVN overlays, ACLs, forward rules, and BGP advertisement for OVN networks all live behind the same API. A network change can redirect a tenant's traffic, expose a service, or attach a host interface to a container.
The common denominator
Every one of those six jobs is an HTTPS request to /1.0/... on port 8443. The daemon's authentication middleware runs once, decides whether the caller is trusted, and then dispatches to handlers that assume the caller is authorized. There is no second factor at the storage layer, no separate credential for the cluster bus, and no per-feature authentication.
That design is why LXD is pleasant to automate. One remote, one certificate, one API. It is also why a flaw in the certificate check is not a flaw in one feature. It is a flaw in the front door of all six.
What the API looks like from outside
A read-only request is ordinary REST:
curl --cert client.crt --key client.key \
https://10.0.0.10:8443/1.0/instances
The server answers with a JSON list. A create request is a POST with a source image and a profile; the daemon returns an operation ID, and the client waits for the operation to finish. There is no exploit payload in any of this. A forged identity produces well-formed requests that the daemon logs as successful.
The trade
LXD's breadth is genuine. Very few tools manage system containers and VMs, cluster them, snapshot them, and network them through one API. The price is a single authentication path with a large blast radius. Part 5 opens that path; Part 6 shows the smaller places where the same mistake appeared.

Next: Part 4 — density has a price: LXD against Docker, Podman, Incus and Proxmox, and where each one honestly wins.

Comments (0)