Component ยท Shared or other
AgentID
What it is
AgentID is the identity an agent uses to call protected tools. Agent Manager creates one for each agent in each environment, as an agent identity in that environment's ThunderID. For a platform-hosted agent it also stores the credential safely and puts four environment variables into the running pod, named AMP_AGENTID_CLIENT_ID, AMP_AGENTID_CLIENT_SECRET, AMP_AGENTID_TOKEN_ENDPOINT and AMP_AGENTID_SCOPES.
It is a staff badge made for one person and one building. It opens only the doors that person's role allows, and revoking it does not affect anyone else.
Why it exists
Agents should not borrow a human's login or share one broad key. A separate identity per agent and environment means a production agent's credential does not work in development, and its access can be cut off alone.
How it works
- When an agent is created, Agent Manager writes one binding row per environment in the agent_thunder_clients table and starts creating the identity in that environment's ThunderID. Failed attempts are retried every 3 minutes, up to 5 attempts, before the binding is marked failed.
- The client secret goes to the secret store through the secrets path. The binding keeps only the name of the SecretReference, not the secret.
- For an internal agent, deploy and reconcile steps add the four variables to the workload. The secret variable is a reference to a Kubernetes Secret.
- AMP_AGENTID_SCOPES lists the scopes of every MCP proxy the agent is connected to in that environment, read from Agent Manager's own database. ThunderID then keeps only the scopes the agent's roles allow.
- An external agent gets only a client id. It creates its own secrets on demand, and they are not stored.
- The open source build keeps the records in the service's database. A deployment can plug in a different provisioning implementation.
Identity and access
The agent uses the OAuth client_credentials grant against its environment ThunderID token endpoint, with its client id and secret, to get a token for MCP calls.
Key facts
- Database table
- agent_thunder_clients
- Injected variables
- AMP_AGENTID_CLIENT_ID, _CLIENT_SECRET, _TOKEN_ENDPOINT, _SCOPES
- Created in
- The environment ThunderID, one per agent and environment
- Retries
- 5 attempts, 3 minutes apart
- Permissions
- amp:agent-identity:* for agent groups and roles in an environment
Talks to (2)
- depends on Env ThunderID (per environment) Identity lives in env Thunder
- depends on MCP proxy and scopes Scope injection DB-sourced