How the vault is encrypted

The keys that encrypt your keys, the process that opens them, sealing to your devices, and what a backup holds.

A stored key is encrypted before it reaches the database, with a key that is itself encrypted by a master key the server cannot export. Only one small process can open anything.

Stored on the server

LayerWhat it is
The valueAES-256-GCM with a data key
The data keyOne per workspace, encrypted by the master key
The master keyMade and kept in Scaleway Key Manager. It cannot be exported
OpeningA separate decrypt process. The web server, the workers and the database have no way to open a value

Each value is bound to its workspace and its key, so a copied row does not open in another workspace. Audit texts, such as reasons and commands, are encrypted as well.

Allow and Auto keys are stored this way, since agents use them while you are away. Workspace and agent keys are stored this way at every level.

Keys sealed to your devices

Your own Always ask and Human only keys have two locks. The value is encrypted with its own data key, and that data key is encrypted to each of your devices (P-256). A device opens its copy with a passkey or with the Secure Enclave. The server holds ciphertext only.

When you approve, the device encrypts the value to the one-time key of the run that asked. The release opens for that run and nothing else. See Passkeys and sealed keys.

How a key reaches a site

On a Laze computer the value is put into the request on Laze's network, outside the computer. See Sites a key is sent to.

A value opened for a swap is kept in memory for a minute, is never written anywhere, and is opened again when you replace it.

In your messages and logs

Messages, feed cards and agent output are compared with keyed fingerprints of your values. A fingerprint cannot be turned back into a value.

Backups

Backups hold the same ciphertext as the database. Opening it needs the master key, which cannot leave Key Manager, so no backup holds it.

People at Laze

A support visit to a workspace lasts an hour at most, is written to its audit log, and cannot act in the vault or make credentials. No staff screen shows a value, and sealed keys open on their owner's devices alone.

The whole picture, with what runs where and who processes it, is in the security architecture.

Also check: Limits, lockdown and logs, Security architecture.