Skip to main content

Module seal

Module seal 

Source
Expand description

The Vault’s encryption at rest (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §5.5).

One random 256-bit Vault key lives in secret_store (the OS keychain, or the headless file store); each entry’s secret parts are sealed with it (ChaCha20-Poly1305, a random nonce each time, the entry id as associated data, so a sealed value moved to another row doesn’t open) and kept in the database. One keychain item rather than one per value: Windows’ Credential Manager caps an item at 1280 characters, and macOS asks the person about every item separately.

Structs§

Parts
An entry’s secret parts by name. Values are wiped when it is dropped.

Functions§

key
The Vault key. create makes one when the keychain has none, which is right only while the Vault has no entries: a new key can’t open what an old one sealed.
open
Opens what seal sealed for entry_id. Fails on any change to it, and on a value sealed for another entry.
seal
Seals parts for the entry entry_id.

Type Aliases§

Key