All posts

Nested agents: what they mean for your access reviews (on internal SaaS)

What a clean access‑review process looks like When access reviews accurately reflect who can act through nested agents, auditors see a concise list of identities, timestamps, and the exact commands that were allowed. No hidden service‑account keys linger in logs, and every privilege escalation is visible and time‑bound. Teams can answer “who did what, when, and why” without digging through disparate ticket systems. How teams actually run nested agents today Most internal SaaS platforms ship

Free White Paper

Access Reviews & Recertification + Single Sign-On (SSO): The Complete Guide

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

Free. No spam. Unsubscribe anytime.

What a clean access‑review process looks like

When access reviews accurately reflect who can act through nested agents, auditors see a concise list of identities, timestamps, and the exact commands that were allowed. No hidden service‑account keys linger in logs, and every privilege escalation is visible and time‑bound. Teams can answer “who did what, when, and why” without digging through disparate ticket systems.

How teams actually run nested agents today

Most internal SaaS platforms ship an agent that talks to downstream services – a database, a Kubernetes cluster, or an SSH host. To avoid re‑authenticating for each downstream call, the platform often embeds a long‑lived service account credential inside the agent. That credential is then reused by any child process the agent spawns, creating a cascade of “nested agents” that all share the same identity.

The convenience is real: a single token lets the SaaS product provision resources, run migrations, and execute admin commands without additional user interaction. The downside is that the token becomes a de‑facto privileged account. Because the nested calls bypass the outer identity check, they leave no trace in the central IAM system. When a security auditor asks for an access‑review of who touched a production database, the answer is often “the SaaS platform’s service account”, which tells nothing about the actual engineer who triggered the operation.

What the current fix solves – and what it still leaves open

Organizations have started to enforce identity‑aware authentication at the entry point of the SaaS platform. The outer agent now validates a user’s OIDC token before allowing any operation. This step eliminates the outright use of static credentials for the initial request and makes the first hop visible in the IAM logs.

However, the request still travels directly from the outer agent to the downstream target. The downstream connection is made with the same service‑account credential, and the gateway that sits between the outer and inner agents does not inspect the traffic. Consequently, there is no per‑command audit, no inline masking of sensitive fields, and no way to require a human approval before a risky operation. Access‑review processes therefore continue to see a single, opaque service account instead of a granular, actionable trail.

Why the data path must host the enforcement

Only a gateway that sits in the data path can observe and control the traffic between nested agents and the resources they reach. By inserting a Layer 7 proxy, every request – whether it originates from a human user or from a child agent – is forced through a single point that can enforce policy, record intent, and produce evidence for access‑review reports.

That is exactly what hoop.dev provides. The gateway runs alongside the internal network, intercepts the protocol stream, and applies a policy engine before the request reaches the target. Because the enforcement happens where the traffic actually flows, hoop.dev can guarantee that no nested call escapes scrutiny.

Continue reading? Get the full guide.

Access Reviews & Recertification + Single Sign-On (SSO): Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

How hoop.dev changes the access‑review picture

hoop.dev records each session that passes through it, attaching the original user’s identity to every command issued by any nested agent. The recorded session can be replayed, providing concrete proof of who performed which action and when. This data feeds directly into access‑review workflows, turning a vague “service account used” entry into a detailed, auditable list.

Inline masking is applied to responses that contain sensitive data, such as credit‑card numbers or personal identifiers. The mask is enforced by hoop.dev before the data reaches the downstream service, ensuring that even if a nested agent is compromised, it never sees the raw value. This reduces the blast radius of a breach and simplifies compliance evidence.

Just‑in‑time (JIT) approval workflows are also available. When a nested agent attempts a high‑risk command – for example, dropping a production table – hoop.dev can pause the request and route it to a designated approver. The approval decision is logged alongside the session, giving reviewers a complete picture of the risk‑based decision process.

Because the gateway holds the downstream credentials, the nested agents never see them. This “agent never sees the credential” guarantee eliminates credential sprawl and makes revocation a single operation at the gateway level.

Practical steps to bring hoop.dev into your environment

  • Deploy the gateway using the official Docker Compose quick‑start. The deployment includes OIDC authentication, masking, and guardrails out of the box.
  • Register each internal SaaS endpoint as a connection in hoop.dev. The gateway will store the service‑account credential and present it only to authorized sessions.
  • Configure your identity provider (Okta, Azure AD, Google Workspace, etc.) as the OIDC source. hoop.dev validates the token and maps group membership to access policies.
  • Define policies that require JIT approval for privileged commands and enable inline masking for fields that contain personal data.
  • Enable session recording and export the logs to your SIEM or audit store. The recorded sessions become the primary artifact for access‑review reports.

All of these actions are described in the getting‑started guide and the broader learn section.

FAQ

Do I need to change my existing service‑account credentials?

No. hoop.dev stores the existing credential securely and presents it only when a policy‑approved session is active. The credential itself does not need to be rotated unless you choose to do so.

Can hoop.dev mask data that is returned from a database query?

Yes. The gateway can be instructed to replace patterns that match credit‑card numbers, SSNs, or any custom regex before the data leaves the database connection.

How does this impact latency for my internal SaaS?

Because the gateway operates at the protocol layer, the added latency is typically a few milliseconds per request, which is negligible for most internal workloads.

Ready to see how a Layer 7 gateway can give you the audit evidence you need for thorough access reviews? Contribute on GitHub and start building a transparent, controllable data path today.

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