Imagine a newly hired contractor who leaves a repository full of AI‑generated code snippets behind. The team keeps the same service account for all automated code‑completion bots, and the bots run inside a Kubernetes cluster with cluster‑admin privileges. When the contractor’s access is revoked, the bots keep running, pulling secrets from mounted volumes and writing them to external Git remotes. No alert fires, and no one can tell which command caused the leak. This is a classic data exfiltration scenario that often goes unnoticed.
That scenario mirrors the default way many organizations deploy AI coding agents on Kubernetes today. Engineers mount a single service account token into every pod that needs AI assistance. The token often has broad RBAC bindings, read access to all namespaces, write access to ConfigMaps, and the ability to exec into any container. The agents themselves are just processes that consume the same credentials as a human operator, so they inherit every permission the token grants.
Current practice and hidden risks
Because the agents are treated like any other workload, they bypass the usual request‑level approvals. Auditing tools typically capture only pod‑level events, not the exact commands the agent sends to the Kubernetes API or to the applications it talks to. If an agent inadvertently copies a database password from a secret and posts it to a public webhook, the exfiltration may go unnoticed until after the fact.
Even when teams adopt OIDC or SAML for user authentication, the same token is reused across all agents. The identity check happens once at pod creation, but there is no enforcement point that can inspect each API call in real time. The result is a blind spot where data can slip out of the cluster without any guardrails.
Why identity alone isn’t enough
Switching to short‑lived tokens or tighter RBAC is a necessary first step. It limits the surface area that any single agent can reach. However, the request still travels directly from the pod to the Kubernetes API server. Without a gateway that can observe, approve, or mask the payload, the system cannot prevent a malicious or buggy command from reaching the target resource.
In other words, the setup decides *who* may start a session, but it does not provide the *where* for enforcement. The data path remains unprotected, leaving the organization exposed to data exfiltration despite stronger identities.
hoop.dev as the enforcement point
hoop.dev inserts a Layer 7 gateway between the AI coding agents and the Kubernetes control plane. Every API request and exec command flows through the gateway, where hoop.dev can apply real‑time policies. Because hoop.dev is the only component that sees the traffic, it becomes the sole place where enforcement can happen.
