Skip to main content

Module vault_import

Module vault_import 

Source
Expand description

POST /api/v1/vault/import: an agent has the Vault copy a secret from AWS Secrets Manager into an entry (docs/specs/SPEC_VAULT_PARITY_ENTRY_HISTORY_REASONS_AND_IMPORT_2026_11_06.md §7).

The arguments are checked first. Nobody is asked (the history line is the record), except for a login the agent asks to have shared with it: the share is a use, and its card is asked once (Allow once or Deny, never Always, and silence denies). srv reads the secret with the host’s AWS CLI, and only ids and names come back. A container agent reads under a broker session for the grant it names; a native agent under the host’s own AWS setup.

Structs§

ImportBody 🔒
Who 🔒
Who is asking, as the request’s signed identity proves: the agent’s id, its pane, its slug and whether it runs in a container. An unproven request, or an agent AgentMux has no row for, is refused with the reason.

Constants§

ANSWER_WAIT 🔒
How long the person has to answer by default, and at most.
ANSWER_WAIT_MAX 🔒

Functions§

act_of 🔒
What an import writes, as the pace counts it: a new entry, or a new value for one that exists.
asker 🔒
what is the action asked for (import, check) and records what the Vault’s record of it names.
card 🔒
The question for the person about an import that makes a login to be shared with the agent: the secret, where it goes, what the agent says it is for, and the share.
checked 🔒
The arguments checked, and for a container agent the grant it names, before anyone is asked.
credentials 🔒
How the CLI is given credentials: the host’s own, or a session minted for the container agent’s grant profile (the broker’s checks, hourly cap and Audit row apply as for any mint, with the agent’s reason).
error 🔒
handle_vault_import 🔒
POST /api/v1/vault/import
headline 🔒
import_admitted 🔒
The rest of an import the pace let through.
not_allowed 🔒
What the agent is told when the card didn’t end in a yes: silence is a no for an import, whatever the kind.
pace_refused 🔒
An import over the agent’s pace: the agent is told when there is room, and a line records it only within the allowance of such lines (an agent that keeps asking cannot fill an entry’s history).
refused 🔒
Records what became of an import that stored nothing, and tells the agent.
share_made 🔒
What became of the share an import asked for: whether it was made, and what the agent is told. The login is saved either way.
ticked_share 🔒
Whether the person left an import’s share ticked: None for a use with no share on it, and for a no. The card sends the tick explicitly; an approval that sends none (a surface that doesn’t draw the share line) shares nothing.