All posts

MCP gateways: what they mean for your blast radius (on GCP)

Your blast radius can explode when AI agents talk directly to production services. Most teams that experiment with model‑controlled‑plane (MCP) gateways on Google Cloud give the AI runtime a service account that has broad permissions across storage, Pub/Sub, Cloud SQL and other critical resources. The credential is often baked into the container image or stored in a long‑lived secret. Because the gateway simply forwards the model’s request to the target, there is no real visibility into which A

Free White Paper

Blast Radius Reduction + GCP IAM Bindings: The Complete Guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free. No spam. Unsubscribe anytime.

Your blast radius can explode when AI agents talk directly to production services.

Most teams that experiment with model‑controlled‑plane (MCP) gateways on Google Cloud give the AI runtime a service account that has broad permissions across storage, Pub/Sub, Cloud SQL and other critical resources. The credential is often baked into the container image or stored in a long‑lived secret. Because the gateway simply forwards the model’s request to the target, there is no real visibility into which API call was made, what data was returned, or whether the command should have been allowed. In practice the model can issue a write to a database, delete a bucket, or spin up a Compute Engine instance without any human oversight.

This lack of control creates a massive blast radius. If an attacker compromises the model, or if the model hallucinates a destructive command, the impact spreads instantly across every service that the service account can reach. The result is a single compromised AI component that can cascade failures across the entire GCP project, jeopardizing data integrity, availability, and compliance.

What most organizations get right first is the setup: they provision an OIDC identity for the model, they assign the least‑privilege roles they can think of, and they register the MCP gateway in the same VPC as the workloads. Those steps decide who the request is and whether it may start, but they do not stop the request from flowing straight to the target. The connection still bypasses any enforcement point, so there is no audit trail, no inline data masking, no just‑in‑time approval, and no ability to block a dangerous command before it runs.

Why a data‑path gateway is required

To shrink the blast radius you need a place where every request can be inspected, verified and, if necessary, rejected. The only reliable location for that inspection is the data path itself – the network hop that sits between the model and the target service. By placing a gateway in that position you gain three essential capabilities:

  • Session recording that captures the exact request and response for later replay.
  • Inline masking that redacts sensitive fields before they leave the target.
  • Just‑in‑time approval workflows that pause a high‑risk command until a human authorizes it.

hoop.dev provides exactly that data‑path enforcement. It acts as an identity‑aware proxy for MCP gateways, routing traffic through a Layer 7 gateway that can apply the controls listed above. The gateway holds the credential needed to talk to the backend service, so the model never sees a secret. Identity is still performed via OIDC or SAML, but the policy decision point lives in the gateway, not in the model or the target.

Continue reading? Get the full guide.

Blast Radius Reduction + GCP IAM Bindings: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

How hoop.dev reduces blast radius

When you insert hoop.dev into the MCP flow, every command passes through a checkpoint that can limit the scope of damage:

  • hoop.dev records each session, giving you a complete replayable audit trail. If a breach occurs, you can trace exactly which model request triggered the offending operation.
  • hoop.dev masks sensitive data in responses, preventing the model from learning or leaking credentials, personal identifiers, or proprietary information.
  • hoop.dev enforces just‑in‑time approval for high‑impact actions such as creating or deleting resources. The request is held at the gateway until an authorized operator signs off.
  • hoop.dev blocks commands that match a deny list, such as destructive SQL statements or IAM‑changing API calls, before they reach the backend.
  • Because the gateway is the only point that holds the backend credential, a compromised model cannot reuse that secret elsewhere, dramatically reducing the attack surface.

All of these outcomes exist only because hoop.dev sits in the data path. The initial identity setup still decides who may start a session, but the enforcement outcomes, audit, masking, approval, blocking, are delivered by hoop.dev.

Getting started with hoop.dev and MCP gateways

Deploy the gateway using the official getting started guide. The quick‑start uses Docker Compose to spin up a local instance, configure an OIDC provider, and register an MCP connection. Once the gateway is running, point your model’s client to the hoop.dev endpoint instead of the raw GCP service endpoint. The gateway will automatically apply the policies you define in its configuration.

For deeper insight into how masking works and how you can tailor policies to your data model, explore the learn section. The documentation shows how to declare which fields are considered sensitive and how to create approval workflows that match your organization’s risk appetite.

FAQ

How does hoop.dev actually shrink my blast radius?

By forcing every request through a controllable checkpoint, hoop.dev can stop a destructive command before it reaches the target, record exactly what happened, and ensure that only authorized humans can approve high‑risk actions. The result is a much narrower set of services that a compromised model can affect.

Do I still need IAM roles for the model?

Yes. The identity setup determines who may initiate a session and which gateway instance they can reach. However, those roles no longer give the model unrestricted access because the gateway enforces additional checks.

Is hoop.dev open source?

Absolutely. The project is MIT licensed and the source lives on GitHub. You can review, contribute, or self‑host the gateway to meet any compliance requirement.

Explore the source code on GitHub.

Open source

Save the open-source gateway for agent data access

Hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.

Star and save the repo →More posts