Skip to main content

Module aws_credentials

Module aws_credentials 

Source
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§

AwsCredentialsRequest 🔒

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.