Just-in-time access is essential when an AI coding agent is given a permanent Kubernetes credential, because the cost is invisible until a breach occurs. A single compromised token can let the agent enumerate pods, pull secrets, or launch containers that run arbitrary code across the whole cluster. The resulting lateral movement, data exfiltration, and compliance gaps can cripple a product team and erode customer trust.
Most organizations already use OIDC‑backed identities for engineers and have begun to experiment with AI‑driven assistants. The identity system can tell who is asking for access, and a request can be scoped to a short‑lived session. Yet the request still travels directly to the EKS API server, bypassing any enforcement point. No command‑level audit, no inline masking of sensitive fields, and no real‑time approval workflow exist once the connection is made. The result is a blind spot: the cluster sees a valid client, but the organization cannot verify what the client does.
Why just-in-time access matters for AI agents
AI agents are powerful because they can generate and execute code at speed. That speed is a double‑edged sword. If an agent mistakenly issues a kubectl exec into a privileged pod, it can read environment variables that contain database passwords or API keys. If it runs a kubectl delete on a namespace, it can erase weeks of work in seconds. Just-in-time access limits the window during which those privileges are usable, but it must be coupled with real‑time controls that watch each command before it reaches the cluster.
Without a guardrail, the organization loses visibility into which AI‑generated commands actually ran, cannot prove that a secret was never exposed, and cannot enforce a policy that requires human sign‑off for high‑risk operations. Those gaps directly conflict with audit requirements and increase the risk of accidental or malicious damage.
How hoop.dev enforces just-in-time access for EKS
hoop.dev sits in the data path between the AI agent and the EKS control plane. The gateway validates the OIDC token presented by the agent, extracts the user’s group membership, and then decides whether the request may proceed. The agent itself never sees the underlying AWS credentials; instead, hoop.dev’s runtime agent assumes a dedicated IAM role that is configured on the EKS connection. That role maps to a Kubernetes RBAC binding, so the session inherits the exact permissions needed for the requested task.
