Skip to main content

Module scrub

Module scrub 

Source
Expand description

Takes a Vault value out of a command’s output before anything reads it (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §7.2).

A guard, not a boundary. A command the agent writes can transform the value and print it, or send it anywhere. What limits that is the person seeing the command before an entry is first used. The scrubber catches the ordinary ways a tool echoes a key it was given: the value itself, and its base64, URL-encoded and hex forms. For a value of several lines (a private key), each line is scrubbed too, since output is read line by line.

Structs§

Scrubber

Constants§

MIN_LEN
Shorter values are refused as command secrets: scrubbing “123” would mangle every output that has it.
MIN_LINE
The shortest line of a multi-line value that is scrubbed on its own.

Functions§

cleanable
Whether the scrubber can clean value out of an output: as text (MIN_LEN characters or more), or, for a card’s three-digit security code, where it stands alone. Anything shorter would be stored and still show in the output.