Data and encryption
Every workspace’s disk is a chain of layers, and every layer is encrypted before it leaves the runner:
- Each layer is compressed, then sealed with AES-256-GCM under its volume’s data key (DEK), in 64 KiB frames, each with a nonce derived from the volume, the layer and the frame’s position.
- Every volume has a DEK of its own, a clone too. On AWS each is a KMS data key, wrapped under a KMS key the installation keeps for volumes.
- The bucket also encrypts every object at rest (SSE-S3).
The control plane never sees a DEK. It makes each one without its plaintext, and grants a runner the wrapped key with a session that decrypts only that volume’s owner’s keys, and only answered to a NitroTPM attestation document whose measurements are the runner’s image’s. No other role in the account decrypts them, the control plane’s included. That holds against someone who reads the database or the bucket; a control plane running other code could still grant a key to a workspace of its own on an attested runner, as What this does not protect says.
Memory snapshots
Section titled “Memory snapshots”A snapshot with memory holds the machine’s whole RAM. It is sealed under a key of its own, made for that one snapshot and kept only in the database row that describes it. Deleting the memory deletes the row, and with it the only copy of the key: from that moment nothing can read the memory, including older versions of the object that Object Lock still keeps.
Memory is never shared. A shared or public snapshot hands over the disk only, and a memory restore is only allowed on a snapshot of the workspace asking for it.
Clones and deletes
Section titled “Clones and deletes”A clone reads its parent’s layers, opened with the parent’s key, and writes its own under a key of its own. So a volume with clones cannot be deleted while they read it. Deleting a workspace’s volume destroys its key once the versions of its descriptor expire, and with it every layer it wrote. A snapshot’s memory has a key of its own (above), destroyed at once.
The installation’s secrets
Section titled “The installation’s secrets”| Secret | Where it is kept | Sealed with |
|---|---|---|
| The KEK | The database | The installation’s encryption key, with its own name as context |
| The first administrator’s password, the object store credential | The database | The same |
| Each workspace’s SSH certificate authority, identity providers’ client secrets | The database | AES-256-GCM, bound to the row’s id, in a versioned key ring |
| Sessions, API keys, runner tokens | The database | Stored only as a hash |
| The encryption key itself | Nowhere | Derived at every start from a KMS key, which answers only a control plane that proves the image it booted |
The database alone opens none of them, and no apply ever makes or sees the encryption key. The install writes two secrets to Parameter Store, which only the control plane’s role reads. The first administrator’s one-time password goes through a write-only attribute, so it never reaches OpenTofu’s state, and it opens nothing after the first sign-in replaces it. The CA’s key is in the state on purpose, which is why the state is encrypted with KMS.
In transit
Section titled “In transit”- Browsers and the CLI reach the proxy over TLS with Let’s Encrypt certificates.
- The proxy and the runners reach the control plane over TLS under the installation’s own CA.
- The control plane reaches its database on its own machine’s loopback, with a password derived from the installation’s key, so nothing stores it.
- SSH is end to end between your client and the workspace: the relay carries bytes it cannot read.
- A port exposed with
--httpsis the one exception: the proxy speaks TLS to the workspace without checking its certificate.
Integrity
Section titled “Integrity”A volume’s history is a chain of manifests, each naming its parent by digest, anchored in digests only the control plane writes to the database. A runner checks every layer it reads against them, so a layer replaced in the bucket is refused. An image’s layers are also measured with fs-verity on the runner’s disk, and the kernel verifies every block read from them. What this does not cover is on Known gaps.
Who can read the bucket
Section titled “Who can read the bucket”- The control plane, through its role, which cannot lift Object Lock, bypass a retention or rewrite the bucket’s policy.
- Each runner, with credentials the control plane mints for fifteen minutes and narrows to the volumes placed on it and what they descend from.
- Object requests are refused from anywhere but the VPC’s gateway endpoint, so a runner’s credentials copied off the machine open nothing.
Installations run Spinbox v20261121.03; the reference is generated from spin v20261121.03 (89c5eb5ea). This page as Markdown, for a model or a terminal.