Give the agent capability. Not your keys.
Agents make mistakes and can be tricked. Dock assumes that and keeps the controls outside the machine the agent runs in.
Isolation per runtime
The boundary between one dock and everything else depends on where it runs.
| Runtime | Boundary | Isolation |
|---|---|---|
| Firecracker on KVM | Hardware VM, minimal device model, jailer | Strongest isolation. The runtime to prefer for untrusted code. |
| gVisor | User-space kernel intercepting syscalls | Strong isolation without a hypervisor. |
| QEMU on your machine | Hardware VM on KVM (Linux) or Windows Hypervisor Platform, with a larger device model than Firecracker | Local docks only. Hardware VM isolation, with a wider attack surface than Firecracker. |
| gVisor on your machine | User-space kernel on Docker, opt-in on Linux without KVM (dock new --runtime gvisor) | Local docks only. Strong, and a different boundary from a hardware VM. Anyone who can use Docker on the machine can reach these docks. From dock v0.3.6, a firewall rule on the host, outside the dock, blocks a network-on dock from services on your machine (the rest of your LAN stays reachable, and a host firewall reload removes the rule until the dock is resumed), and --network off runs the container with no network at all. |
How it holds together
- What a dock can reach
- Its own disk, and the network its policy allows. On a fleet host it cannot reach the host, other docks, connector tokens, or the control plane database. A local dock with network on blocks your machine's localhost by default, but the block is enforced inside the guest, so root in the dock can lift it; use --network off for untrusted code.
- Egress
- On a fleet host, a dock reaches the public internet by default; private ranges, cloud metadata and other docks are blocked. An admin can give an environment an allowlist of hosts, and its docks then leave only through a proxy on the host, outside the dock, so nothing inside can switch it off. Local docks have network on (the default) or off, with no allowlist; with network on, the guest refuses new connections to your machine's localhost (the gateway 10.0.2.2), from the dock and its Docker containers, while DNS and the internet still work. Docks created from Dockyard images older than images-2026.10.11.4 lack this block. That rule runs inside the guest, so root in the dock can remove it: it stops accidental access, not a hostile dock. A host-enforced block is tracked in docklet#98. Local docks always run with IPv6 off.
- Credential brokering
- By default the dock gets a dock-scoped token where a model key would go. Dock's LLM gateway adds the real key on the way out, so the key never enters the dock; the token changes on every resume, branch or environment upgrade and stops working when the dock stops. An admin can opt an environment into plain keys, which puts the real key in the dock. Connector tokens go through the connector gateway the same way, and GitHub clones use a short-lived, read-only token.
- Fleet
- Hosts connect outbound only. The docklet HTTP API is loopback-only, and a host fails closed until its readiness checks pass.
- Ports
- On a control plane, an exposed port is private by default: only members of the dock's organization, after sign-in, or a key bound to that dock get through. Making a port public is an explicit choice. On your laptop, dock port forwards to 127.0.0.1. Other local docks with network on are blocked from it by default, but only by a rule inside their guest that root can remove, so the forward is not private.
- Snapshots
- A self-hosted control plane encrypts snapshots at rest in its bundled MinIO.
- Releases
- Control plane images, the docklet and the dock CLI are signed with cosign. The install scripts check the docklet and CLI signatures before installing.
Credentials never enter the dock
By default the dock holds only a dock-scoped token. Dock's gateway runs outside it and adds the real key on the way out, so a compromised agent cannot read the key or switch the gateway off, and the token stops working when the dock stops.
- Model keys and connector tokens stay in the workspace, unless an admin opts an environment into plain model keys.
- Egress is open by default, or limited to an allowlist set per environment.
- Hosts connect outbound only; the docklet API is loopback-only.
Reporting a vulnerability
Email security@usedock.io. We work to a 90-day disclosure window.