When the broker becomes the system of record, teams usually end up with fragmented secret stores, weaker lifecycle controls, and duplicated policy logic. The better pattern is to keep the broker lightweight and stateless, then pull secrets from a central store that handles rotation, auditing, versioning, and access policy enforcement.
Why This Matters for Security Teams
Secrets brokering is supposed to be a delivery layer: retrieve, transform, and hand off credentials without becoming the place where trust lives. When that boundary blurs, teams inherit two problems at once. First, the broker starts duplicating policy decisions that should belong in the central secrets system. Second, every downstream integration now depends on the broker’s state, making outages, drift, and inconsistent revocation harder to control. That pattern shows up frequently in pipeline tooling and agent workflows, where speed is prioritised over lifecycle discipline.
The risk is not theoretical. NHIMG research on Guide to the Secret Sprawl Challenge shows how quickly distributed handling turns into secret sprawl, while the OWASP Non-Human Identity Top 10 frames this as an identity and lifecycle issue, not just storage hygiene. In practice, many security teams encounter broker drift only after leaked credentials or failed revocation have already created an incident.
How It Works in Practice
A healthy model separates responsibilities. The central secrets store remains the system of record for versioning, rotation, policy enforcement, and audit logs. The broker stays stateless and short-lived: it authenticates the workload, fetches the requested secret, applies any required formatting or token exchange, and returns it for immediate use. If the broker also owns policy, rotation timing, or retention logic, it becomes another secrets repository with its own access paths and failure modes.
That separation matters because delivery and governance move at different speeds. Delivery needs low latency and integration flexibility. Governance needs consistent controls and a durable record of who accessed what, when, and why. The best practice is evolving toward centralised policy with narrow delivery adapters, especially for CI/CD, runtime workloads, and autonomous agents. NHIMG’s State of Secrets Sprawl 2026 highlights why this matters: 64% of valid secrets leaked in 2022 are still valid and exploitable today, proving that detection without automated revocation leaves old credentials alive long after exposure.
- Keep the broker focused on retrieval and transient transformation, not lifecycle ownership.
- Use the central store for rotation, auditing, access policy, and secret version history.
- Issue short-lived credentials or tokens where possible, rather than moving static secrets between layers.
- Log the requesting workload identity, purpose, and access context at the point of retrieval.
For implementation patterns, SPIFFE is a useful reference for workload identity, while CISA guidance reinforces the need for strong asset and credential governance across runtime environments. These controls tend to break down when the broker is embedded inside CI/CD runners or ephemeral agent tooling because the same component is then asked to authenticate, store, and distribute secrets under high churn.
Common Variations and Edge Cases
Tighter centralisation often increases integration overhead, requiring organisations to balance operational simplicity against pipeline speed and developer ergonomics. That tradeoff becomes visible in edge cases such as offline jobs, air-gapped environments, and multi-cloud deployments where a broker may need temporary caching or local transformation logic. Current guidance suggests that these exceptions should still preserve a single source of truth, but there is no universal standard for how much edge caching is acceptable.
Agentic systems create an additional wrinkle. When an AI agent or autonomous workflow requests secrets on the fly, the broker may be tempted to record more state to support retries, approvals, or usage analytics. That is where boundaries blur and policy logic starts leaking into delivery. NHIMG’s Shai Hulud npm malware campaign and Reviewdog GitHub Action supply chain attack both show how quickly downstream tooling can magnify a single credential handling mistake. The practical test is simple: if the broker’s compromise would expose long-term secret history or policy state, it has crossed the line from delivery layer into source of truth.
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, CSA MAESTRO and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Directly addresses secret lifecycle and rotation drift in NHI systems. |
| NIST CSF 2.0 | PR.AC-1 | Identity and access management must stay tied to the authoritative store. |
| NIST AI RMF | GOVERN | Autonomous secret requests need accountable policy ownership and oversight. |
| CSA MAESTRO | 3.4 | Agentic and runtime control planes should avoid mixing delivery with policy state. |
| OWASP Agentic AI Top 10 | Agent workflows increase the blast radius when brokers become stateful. |
Keep the broker stateless and let the central store enforce rotation, versioning, and revocation.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org