Proof of agent identity: the agent is not you

Part of: Agent Identity

Proof of agent identity is evidence that this agent, not you and not the worker pod, made the call. Service accounts and OAuth do not give you that by default.

Proof of agent identity is evidence that this agent, not you and not the worker pod, made the call. Logs, policy, and audit have to name the agent without blaming the person or the pool. A Kubernetes ServiceAccount and a user OAuth token do not give you that by default.

The boring version of a scary story is still the right one: an agent booked a gym class by scraping the site, and you need to show it was the agent, not you.

I care about this because Substrate makes the default Kubernetes answer worse. The default answer is a ServiceAccount on a pod. On a WorkerPool, that ServiceAccount is the worker. Actors rotate through it. If the audit log says system:serviceaccount:kagent:kagent-default, you have proof of a pool, not of an agent.

What is proof of agent identity?

A verifiable, short-lived identity for the agent itself.

It has to survive a question from a reviewer after an incident: which named agent did this, in which session, acting for whom if anyone, and what can I revoke without disabling a human or deleting a worker? If you cannot answer those, you have a mesh, a pod, or a user. You do not have agent identity.

Who gave the agent a badge is the four-control version: identity, least privilege, approvals, audit. This post is only the first control, because the other three cannot name a principal you do not have.

The agent is not the user, and a pod ServiceAccount is not the agent. You need a principal for the agent, a principal for the human if the agent is acting for someone, and a delegation artifact you can revoke independently. Agent identity on Kubernetes is the series that works that split from the protocol up.

On Agent Substrate the principal cannot be the pod. Nine agents on two workers, later 18 on the same two, means the bay is shared. kagent Agent Substrate.

Why isn’t a Kubernetes service account proof of agent identity?

A service account authenticates the worker. On a multiplexed runtime, many agents reuse that worker. The SA says which pod spoke. It does not say which actor.

That is the split in agent identity vs service account. IRSA, GKE Workload Identity, a projected SA token: those authenticate a pod to a cloud API. I use them. They are not the agent’s name.

On a Deployment with one agent, the mix-up is merely coarse. You revoke the pod, you revoke the agent. You also revoke every replica, and you still cannot tell session 7 from session 400 in the log.

On Agent Substrate the mix-up is false. Many actors, one worker, one SA. The July 2026 intrusion’s cluster reconnaissance started by reading a projected service account token from a compromised worker pod. That token was the pod’s. It was enough to query the API. It was not an agent identity, and it was far too much power for a data-processing workload. Rogue agent Kubernetes controls.

automountServiceAccountToken: false unless the workload genuinely calls the API server. Even then, the SA is the bootstrap to an exchange, not the credential the tool sees.

What does the identity have to answer?

  • Which agent? Not which chart, which named agent. “kagent-default” is a pool.
  • Which session? A long-lived agent that did 400 tasks this week is not one principal. Revoke this turn without killing the template.
  • On whose behalf? Delegated access is not impersonation. I want that distinction in the token, not in a wiki. agent=gym-bot, act=alice is a different audit line from sub=alice.
  • What can I revoke? If I can only disable the human, I will disable the human. If I can only delete the worker SA, I will take down every actor in the pool.

That list is why OAuth is not enough for agents even when OAuth is on the path. Typical OAuth puts a user in front of a client. An unattended actor on a WorkerPool is not in a browser.

MCP still does not define an identity for the agent itself. Enterprise-Managed Authorization authenticates the employee through an IdP with an ID-JAG grant. DPoP (SEP-1932) and Workload Identity Federation (SEP-1933) are still open pull requests. MCP agent identity gap. Until the spec ships the rest, the proof lives a layer down, at the runtime and the gateway.

What identity plumbing actually works today?

