All posts

Agent Runtimes and Non-Human Identities: What to Know

non-human identity gives automated agents unlimited access, and a single compromise can devastate an entire environment. In most shops, service accounts, API keys, and machine credentials are baked into container images, stored in shared vault folders, or even checked into source control. Engineers often reuse the same token across dozens of pipelines because rotating it feels like a project on its own. The result is a sprawling web of static secrets that any compromised process can wield witho

Free White Paper

Non-Human Identity Management + Open Policy Agent (OPA): The Complete Guide

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

Free. No spam. Unsubscribe anytime.

non-human identity gives automated agents unlimited access, and a single compromise can devastate an entire environment.

In most shops, service accounts, API keys, and machine credentials are baked into container images, stored in shared vault folders, or even checked into source control. Engineers often reuse the same token across dozens of pipelines because rotating it feels like a project on its own. The result is a sprawling web of static secrets that any compromised process can wield without additional checks. Auditors rarely see who actually invoked a command; logs are fragmented, and no one can tell whether a database query returned a credit‑card number before it left the system.

This reality is the starting point for any discussion of non-human identity. The convenience of a permanent credential is undeniable, but it leaves three critical gaps: the request reaches the target directly, there is no real‑time audit of what the agent did, and there is no way to block or mask sensitive data on the fly.

Why non-human identity is attractive to attackers

Automated agents run with high privileges because they need to perform backups, deploy code, or scrape metrics. When a token is static, an attacker who extracts it from a compromised host inherits all those privileges. The breach spreads laterally, because the same credential is often reused across environments. Without a control point that can see each request, the organization loses visibility into the blast radius of the compromise.

Where enforcement must happen

The only place to enforce policy for a non-human identity is in the data path that carries the request to the target service. Setup steps, such as provisioning a service account, assigning it to a group, or configuring OIDC claims, determine who the request pretends to be, but they cannot stop the agent from issuing a destructive command once the connection is open. The gateway that sits between the agent runtime and the infrastructure is the sole point where you can apply just‑in‑time approval, inline masking, command blocking, and session recording.

How hoop.dev secures agent runtimes

hoop.dev acts as a Layer 7 gateway for agent runtimes. It intercepts every protocol‑level request, whether it is a PostgreSQL query, an SSH command, or a Kubernetes exec, before it reaches the target. Because hoop.dev is the data path, it can:

  • Record each session so that replay is possible for forensic analysis.
  • Mask sensitive fields (for example, credit‑card numbers) in responses before they are returned to the agent.
  • Require a human approver for high‑risk commands, turning a static credential into a just‑in‑time access mechanism.
  • Block commands that match a deny‑list, preventing accidental or malicious destructive actions.

All of these outcomes exist only because hoop.dev sits in the data path. If the gateway were removed, the non-human identity would again have unchecked, direct access.

Continue reading? Get the full guide.

Non-Human Identity Management + Open Policy Agent (OPA): Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

Typical scenario

Imagine a CI/CD pipeline that runs a nightly data‑migration script against a PostgreSQL instance. The script authenticates with a service account that has read‑write privileges on the database. With hoop.dev in place, the pipeline’s connection is forced through the gateway. Before the migration runs, hoop.dev checks the command against a policy that requires a senior engineer’s approval for any DDL operation. The engineer approves, the command executes, and hoop.dev records the entire session. If the script accidentally attempts to drop a production table, hoop.dev blocks the command and logs the attempt, providing undeniable evidence for post‑mortem analysis.

Best practices for non-human identity

Even with a gateway, you should still treat non-human identities as privileged assets:

  1. Give each agent the minimum set of permissions it needs to do its job.
  2. Rotate service‑account tokens on a regular cadence, ideally automatically via your secret‑management system.
  3. Scope tokens to specific resources or namespaces so that a compromised token cannot reach unrelated services.
  4. Combine static credentials with dynamic approval workflows, this is exactly what hoop.dev enables.

When you pair these practices with hoop.dev’s real‑time enforcement, you close the visibility and control gaps that make non-human identity a high‑risk vector.

Getting started

The first step is to deploy the hoop.dev gateway near the resources you want to protect. The getting‑started guide walks you through a Docker Compose deployment, OIDC configuration, and how to register a connection for a service account. Once the gateway is running, you can explore policy configuration, approval workflows, and masking rules in the learn section. All of the implementation details, including how the agent runtime talks to the gateway, are documented there.

FAQ

Can I use existing service accounts with hoop.dev?

Yes. The setup phase registers the service account as a connection, but hoop.dev still mediates every request, providing the enforcement outcomes described above.

Does hoop.dev store the credentials for the agent runtime?

No. The gateway holds the credential only long enough to establish the outbound connection; the agent never sees the secret.

What happens to audit logs if I disable hoop.dev?

Without the gateway, there is no centralized session recording or inline masking. Auditors lose the ability to reconstruct what the non-human identity did.

How does hoop.dev handle scaling for many agents?

The gateway is designed to run as a stateless service that can be replicated behind a load balancer. Each instance enforces the same policies, so you retain consistent control as you grow.

Explore the source code and contribute 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