Expand description
Vault rotate: a new value for an entry, set at its service by a command,
without anyone seeing it
(docs/specs/SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §4.4).
- srv generates a new value as a pending version that nothing is given yet;
- runs
setwith it inNEW_SECRETand the current value inOLD_SECRET; - runs
verify, if given, with it inNEW_SECRET; - on success makes it the entry’s value (the old one kept 7 days); on any
failure keeps the old one and the pending one, marked with the step that
failed: if
setsucceeded andverifydidn’t, the service may already hold the new value, so nothing is thrown away.
The person approves the rotation once, naming set and verify and saying
the value at the service changes; “Always” covers those two command lines for
this agent and entry. The commands run like Terminal run with secrets (in
the agent’s folder, output cleaned of both values), approved with the rotation.
Structs§
- Ran 🔒
- What a command did: its exit code and its last lines, already cleaned of the values it was given.
- Rotate
Body 🔒 - RunError 🔒
- Why a command has no exit code: it never started (nothing ran), or it started and was stopped or lost track of (it may have done its work).
Constants§
- COMMAND_
WAIT 🔒 - How long
setorverifymay run. - ROTATED 🔒
- The activity’s action for a rotation.
Functions§
- clip 🔒
- error 🔒
- grant_
key 🔒 - The grant “Always” gives: this agent may rotate the entry with these two command lines without asking again.
- handle_
vault_ 🔒rotate POST /api/v1/vault/rotate.- host_
pane 🔒 - The pane of the agent asking, proven. A rotation runs its
setandverifycommands on the host, which a container agent can’t do (/api/v1/shell/is refused to it for the same reason), so one is refused before the person is asked. - ran_
json 🔒 - rotatable_
entry 🔒 - The entry
idan agent asks to rotate. Before anything is asked or written, one in a Vault the agent may not use is refused as one that is not there. - rotation_
request 🔒 - The person’s question about rotating
row: both commands, that its value changes, and what the agent says it is for. - run 🔒
- Runs
cmdasTerminalrunwould withsecrets, approved with the rotation, and waits for it to end. - shown_
commands 🔒 - What the approval prompt shows as the command.
- step_
failed 🔒 - The step a rotation failed at: 2 when
setdidn’t succeed (it exited non-zero, or was stopped or lost after it started), 3 whenverifydidn’t;Nonewhen both succeeded.