Expand description
POST /api/v1/aws/credentials: the AWS credentials a container agent’s SDK gets through credential_process.
Spec: docs/specs/SPEC_CONTAINER_AGENT_AWS_CREDENTIALS_2026_10_31.md §5.
agentmux-bashwrap aws-credentials asks here from the container with the container’s token. Who is asking is the
agent that token was minted for, never a name in the request. The checks, the cache and the mint are
identity::aws_broker; this adds the identity and the audit row. A fresh session and every refusal are recorded in
the Audit view; a cache hit is not (the layer in http_action leaves this route to the handler for that reason).
Structs§
Constants§
- AUDIT_
ACTION 🔒 - The audit entry’s action.
Functions§
- audit 🔒
- One Audit row: the actor is the container agent. Holds the grant, tier, reason, seconds and outcome; never a key, a token or any part of a credential.
- audit_
granted 🔒 - The Audit row of a session a container agent was granted, when it is a fresh one (a cache hit is not recorded).
- audit_
refused 🔒 - The Audit row of a refusal.
- granted_
note 🔒 - handle_
aws_ 🔒credentials POST /api/v1/aws/credentials- hold_
in_ 🔒transcripts - The secret key and session token of the credentials an agent was given are never written into its transcript, until they run out. Credentials an agent’s profile is given next do not end these: they still work until their own expiration, so they stay withheld until then.
- refuse 🔒
- refused 🔒
- serve 🔒
- The request once the agent is known: the checks, the cache or the mint, the audit row, the answer.
- shown_
profile 🔒 - What the request’s profile is called in the audit row, the log and the refusal. The string is the container’s to choose, so one that can’t be a grant name (too long, control characters, newlines) is never recorded or echoed.
- the_
persons_ 🔒to_ fix - Whether a refusal is one the person can fix on this computer, so the agent’s pane says so: the host’s AWS login lapsed or was refused, the grant is switched off, or a new or wider grant waits to be allowed. A wrong profile name, a missing reason, a cap or a slow mint is the agent’s own to correct or a bad moment.