Can you trust every build step to stay within its intended scope?
Most CI/CD pipelines are assembled from a handful of scripts that run with a single service account. That account often holds a long‑lived token or SSH key that can reach every environment – development, staging, production – and every resource behind it. When a new job is added, the token is simply reused. The result is a sprawling blast radius: a compromised build step can reach any downstream service, modify databases, or spin up containers without any checkpoint.
Because the pipeline itself does the credential handling, there is no independent point that can observe or intervene in a command. Audits end up looking at log files that were written after the fact, and they rarely contain the raw commands that caused a change. If a malicious actor injects a command, the pipeline will execute it, and the damage is already done before anyone notices.
Why blast radius explodes in typical CI/CD pipelines
The core problem is the combination of three practices:
- Static, shared credentials. A single secret is baked into the pipeline configuration and propagated to all jobs.
- Unmediated direct connections. Jobs connect straight to databases, Kubernetes clusters, or SSH targets without an intervening control surface.
- Lack of real‑time audit or approval. The pipeline trusts the script’s intent and does not require a human to approve risky operations.
These choices make the blast radius effectively the entire production surface. A vulnerability in one repository can be leveraged to issue a destructive SQL statement, delete a namespace, or exfiltrate data, all without a trace that can be correlated to a specific identity.
How an MCP gateway reshapes the blast radius
Introducing an MCP (Model‑Control‑Proxy) gateway changes the architecture. The gateway sits at Layer 7, between the CI/CD runner and the target infrastructure. Identity is still provided by an OIDC or SAML provider – that is the setup that decides who may start a request. The gateway, however, becomes the sole data path for every connection.
When a pipeline step attempts to open a database session, the request is routed through the MCP gateway. The gateway inspects the wire‑protocol, applies policy, and only then forwards the traffic to the database. Because the gateway is the only place the traffic passes, it can enforce three critical outcomes:
- Session recording. hoop.dev records each command and its result, creating a replayable audit trail.
- Inline masking. Sensitive fields in query results are redacted before they reach the pipeline logs.
- Just‑in‑time approval. Dangerous commands trigger a workflow that requires a human to approve before execution.
Each of these outcomes is only possible because hoop.dev sits in the data path. If the gateway were removed, the pipeline would again talk directly to the target, and none of the controls would apply.
