Threat model
Current deployment boundary
Both console profiles use controller-issued ownership: one implicit operator locally, optional invitation-authenticated users on a server controller. Server users always receive different containers, sidecars, homes and storage. Administrator-shared subscriptions create private auth copies, not shared physical account stores. A same-owner shared container remains a shared trust boundary; profile-derived UIDs do not make its sessions hostile tenants.
Folder RPC, Exchange, service grants and MCP policy admission all derive scope from authenticated identity. Approval text alone is not SQL enforcement, upstream authorization or a direct-egress firewall. Native folder I/O and unbrokered calls are outside gateway metering. Hard aggregate resource enforcement requires verified Linux namespace/cgroup/quota prerequisites; admission-only accounting is advisory. Public tunnel possession does not replace access-key/user authorization. A public tunnel terminates TLS; paired web and mobile clients add an end-to-end encrypted channel so the tunnel sees only ciphertext and metadata, and administrators can make it mandatory for remote connections (end-to-end encryption). Current product boundaries, shared-account limits (source access required), server enforcement.
The relay validates every message's type, size, fields and direction. Only the controller creates relay.connect; agents cannot send it to another host through an open relay. Authorization and target are checked per frame and each second for idle connections. Revocation or a changed target closes both ends. Command results/progress/cancellation and file acknowledgements verify the authenticated owning host.
A Service without a grant is unavailable: Project containers do not join its service network, and the fixed-target proxy exists only for an authorized ResourceGrant. Docker/NVIDIA DeviceRequest does not provide VRAM isolation.
Cross-host relay requires an active service-mode ResourceGrant. The controller checks source-host placement and supplies the saved ResourceEndpoint to the destination agent; a source agent or compromised Project cannot substitute addresses/ports to turn relay into a scanner. The proxy mounts only its grant-specific Unix socket directory read-only, not the whole relay root. There is no host TCP listener/firewall exception. Bounded transport uses backpressure without retaining/inspecting payload. The controller remains a transient data-plane trust boundary until direct host-agent transport replaces it.
Clients reject .., absolute paths, symlink escapes, nonregular files, oversized metadata and unregistered roots. Host-agent cannot request arbitrary developer-machine files: client delivery requires a controller-desired FileGrant inside a mounted root. Sensitive environment files are not previewed or persisted by Files delivery. Separately registering a Secret creates an encrypted copy through a different storage path. The controller streams rather than retaining complete files; the execution host independently verifies size/SHA-256. Revocation prevents future access but cannot erase bytes already read into process memory.
A delivered hash does not prove provider readability. Permission repair is scoped to one Project and must not make credentials world-readable. Verify readability and absence of write access as the actual provider UID/GID after redelivery. Source environment files only as trusted shell-compatible input, without set -x or diagnostic values. Secret and Files rotation must be coordinated explicitly.
A TCP route does not enforce read-only PostgreSQL access. Effective role/schema/table/sequence permissions and SECURITY DEFINER routines determine that boundary. default_transaction_read_only is a changeable default rather than a write prohibition. TLS require does not prove CA/hostname verification (verify-full). Grant state does not prove an unmanaged SSH tunnel is alive. Do not bypass forwarding policy or publish a database listener without separate authorization. See operations (source access required).
The native S3 read gateway adds an application-level read-only boundary over a TCP grant. It permits only list-objects-v2, head-object and get-object for explicitly allowed buckets. List/object GET/HEAD require a bearer token; unauthenticated /healthz reveals no object/bucket data. Writes are rejected. Objects are limited to 1 GiB and list pages to 100 keys. AWS credentials and presigned URLs stay on the source machine, but a granted session can read its permitted buckets/prefixes. Bucket/prefix scope and local AWS IAM permissions are trusted configuration. Tokens must never enter Exchange, repository, rules, audit or shell history. The native listener binds loopback; remote access requires an explicit client ResourceGrant. Revocation cannot retract read data or copied tokens; compromise requires token rotation and redelivery.
Service secrets are available only to the owning host and only when referenced by both a profile and service.secretGrants. Reserved environment names prevent configuration from overriding account/session isolation or transport settings.
Project runtime extensions do not accept arbitrary Feature URIs, Dockerfiles or install commands from repositories. .devctl.yaml selects versioned Features from the shipped allowlist; installation content, checksum and launcher are part of the immutable image hash. wireproxy@1 reads its sensitive WireGuard configuration only from an explicit Project-relative .agent.env without shell evaluation. It is excluded from build context/state/logs, and generated config has mode 0600. Typed launcher arguments prevent path escapes and non-loopback SOCKS listeners. Features receive no host Docker socket.
Managed devcontainer import filters repository-selected host mounts, privilege
and namespace overrides independently of Internet policy, including attached
Docker short options. The Host creates Project containers itself through the
Docker API, setting mounts, network, capabilities, devices, cgroup and limits
from its own data; no third-party Dev Container CLI or registry Feature runs
with Host Docker authority, and ${localEnv:…} never reads the Host agent's
environment. Opening Internet access does not authorize host paths or
devices. Templates, host agents and Docker administration remain trusted; the
import filter does not make shared-container sessions separate hostile tenants.
Host-side change inspection, source fingerprints and session checkout preparation read workload Git metadata through a private view with an allowlisted configuration. Repository filters, config includes, hooks, external diff tools, credential helpers and upload-pack overrides do not enter that view. Linked worktree pointers and alternate object stores require verified registration or the exact saved session receipt. New session checkouts are independent clones; new recovery payloads retain self-contained object bundles instead of invoking repository-selected remote transports. Result manifests use bounded regular-file reads through no-follow parent traversal. These controls do not sandbox Git's native object parsers; supported Git and host runtime updates remain necessary.
Agent Packs/MCP do not broaden host-shell authority. Built-in MCP uses signed session identity checked against saved Project/runtime/session/provider/account metadata. Tool arguments cannot select another Project. There are no arbitrary host shell, Docker exec, secret read or TCP target tools. External MCP catalog configuration is privileged; sessions receive only compatible bindings and their snapshot allowlist.
External stdio MCP does not inherit host-agent privileges. Entries require immutable image@sha256; the broker starts an ephemeral container with network=none, read-only root, UID 65532, dropped capabilities, no-new-privileges and bounded CPU/RAM/PIDs/nofile. No mounts expose Docker sockets, checkouts, account stores, sibling state or other MCP credentials. Only the selected credential-profile environment variable is supplied, with its value absent from Docker arguments. Networked external MCP currently uses HTTP at a fixed administrator URL through a trusted auth bridge; arbitrary stdio egress is unsupported.
MCP credential profiles reference encrypted Secrets. Plaintext is decrypted only to prepare broker launch and is excluded from state, TUI, audit, support bundles, generated documents, provider config and agent-shell environment. Provider config contains a grant-specific Unix socket. Each broker receives only its own credential and enforces the allowlist even if a server advertises additional tools.
Remote agents cannot directly alter operator-machine devctrl.yaml. They can propose typed devctrl.yaml.proposed only through allowed Exchange. The native wrapper validates registered checkout/Project identity and schema, shows the diff and requires separate --approve to update local policy. MCP approval is not local-side approval.
An attach/control-plane transport failure alone does not prove Claude/Codex exited. Fresh inventory showing the managed foreground provider PID restores process state to running, clears attach diagnostics and leaves lifecycle unknown until an official event. terminal.exit/error closes the viewer; attach preparation failure retains the registered detached Session. Recovery does not inspect terminal content, prompts or transcripts.
Claude daemon/PTY helpers are not foreground-provider evidence. Their presence after CLI exit cannot justify terminal availability or launching a saved conversation with --session-id. Two observations without the foreground process mark it exited, after which continuation may use official --resume.
Managed sibling containers require an authorized session-scoped tool. They receive no host Docker socket, privileged/host networking or access to other containers. Checkout mounts are read-only; data mounts are separate. Labels and durable registry preserve ownership. shutdown.json contains no deletion shell commands: validated paths stay within permitted roots, deletion follows exact deleteDataPaths, and pending health defers cleanup. This does not protect against host root.
Mutating MCP cannot approve itself with a token returned to the agent. First calls create persisted pending approvals with redacted effects and argument hashes. Only authorized operator actions or configured controller approval policy can approve them; an exact session/Project/tool/arguments match consumes the one-shot approval atomically. Catalog changes do not replace a running session's snapshot.
- The controller does not use Claude/Codex OAuth authorization to call subscription APIs.
- Host service scripts are administrator-installed under local
services.d; absolute paths and realpath escapes are rejected. Bounded start JSON has host-only mode0600and stays out of state/TUI/logs. Scripts retain host-agent authority, including its Docker socket, so editing them is privileged administration. - Host/client credentials are separate from operator credentials and bound to identity/type.
- Client forwards bind
127.0.0.1by default;0.0.0.0requires explicit dangerous configuration. - Docker Desktop uses
host.docker.internal; the domain model remains platform-neutral. - Projects see only explicit grants. TCP proxies are not application-level read-only boundaries.
- Whole-network membership is separate from service-only access and requires a warning.
- Session UID plus mode
0700protects against ordinary sibling users. Container root/escape, host Docker access and host root remain trusted boundaries. - Master keys stay outside SQLite/repository with mode
0600. Each record has a CSPRNG 96-bit nonce, GCM tag and key version. - Installer containers receive SSH config, known_hosts and an agent socket, not the full
~/.sshdirectory. - Bootstrap uses sudo for directory setup; runtime uses Docker access and
/var/lib/devctlownership.
Live MCP templates restrict protocol methods/tool names and apply rate admission
before managed calls. They do not inspect HTTP/SQL inside arbitrary agent shell
commands. Folder gateways enforce current r/rw grants and no-follow traversal;
native binds require a dedicated single-session container, verified mount flags
and explicit recreation to change permissions. Direct native I/O byte totals are
unknown. MCP policies, folder boundaries.
Server users are controller identities, independent from SSH accounts. Ownership is checked at HTTP, WebSocket, MCP, command dispatch and host execution. Different users always have different containers, sidecars, account stores and storage. Same-owner shared containers remain one trust boundary and require identical folder/MCP restrictions. Aggregate budgets are admission/accounting plus verified host cgroup/quota enforcement; a configured number alone is not a hard kernel limit. Rootless mode requires a prepared user namespace and daemon, and provides no protection from the host administrator. Server users, resource adapters, rootless.
Permission withdrawal removes the controller binding and queued notification, then removes the exact live rule. Delayed results and old retry commands cannot grant it again. Policy text is not IAM revocation or rollback of completed work; cleanup failure is reported separately in status/history.
Devctrl does not claim universal L7/UDP policy, read-only TCP, protection from host root or exact per-session subscription accounting.