Three layers, none of them theoretical.

  1. SPIFFE SVIDs on the workload, short-lived, no cert file in the image. The agent asks the local Workload API who it is. The gateway verifies on the handshake. Policy reads source.spiffeId, which a client cannot set. In the demo, agent-alpha gets HTTP 200 and agent-beta gets HTTP 403 from a valid SVID in the same trust domain. Identity is not authorization. SPIFFE for AI agents.
  2. Workload identity federation: the pod presents a projected SA token, bound to one audience and expiring after 600 seconds in the lab, an exchange verifies it against the cluster JWKS with no shared secret, and mints a resource-scoped credential. The agent never holds the upstream key. Replay of a /data token against /billing is 403. The default SA token, audience https://kubernetes.default.svc, is 401 at the exchange. Workload identity federation for agents.
  3. Audience binding so a token minted for /data dies on /billing. kagent v0.10.0 can send RFC 8707 resource indicators on the token exchange. Both KAGENT_STS_RESOURCE and KAGENT_STS_AUDIENCE default to empty. Empty means unscoped. kagent audience-bound tokens.

The inbound/outbound split is the same in secretless AI agents: the agent holds a 60-second identity token, the gateway holds the provider key and attaches it on the way out. A file read inside the agent finds nothing spendable.

Use those for the agent’s name. Use OAuth for the human-to-agent grant. Then stop. Do not paste a bearer token into the ActorTemplate.

How should identity map onto Agent Substrate restore and suspend?

Restore is the moment to mint. Suspend is the moment to drop.

If the actor still holds a cloud key across a checkpoint, you have serialized a secret into object storage. If it holds a user OAuth refresh token, you have stored the user’s session next to the snapshot. I want the actor to start empty and ask the exchange for a credential scoped to this turn. Agent checkpoint to object storage. Suspend and resume agents.

Tradeoff: restore gets slower by one round trip. I will pay that. The other tradeoff is impersonation. Some tools only accept the human. Then the design is a constrained delegation grant with a lifetime measured in minutes, logged as “agent A for user U,” not a copied cookie.

NetworkPolicy cannot name the agent. It sees the pod. Kubernetes Network Policy for agents. Tool guardrails can, if the call carries the actor identity. Tool-call guardrails.

If you cannot name the agent in the allow rule, you do not have agent identity. You have a mesh.

Test plan

  • Capture a token from agent A, replay as agent B, confirm 403.
  • Revoke agent A. Agent B on the same worker still works. The human who started A still works.
  • Suspend A. Confirm the credential does not live in the snapshot. Restore A, confirm it must mint again.
  • Exchange a projected SA token for /data. Replay it at /billing. Confirm 403.
  • Present the default SA token to the exchange. Confirm 401 on audience.
  • Read the audit line for a tool call. If it only names the namespace ServiceAccount, you failed the first question.

Field guide: Agent Substrate. Zero trust composition: zero trust architecture for AI agents.

Frequently asked questions

What is proof of agent identity?

A verifiable, short-lived identity for the agent itself: which agent, which session, which human it is acting for if any. Logs, policy, and audit can name the agent without blaming the person or the worker pod.

Why isn't a Kubernetes service account proof of agent identity?

A service account authenticates the worker. On a multiplexed runtime, many agents reuse that worker. The SA says which pod spoke. It does not say which actor. That is the split in agent identity vs service account.

Can I just use OAuth or X.509 for agents?

You can use both as plumbing. OAuth as usually deployed authenticates a client app as the user. An X.509 cert on a pod authenticates the pod. Neither one, by itself, is a per-session agent identity you can revoke without revoking the human or the node.

When should you mint and drop an agent credential on Substrate?

Mint at restore. Drop at suspend. If the actor still holds a cloud key or a user refresh token across a checkpoint, you have serialized a secret into object storage.

Does MCP define proof of agent identity?

Not for the agent itself. Enterprise-Managed Authorization authenticates the employee through an IdP. DPoP and Workload Identity Federation are still open pull requests. Until the spec ships the rest, the proof lives at the runtime and the gateway.

Disagree or have a war story? Reply on X