# How to give AI agents identity in Kubernetes

DevFeed: [How to give AI agents identity in Kubernetes](<https://devfeed.tech/articles/how-to-give-ai-agents-identity-in-kubernetes-122603.md>)

Original publisher: [Read original article](<https://nirmata.com/2026/11/09/how-to-give-ai-agents-identity-in-kubernetes/>)

Author: Ritesh Patel

Published: 2026-11-08T20:12:46.132051Z

Content type: tutorial

Language: en

Sources: [Nirmata](<https://devfeed.tech/sources/nirmata.md>)

Topics: [SPIRE](<https://devfeed.tech/topics/spire.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>)

Tags: [account](<https://devfeed.tech/tags/account.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-governance](<https://devfeed.tech/tags/ai-governance.md>), [domains](<https://devfeed.tech/tags/domains.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [identity](<https://devfeed.tech/tags/identity.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [rbac](<https://devfeed.tech/tags/rbac.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

Give each AI agent a dedicated Kubernetes service account and a short-lived projected token with an audience the receiving service checks. Bind permissions to that account; disable automatic token mounting for agents that do not call the Kubernetes API, and omit any explicitly declared token volume too. Kubernetes audit entries can identify the account, but do not capture the task or person behind an agent's action. For verification across trust domains, SPIRE can issue workload SPIFFE IDs and X.509 SVIDs through registration entries and the Workload API. Its Kubernetes workload attestor relies on pod cgroup membership, which the excerpt says is reliable only for unprivileged workloads; image selectors should use digests. The configuration has not been run on a cluster, and actual token lifetime may be capped by the API server.

## Source excerpt

Give each AI agent a named Kubernetes service account, a short-lived projected token for one audience, and a SPIFFE ID from SPIRE when it crosses trust domains.