# RBAC for AI agents in Kubernetes

DevFeed: [RBAC for AI agents in Kubernetes](<https://devfeed.tech/articles/rbac-for-ai-agents-in-kubernetes-121571.md>)

Original publisher: [Read original article](<https://nirmata.com/2026/11/05/rbac-for-ai-agents-in-kubernetes/>)

Author: Ritesh Patel

Published: 2026-11-05T07:00:00Z

Content type: tutorial

Language: en

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

Topics: [rbac](<https://devfeed.tech/topics/rbac.md>), [Kyverno](<https://devfeed.tech/topics/kyverno.md>)

Tags: [account](<https://devfeed.tech/tags/account.md>), [admission](<https://devfeed.tech/tags/admission.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>), [api](<https://devfeed.tech/tags/api.md>), [audit](<https://devfeed.tech/tags/audit.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [bind](<https://devfeed.tech/tags/bind.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [delete](<https://devfeed.tech/tags/delete.md>), [development](<https://devfeed.tech/tags/development.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [limit](<https://devfeed.tech/tags/limit.md>), [pod](<https://devfeed.tech/tags/pod.md>), [rbac](<https://devfeed.tech/tags/rbac.md>), [rules](<https://devfeed.tech/tags/rules.md>), [security](<https://devfeed.tech/tags/security.md>), [service](<https://devfeed.tech/tags/service.md>)

## AI overview

Give each AI agent a named Kubernetes service account and grant only the required resources and verbs through a RoleBinding in the agent's namespace. Kubernetes RBAC is additive and has no deny rules; audit both direct bindings and group grants, since broader group permissions can exceed a narrow account binding. Pods that omit `serviceAccountName` use the namespace's `default` account, so a grant to `default` can affect every pod that falls back to it. Disable `automountServiceAccountToken` for agents that never call the API; API-using agents should use short-lived, rotating projected tokens rather than static Secret tokens. RBAC governs Kubernetes API access, while container permissions on the node require separate pod security controls. The excerpt also recommends starting Kyverno enforcement in audit mode before switching to deny.

## Source excerpt

Give each AI agent its own service account, bind it to a narrow Role, and point its pod at that account. RBAC has no deny rules, so grants are the limit.