TL;DR: OIDC federation and workload identity remove client secrets from production MCP flows by validating signed identity assertions, claim-based trust and short-lived credentials instead of shared keys, according to Clutch Security. The governance shift is bigger than authentication: access review assumptions break when trust is proved by runtime claims, not static credentials.
At a glance
What this is: This is an analysis of production MCP security that argues OIDC federation and workload identity are the practical path to removing client secrets from agent and server trust flows.
Why it matters: It matters because IAM, NHI, and emerging autonomous access programmes all need controls that can verify runtime identity without relying on long-lived credentials or broad, static grants.
By the numbers:
- Only 18% of MCP server deployments implement any form of access scoping for tool permissions.
- 53% of MCP servers expose credentials through hard-coded values in configuration files.
- 69% of organisations now have more machine identities than human ones.
👉 Read Clutch Security's production MCP security guide on OIDC federation and workload identity
Context
Production MCP security is not just about authentication. The core governance problem is whether an AI-connected control plane can prove identity without storing secrets that can be copied, reused, or passed downstream into other systems.
In this case, the article argues that OIDC federation and workload identity are the practical answer for MCP environments that already have mature identity infrastructure. That is an NHI governance question first, and a tooling question second.
The reason this matters is simple: if the MCP server can trust signed claims from an identity provider, then client secrets stop being the center of the security model. The open question for practitioners is whether their current IAM and PAM controls are built for claim-based trust or still depend on static credential handling.
Key questions
Q: How should security teams remove secrets from production MCP deployments?
A: Security teams should replace embedded client secrets with federated identity wherever the MCP server can validate signed claims from a trusted identity provider. That means using short-lived tokens, explicit issuer and audience checks, and workload-bound policies instead of reusable credentials. The goal is to make the access path verifiable without creating a secret to store or rotate.
Q: Why do client secrets create risk in MCP environments?
A: Client secrets create risk because they are persistent, copyable, and often reused across pipelines, workloads, and downstream APIs. In MCP, that turns one authentication artifact into a broad access bridge if it leaks. Federated workload identity reduces this exposure by proving identity through signed assertions rather than shared secrets.
Q: What breaks when MCP tool permissions are scoped too broadly?
A: Broad scoping breaks least-privilege governance because the same workload can invoke tools and reach resources far beyond its actual role. In practice, that makes audits less reliable and magnifies the blast radius of any compromise or misconfiguration. The fix is narrower claim-based policy, not looser trust in the calling identity.
Q: Who is accountable for MCP access when identity is federated?
A: Accountability stays with the team that defines the trust policy and the resource owner that grants access, not with the identity provider alone. Federated identity changes how access is proven, but it does not remove governance obligations around scope, revocation, and monitoring. Organisations still need clear ownership for every MCP trust relationship.
Technical breakdown
OIDC federation replaces shared secrets with signed identity claims
OIDC federation lets an MCP server trust an external identity provider instead of issuing client secrets to every caller. The server validates claims such as issuer, audience, and subject against its trust policy, then exchanges that proof for access scoped to the request. That changes the security boundary from credential custody to token validation. In practice, the trust decision moves to cryptographic assertions and policy conditions, which is far better than distributing reusable secrets across agents, pipelines, and cloud workloads.
Practical implication: eliminate client secret distribution where the MCP trust chain can be expressed as federated claims and short-lived tokens.
Workload identity gives MCP servers a cloud-native trust model
Workload identity extends federation to cloud runtimes, so a server or agent proves who it is through its execution context rather than a stored key. In Azure, GCP, AWS, or GitHub Actions, the caller can present a native token that is exchanged for temporary credentials. The architectural value is that identity now follows workload runtime, not environment labels or long-lived registration objects. That makes it possible to grant narrow access without creating credential artifacts that have to be tracked, rotated, and offboarded later.
Practical implication: map each MCP workload to a federated identity path and retire any design that still depends on embedded client credentials.
Claim-based trust enables auditable, least-privilege MCP access
The more powerful part of federation is not just removing secrets, but using rich token claims to scope tool access. Repository, branch, environment, and provider-specific attributes can all be used to decide whether a given call should be trusted. That is materially different from checking a client ID, because the policy can bind access to operational context. For MCP, this creates a cleaner path to auditable authorization, but only if teams keep scope narrow and avoid translating federation into broad standing grants.
Practical implication: design MCP authorization policies around contextual claims and incremental scope elevation, not broad pre-authorised tool access.
Threat narrative
Attacker objective: The objective is to turn a single exposed credential into durable, cross-environment access to MCP tooling and the resources it can reach.
- Entry occurs when an MCP deployment accepts long-lived client secrets or static credentials that can be copied from configuration, CI/CD, or host storage.
- Escalation happens when those credentials are reused across tools, environments, or downstream APIs, allowing broader access than the original caller should have held.
- Impact follows when the same secret is reused to invoke deployment tools, cloud resources, or other privileged actions, turning one credential into a cross-system trust failure.
Breaches seen in the wild
- Moltbook AI agent keys breach — Moltbook breach exposed 1.5M AI agent keys.
- Shai Hulud npm malware campaign — Shai Hulud campaign: npm malware exposed secrets on GitHub.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Zero-secrets MCP is a governance model, not just an authentication pattern. Once identity is proven through federated claims, the security conversation shifts away from secret custody and toward trust-policy design. That matters because MCP servers sit at the intersection of AI clients, cloud workloads, and downstream APIs, which means a single access mistake can propagate quickly. Practitioners should treat federation as the baseline for how non-human access is governed, not as a feature add-on.
Standing credentials are the wrong primitive for production MCP. The article is right to frame OAuth 2.1 as the floor, but the field-level issue is that long-lived client secrets create an unnecessary persistence layer around machine access. That persistence is what makes offboarding, rotation, and scope audits hard to keep accurate. The implication is that MCP programmes should stop designing around reusable credentials and start designing around ephemeral trust assertions.
Claim-based authorization is the real control plane for MCP tool access. Validating issuer, audience, subject, repository, branch, and environment gives teams a much more defensible way to scope access than static client registration ever could. This is where NHI governance, workload identity, and cloud access policy finally converge. The practitioner takeaway is to align tool permissions with verifiable workload context, not with identity names that never change.
MCP security now depends on whether downstream systems can tolerate identity-rich automation. As agents and workloads inherit stronger federation, the next failure mode will be over-broad trust policies, not missing secrets. That makes review of trust conditions, scope boundaries, and token forwarding paths central to governance. Teams should assume the attack surface is moving from secret leakage to authorization drift.
Identity blast radius: the smallest useful trust boundary is now the unit of control. Federation makes it possible to shrink access to repo, branch, environment, or workload instance, which is exactly where modern NHI governance should land. The more precise the trust boundary, the less likely one MCP integration becomes a reusable access bridge. Practitioners should treat blast-radius reduction as the measure of whether production MCP security is actually mature.
From our research:
- Only 18% of MCP server deployments implement any form of access scoping for tool permissions, according to Astrix Security's The State of MCP Server Security 2025.
- In the same research, 53% of MCP servers expose credentials through hard-coded values in configuration files, which shows how quickly static trust becomes exposure.
- For a broader identity baseline, see SailPoint's Critical Gaps in Machine Identity Management report, where 57% of organisations lack a complete inventory of their machine identities.
What this signals
Identity federation will become the default conversation for MCP governance. As more AI-connected workloads move into production, teams will need a trust model that can survive automation without depending on human-managed secrets. That pushes IAM and NHI programmes toward policy-bound claims, explicit workload ownership, and tighter revocation discipline. For readers, the signal is clear: any MCP programme still built around static credential handling is already behind the governance curve.
With 57% of organisations lacking a complete inventory of their machine identities, according to the Critical Gaps in Machine Identity Management report, federation will not fix visibility by itself. Practitioners should expect the hard part to shift from secret removal to identity discovery, trust mapping, and policy lifecycle management. The control gap is no longer only about leakage. It is about knowing which workloads are trusted to do what, and proving that the answer still holds after change.
Claim-bound access will become the new version of least privilege for AI-connected infrastructure. Once teams adopt OIDC federation, the next maturity step is to make trust conditions narrow enough to be auditable and broad enough to support real workflows. That is where NHI governance, workload identity, and cloud access policy converge. Readers should prepare for a world where access reviews are less about secret rotation and more about whether trust claims still match the workload's actual operating context.
For practitioners
- Eliminate reusable client secrets from MCP paths Replace static client credentials with OIDC federation wherever the server and calling workload can validate signed claims. Keep the trust decision in the identity provider and the authorization server, not in files, pipelines, or host storage.
- Bind tool access to workload context Scope MCP permissions to issuer, audience, subject, repository, branch, and environment claims so the same token cannot be reused outside its intended runtime. Treat claim validation as part of the access policy, not just authentication plumbing.
- Remove token pass-through to downstream APIs Stop forwarding inbound tokens unchanged to other systems, because that collapses the trust boundary and creates confused-deputy risk. Exchange or mint downstream credentials only when the target resource has its own explicit policy guardrails.
- Audit MCP scope against actual tool use Compare intended tool permissions with observed calls on a recurring basis and flag any drift into broader access than the workload genuinely needs. Use those reviews to identify where trust policies have become broader than the original use case.
Key takeaways
- Production MCP security is moving from shared secrets to federated identity, because static credentials are too easy to copy, reuse, and pass downstream.
- The evidence shows a real governance gap: access scoping is still rare in MCP deployments, so authentication improvements alone do not make these environments defensible.
- Practitioners should govern MCP access through claim validation, scope boundaries, and workload ownership, not through long-lived client credentials.
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 address the attack and risk surface, while NIST Zero Trust (SP 800-207) and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Federated identity replaces long-lived credentials and supports safer machine access. |
| NIST Zero Trust (SP 800-207) | PR.AC-4 | Claim-based trust and narrow scoping align with zero trust access decisions for workloads. |
| NIST CSF 2.0 | PR.AC-1 | Identity governance and access control are central to production MCP security. |
Replace reusable secrets with short-lived federated tokens and validate trust claims before granting tool access.
Key terms
- Oidc Federation: OIDC federation is a trust model where a service accepts signed identity assertions from an external identity provider instead of issuing reusable credentials itself. In NHI governance, it reduces secret sprawl by letting access decisions rely on verifiable claims, short-lived tokens, and explicit policy conditions.
- Workload Identity: Workload identity is the practice of proving a non-human workload's identity through its runtime context rather than a shared secret. It is used to bind access to a specific cloud workload, pipeline, or service instance, which makes offboarding, scoping, and audit trails more defensible.
- Claim-Based Authorization: Claim-based authorization is access control that evaluates token claims such as issuer, audience, subject, repository, or environment before granting access. It is stronger than static client registration because the policy can tie access to the actual operating context of the caller.
- Identity Blast Radius: Identity blast radius is the amount of damage a compromised identity can cause before governance detects and constrains it. For MCP and workload identity, the goal is to shrink that blast radius by narrowing claims, limiting scope, and avoiding reusable credentials that can be replayed elsewhere.
Deepen your knowledge
OIDC federation, workload identity, and production MCP security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are redesigning identity controls for AI-connected workloads, it is worth exploring.
This post draws on content published by Clutch Security: Part 2: Beyond Authentication for Production MCP Security. Read the original.
Published by the NHIMG editorial team on 2026-03-03.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org