An offboarded contractor’s CI job still runs nightly, spawning a chain of helper processes that talk to internal databases. Those helper processes are called nested agents because they inherit the original token and then launch their own connections on behalf of the pipeline. The contractor’s IAM policy granted the CI service account broad read‑write rights, so each nested agent can issue queries, modify tables, and even open SSH tunnels without any additional review. When the contractor leaves, the token remains active, the pipeline keeps running, and the nested agents continue to act with the same privileges. The result is a classic IAM blind spot: a credential that was intended for a single job now powers an entire cascade of actions across multiple services.
Traditional IAM approaches focus on the first hop – the identity that authenticates to the gateway. They assign roles, set token lifetimes, and rely on revocation when a user departs. However, once a credential is handed to a process, the downstream agents inherit that identity automatically. The IAM system has no visibility into what those agents do, whether they obey policy, or whether they should be allowed to run at all. In many organizations the only evidence of activity lives in scattered logs that are hard to correlate, and there is no real‑time guardrail to stop a dangerous command before it reaches the target system.
To close this gap, enforcement must happen where the traffic actually flows, not just at the point of authentication. The data‑path – the gateway that proxies every request – is the only place where a policy engine can inspect, mask, approve, or block operations originating from any nested agent. Without a dedicated data‑path control, IAM alone cannot guarantee that a credential used by a CI job will not be abused by the agents it spawns.
IAM considerations for nested agents
Setting up IAM for nested agents starts with defining the identity that each top‑level process receives. This involves configuring OIDC or SAML providers, creating service accounts with the minimum set of permissions, and applying least‑privilege scopes to the token. The setup phase decides who can start a connection and what baseline rights they have. It is necessary, but it does not enforce any rule once the token is in use.
Why the data‑path is the enforcement frontier
The gateway sits between the identity provider and the target infrastructure. By placing a proxy at Layer 7, every database query, SSH command, or HTTP request passes through a single control surface. This is the only point where you can reliably apply:
