A pattern where the application sends a provider request through an intermediary service instead of handling the user’s token directly. The relay authenticates the call, forwards the request, and returns the provider response while keeping the underlying credential out of the runtime. It is suited to agents, sandboxes, and other untrusted execution contexts.
Expanded Definition
Relay-Based delegated access is an access pattern in which a relay service mediates provider calls on behalf of an application, agent, or sandboxed workload. Rather than exposing a user token or long-lived API key to the runtime, the relay authenticates the request, applies policy, forwards it to the upstream provider, and returns the response. In NHI terms, this is a containment pattern for delegated authority: the runtime gets task-scoped access without inheriting durable credential custody.
Usage in the industry is still evolving, and definitions vary across vendors. Some implementations resemble token brokering, some resemble capability gateways, and some are closer to a policy enforcement proxy. The important distinction is operational: the intermediary becomes the trust boundary, so it must be designed for identity validation, request authorization, auditability, and credential isolation. This is especially relevant for agentic systems and other untrusted execution contexts where direct token handling would expand blast radius. For a standards baseline on control expectations, practitioners often map the pattern to OWASP Non-Human Identity Top 10 and the control discipline in NIST SP 800-53 Rev 5 Security and Privacy Controls.
The most common misapplication is treating the relay as a mere network proxy, which occurs when teams forward requests without binding them to workload identity and policy checks.
Examples and Use Cases
Implementing Relay-Based Delegated Access rigorously often introduces latency and design overhead, requiring organisations to weigh credential containment against the cost of adding another enforced trust boundary.
- An AI agent in a sandbox requests data from a SaaS provider through a relay so the agent never sees the underlying credential, reducing token theft risk if the environment is compromised.
- A CI/CD job calls cloud APIs through a relay that issues narrow, time-bound access, aligning with the containment concerns described in the Ultimate Guide to NHIs.
- A customer support chatbot accesses internal lookup services through a relay, letting the platform enforce policy and log every delegated request without embedding secrets in the bot runtime.
- A third-party integration reaches an internal reporting API through a relay to avoid direct secret sharing, a pattern often discussed alongside the attack paths in the 52 NHI Breaches Analysis.
- A controlled test environment uses a relay to simulate downstream provider access while preventing persistent credentials from escaping the lab boundary.
These use cases align with the broader control expectations in NIST SP 800-53 Rev 5 Security and Privacy Controls, especially where access mediation, logging, and least privilege need to be enforced at the delegation layer.
Why It Matters in NHI Security
Relay-Based Delegated Access matters because it changes where compromise becomes possible. If the runtime never receives the provider token, secret theft from memory, logs, crash dumps, or prompt injection has less value. That matters in NHI security, where Ultimate Guide to NHIs reports that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, and 96% of organisations still store secrets outside secrets managers in vulnerable locations. A relay can reduce that exposure, but only if it is strongly authenticated, tightly authorised, and monitored as a privileged component.
The governance risk is that teams may centralise trust without reducing privilege. If the relay can call too many providers, impersonate too many identities, or approve requests without context, it becomes a high-value escalation point. That is why practitioners pair the pattern with explicit policy, short-lived delegation, and audit trails. The security goal is not simply to move the token, but to keep the token unnecessary for the runtime while preserving traceability and revocation. For implementation guidance, OWASP Non-Human Identity Top 10 is useful for control thinking around credential exposure and delegated access paths.
Organisations typically encounter the need for relay-based delegated access only after an agent, integration, or sandbox leaks a credential or abuses an overbroad token, at which point the pattern becomes operationally unavoidable to address.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-63 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 | Addresses secret exposure and delegated access paths in NHI runtimes. |
| NIST CSF 2.0 | PR.AC-4 | Covers access permissions and least-privilege enforcement for delegated calls. |
| NIST SP 800-63 | AAL2 | Supports assurance requirements when a relay asserts or exchanges identity. |
| NIST Zero Trust (SP 800-207) | TA-2 | Zero Trust requires explicit trust evaluation for every mediated request. |
| CSA MAESTRO | Describes agentic control boundaries where intermediaries govern tool use. |
Keep provider credentials out of untrusted runtimes and enforce mediated access with narrow delegation.
Related resources from NHI Mgmt Group
- What is the difference between role-based access and API key governance for NHI security?
- When does policy-based access control reduce risk for NHI environments?
- When does ticket-based access management become too slow for NHI governance?
- What is the difference between just-in-time access and role-based access control?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org