Many believe that simply adding AI coding agents to a cloud project automatically satisfies access reviews. The reality is that an agent with broad permissions can bypass the very controls those reviews are meant to enforce.
How AI coding agents are used today
Development teams often grant a single service account to an AI‑driven code‑assistant so it can read source repositories, invoke build pipelines, and push changes to production. The credential is stored in a CI secret manager and reused across dozens of pipelines. Because the account has a static set of roles, any compromise of the agent or its secret instantly grants the attacker the same reach as the original developer.
In practice, the agent connects directly to GCP services, Cloud Storage, Cloud SQL, Kubernetes clusters, without any intermediate checkpoint. The request flows from the CI runner to the target API, and the cloud audit logs only capture the service account identity, not the intent of the command. No one watches the actual statements the agent runs, and no one can intervene once the request is in flight.
Why existing access reviews fall short
Traditional access reviews focus on static IAM bindings. Teams list which service accounts have which roles and periodically verify that list against a policy. This approach assumes that the holder of the credential will only perform approved actions. AI coding agents break that assumption because they generate commands on the fly based on user prompts, model outputs, or automated refactoring scripts.
The review process therefore misses two critical aspects: (1) the real‑time decision about whether a particular command should be allowed, and (2) a reliable record of what was actually executed. Without a point of enforcement, the system cannot block a dangerous operation, request human approval, or mask sensitive data that might be returned by a query.
What a real solution must provide
To make access reviews meaningful in the age of AI agents, an organization needs a control surface that sits on the data path between the agent and the target resource. This gateway must be able to:
- Inspect each request at the protocol level and compare it against policy.
- Require just‑in‑time approval for high‑risk commands before they reach the service.
- Record the full session for later audit and replay.
- Mask or redact sensitive fields in responses so that downstream logs do not leak secrets.
- Operate independently of the agent’s credential store, ensuring that the enforcement point cannot be reconfigured by the agent.
Only when these capabilities are in place does an access review move from a static checklist to a dynamic, evidence‑driven process.
hoop.dev as the identity‑aware gateway
hoop.dev fulfills the architectural requirement described above. It is a Layer 7 gateway that proxies connections to GCP resources such as Cloud SQL, GKE, and Cloud Storage. The gateway authenticates users and agents via OIDC or SAML, then enforces policy on every request that passes through it.
