AI agents that can run unchecked on Kubernetes are a ticking time bomb, and without session recording you have no way to see exactly what they did.
Most teams today rely on audit logs as the sole evidence of what happened inside a cluster. A service account with a long‑lived token is shared among pipelines, bots, and sometimes even developers. The token is stored in a secret file, checked into repos, or hard‑coded into CI scripts. When an AI‑driven workload executes a kubectl command, the request travels directly to the API server. The server writes a line to the audit log that records the user, the verb, and the resource name. That is the only trace left behind.
Audit logs give you a high‑level view, but they miss the interactive details that matter most. They do not capture the exact sequence of commands, the timing between steps, or the data that flowed in responses. If an AI agent queries a secret ConfigMap, extracts credentials, and then uses them to reach an external service, the audit entry will only show a "get" on the ConfigMap. The downstream activity is invisible. In a breach investigation, you are left piecing together fragments, guessing intent, and hoping the log retention window still holds the needed records.
Many organizations try to tighten the perimeter by adding just‑in‑time (JIT) access or by federating identities through an OIDC provider. The idea is that a user or service only receives a short‑lived token right before a job runs. This reduces the blast radius of a stolen credential, but it does not change the fact that the request still goes straight to the Kubernetes API server. The API server sees a legitimate token, executes the command, and logs a single audit line. No additional guardrails intervene, and no replayable record of the session exists.
Why session recording matters more than audit logs
session recording captures every byte that passes between the client and the Kubernetes control plane. It creates a replayable artifact that shows exactly which commands were issued, what responses were returned, and how long each step took. With a full recording you can:
- Replay an AI‑driven incident step‑by‑step to understand intent.
- Correlate command output with downstream network activity.
- Provide auditors with concrete evidence of who did what, not just a summary.
- Detect anomalous patterns, such as a sudden surge of secret reads followed by external calls.
Because the recording lives outside the cluster, it cannot be tampered with by a compromised workload. The data path that creates the recording is the only place where enforcement can happen.
Introducing a data‑path gateway that provides session recording
hoop.dev sits between the identity provider and the Kubernetes API server. It proxies every request, inspects the wire‑protocol, and applies policy before the request reaches the target. By placing the gateway in the data path, hoop.dev can:
