All posts

Putting access controls around Devin: production access for AI coding agents (on CI/CD pipelines)

Why unchecked AI agents threaten production When an AI coding assistant can push code straight to production without any guardrails, the lack of production access controls can corrupt live data, trigger costly rollbacks, and expose sensitive customer information. A single mis‑generated query or an unintended configuration change can erase weeks of work, generate downtime, and create compliance headaches that cost millions in remediation. Most teams treat the AI agent as just another service ac

Free White Paper

CI/CD Credential Management + AI Model Access Control: The Complete Guide

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

Free. No spam. Unsubscribe anytime.

Why unchecked AI agents threaten production

When an AI coding assistant can push code straight to production without any guardrails, the lack of production access controls can corrupt live data, trigger costly rollbacks, and expose sensitive customer information. A single mis‑generated query or an unintended configuration change can erase weeks of work, generate downtime, and create compliance headaches that cost millions in remediation.

Most teams treat the AI agent as just another service account. They generate a static credential, store it in a secret manager, and grant it broad read‑write rights on the production database and the deployment cluster. The credential is shared across the entire CI/CD pipeline, and every build step can invoke the agent with the same privileges. There is no per‑run audit, no visibility into what the agent actually sent to the database, and no way to stop a dangerous command before it reaches the target.

What the organization really needs is a way to enforce production access that is tied to each individual request, not to a permanent credential. The goal is to let the AI agent do its job while ensuring every action is approved, recorded, and, when appropriate, masked or blocked. The challenge is that the request still travels directly to the production service, so without a dedicated enforcement point the organization remains exposed.

Why traditional setup falls short

The first line of defense is always identity. Teams configure OIDC or SAML providers, assign the AI service account to a role, and rely on IAM policies to limit scope. This setup decides who the request is, but it does not enforce what the request can do. The policies are evaluated at token issuance time, and once the token is minted the downstream service trusts the credential completely. No additional checks occur on the data path, so a malicious or buggy AI can still execute any command the role permits.

Because the enforcement logic lives outside the data path, there is no place to inject just‑in‑time approvals, inline data masking, or command‑level blocking. The result is a blind spot: the organization can prove that a token existed, but it cannot prove what the AI actually did with it, nor can it prevent a harmful operation in real time.

Placing the enforcement point in the data path

To close the blind spot, the enforcement layer must sit where the traffic actually flows. That is exactly what a Layer 7 gateway does: it proxies the connection, inspects each protocol message, and applies policy before the request reaches the production target. By inserting the gateway between the AI agent and the database or Kubernetes cluster, every operation can be evaluated against the organization’s production access rules.

hoop.dev provides that data‑path gateway. It runs a network‑resident agent alongside the target, authenticates the AI’s OIDC token, and then mediates every request. Because the gateway is the only path to the resource, it can enforce the full suite of production access controls.

Continue reading? Get the full guide.

CI/CD Credential Management + AI Model Access Control: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

How hoop.dev enforces production access for AI agents

Once the AI agent connects through the gateway, hoop.dev applies four core enforcement outcomes, each of which exists only because the gateway sits in the data path.

Just‑in‑time approval workflow

When the agent attempts a privileged operation, such as creating a new database schema or applying a Kubernetes manifest, hoop.dev pauses the request and routes it to an approver. The approver sees the exact command, the intended target, and the identity of the AI. After approval, the request is forwarded; otherwise it is rejected. This ensures that no high‑impact change reaches production without explicit human consent.

Inline data masking

Responses that contain sensitive fields, such as credit‑card numbers or personal identifiers, are filtered by hoop.dev before they are returned to the AI. The masking policy is defined once and applied to every query, guaranteeing that the AI never sees raw sensitive data, even if the downstream service would normally return it.

Command‑level blocking

hoop.dev can reject dangerous commands, like DROP DATABASE or delete‑all‑pods, based on a configurable deny list. The block happens before the command touches the production system, preventing accidental or malicious destruction.

Session recording and replay

Every interaction is recorded in an immutable audit trail. The recordings include the exact request, the decision (approved, blocked, or masked), and the response. Auditors can replay any session to verify compliance with production access policies.

All of these outcomes are driven by policies that reference the AI’s identity, the target resource, and the operation type. Because the policies are enforced at the gateway, the AI never gains unchecked production access.

Getting started with hoop.dev

To protect your CI/CD pipeline, deploy the gateway using the official getting‑started guide. Register your production database or Kubernetes cluster as a connection, configure OIDC authentication for the AI service account, and define the production access policies that match your risk appetite. The documentation walks you through setting up just‑in‑time approvals, masking rules, and session recording.

For deeper details on policy configuration, masking strategies, and approval workflows, explore the learn section of the site.

Explore the source code, contribute improvements, or file an issue on the open‑source repository: github.com/hoophq/hoop.

FAQ

  • Can I use hoop.dev with existing CI/CD tools? Yes. The gateway presents the same wire protocol that your build agents expect (PostgreSQL, kubectl, SSH, etc.), so you only need to point your tools at the gateway endpoint.
  • What happens if an approval is delayed? The request remains pending in the gateway until an approver responds. You can configure timeout policies that automatically reject stale requests.
  • Does hoop.dev store any credentials? The gateway holds the service‑account credential needed to reach the target, but the AI agent never sees it. All credentials are stored in the gateway’s encrypted store and are never exposed to the client.
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