All posts

Standing Access for Agent Runtimes

Many teams believe that granting a long‑lived token to an agent runtime is harmless because the agent only runs trusted code. In reality, that standing access creates a persistent bridge that attackers can step through, and it removes visibility from every command the agent executes. Standing access means the credential never expires, the permission set never shrinks, and the connection to the target service remains open for the lifetime of the process. When an agent runtime, such as a backgrou

Free White Paper

Standing Privileges Elimination + Open Policy Agent (OPA): The Complete Guide

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

Free. No spam. Unsubscribe anytime.

Many teams believe that granting a long‑lived token to an agent runtime is harmless because the agent only runs trusted code. In reality, that standing access creates a persistent bridge that attackers can step through, and it removes visibility from every command the agent executes.

Standing access means the credential never expires, the permission set never shrinks, and the connection to the target service remains open for the lifetime of the process. When an agent runtime, such as a background job, a CI worker, or an AI‑assisted helper, holds such a credential, the organization loses two essential controls. First, the identity that originally received the token can no longer be verified at each request. Second, there is no point where traffic can be inspected, masked, or logged before it reaches the database, Kubernetes API, or SSH daemon.

What the setup alone cannot protect

Identity providers, service accounts, and role‑based policies are the foundation of any zero‑trust model. They decide who may start a session and what baseline permissions the token carries. However, once the token is handed to the agent, the request bypasses any further checks. The setup does not enforce per‑command approval, does not hide sensitive fields in query results, and does not capture a replayable record of what was run. Those gaps remain open until a gate sits directly in the data path.

Why the data path matters for standing access

Placing a gateway between the agent runtime and the target resource creates the only place where enforcement can happen. The gateway can inspect each wire‑level request, apply just‑in‑time (JIT) policies, and decide whether to allow, mask, or record the operation. Without that interception point, the agent could issue any command its static credential permits, and the organization would have no evidence of the action.

Enforcement outcomes that only a gateway can deliver

  • hoop.dev records every session, producing a persistent audit trail that survives the agent process.
  • hoop.dev masks sensitive columns or fields in real time, preventing accidental exposure of PII.
  • hoop.dev blocks dangerous commands, such as DROP DATABASE or privileged kubectl exec, before they reach the backend.
  • hoop.dev routes risky operations to an approval workflow, ensuring a human signs off on high‑impact actions.

Each of these outcomes exists because the gateway sits in the data path; they would disappear if the agent communicated directly with the target.

How to watch for standing access pitfalls

When reviewing an agent runtime, ask these questions:

  1. Is the credential time‑bound or does it live forever?
  2. Does the agent have more privileges than it needs for its specific job?
  3. Are there logs that show exactly which commands were executed, and do they include response data?
  4. Can an administrator revoke the credential without restarting the agent?

If the answer to any of these is “no,” the runtime is likely exposing the organization to unnecessary risk.

Continue reading? Get the full guide.

Standing Privileges Elimination + Open Policy Agent (OPA): Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

Introducing hoop.dev as the data‑path solution

hoop.dev is a Layer 7 gateway that sits between identities and infrastructure. It receives the agent’s request, verifies the user’s OIDC or SAML token, and then enforces JIT policies on the fly. Because the gateway holds the target credential, the agent never sees it, and every interaction is captured.

By routing agent runtimes through hoop.dev, you gain:

  • Just‑in‑time credential issuance, so the token expires as soon as the command finishes.
  • Real‑time masking of sensitive response fields, protecting data at the point of egress.
  • Command‑level audit that records who ran what, when, and what the result was.
  • Optional approval steps for high‑risk operations, adding a human checkpoint.

The gateway’s policy engine lives outside the agent process, guaranteeing that enforcement cannot be bypassed by modifying the runtime.

Getting started

Deploy the gateway using the official getting‑started guide. The documentation explains how to register an agent runtime, configure OIDC authentication, and define JIT policies that replace standing access with short‑lived, request‑scoped tokens. For deeper insight into policy design, explore the learn section of the site.

FAQ

Does hoop.dev eliminate the need for service accounts?

No. Service accounts still provide the underlying credential that the gateway uses to talk to the target. hoop.dev merely ensures that the agent never holds that credential directly.

Can I retroactively audit actions taken before hoop.dev was deployed?

Only if those actions were already being logged by the target system. hoop.dev creates new audit records for traffic that passes through it after deployment.

Is there any performance impact?

The gateway adds a small, predictable latency because it inspects each request. In most environments the trade‑off is outweighed by the security benefits of JIT enforcement and full auditability.

Explore the source code, contribute improvements, and see the full feature set on GitHub: https://github.com/hoophq/hoop.

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