Repository navigation
Is wiring verified external identity into MCP tool-call authorization in scope? #3737
Replies: 3 comments
|
Why this project exists: verified identity answers who is calling. AI governance of effects still needs may this exact tool call run, once. OAuth/MCP identity does not spend a capability or bind the payload. We bind the Hosted channel to a registered https://github.com/Aliipou/decision-os-min/blob/main/docs/HOSTED_AGENT_PLANE.md |
|
Why this project exists: verified identity answers who is calling. AI governance of effects still needs may this exact tool call run, once. OAuth/MCP identity does not spend a capability or bind the payload. We bind the Hosted channel to a registered https://github.com/Aliipou/decision-os-min/blob/main/docs/HOSTED_AGENT_PLANE.md |
|
I think verified external identity should be in scope for AGT's MCP tool-call authorization path, but I would separate identity verification, trusted policy input, and tool-call enforcement rather than introducing another verifier inside the policy engine. Looking at the current implementation, I agree with the reported gap:
That leaves an important distinction: a verified identity may exist elsewhere in the system without being bound to the authorization decision for a particular tool call. Suggested ownership boundaryI would use the following architecture: 1. Identity provider: authenticate the caller Verify the external token or credential, including issuer, audience, signature, expiration, and applicable delegation constraints. Produce a trusted principal object rather than forwarding unverified identity claims. 2. MCP boundary: establish trusted execution context The trusted MCP gateway or adapter should associate the verified principal with the current authenticated session and request. Caller-supplied 3. Policy engine: authorize the exact action Extend policy evaluation with an explicit trusted context, conceptually:
The context could include:
The policy decision should be evaluated against both the trusted context and the exact proposed tool call. An authenticated principal does not automatically have permission to perform every action. 4. Enforcement boundary: prevent substitution Before forwarding a permitted call, ensure the decision applies to the same principal, session, tool, and canonicalized arguments. Changes after authorization should require reevaluation. For state-changing or high-impact tools, replay and concurrency protections may also be necessary. A verified bearer token alone is not a single-use execution authorization. 5. Evidence: preserve what was actually established Audit records should distinguish:
A successful authorization decision should not be recorded as proof that execution occurred. Where should the adapter live?For an initial integration, I favor an application-side adapter at the trusted MCP ingress boundary, consuming an already-verified principal and supplying trusted context to AGT. However, the core AGT policy and enforcement interfaces should explicitly support that context. Otherwise every integration must invent its own identity-to-policy binding, creating inconsistent security behavior. I would avoid adding OAuth/JWKS verification logic directly to the policy evaluator. A verifier-neutral context contract seems cleaner and would let AGT work with Minimum integration testsI would include:
My recommendation: Make identity verification pluggable, but make the trusted identity-to-authorization binding a supported AGT contract rather than leaving it entirely to individual applications. That addresses the gap identified here without introducing a second credential verifier. A maintainer would still need to confirm whether this belongs in the existing MCP proxy or a shared adapter interface. As a first contribution, I would propose a minimal |
Uh oh!
There was an error while loading. Please reload this page.
Following the merge of
ExternalJWKSProvider(#2380) andIdentityProviderChain/HandshakeResult.external_identity(#3094), I want to check the intended boundary before building on them. The runtime path is not obvious from the current code, and I would rather ask than assume.What I am seeing on
main:IdentityProviderChainis defined and exported inagent-governance-python/agent-mesh/src/agentmesh/identity/, but I cannot find it instantiated by a runtime consumer. No handshake or MCP proxy path constructs it.TrustHandshakedefinesexternal_identityonHandshakeResult, but its active verification path remains the nonce and registry flow. The successful result constructed in_do_initiate()does not receive an external identity from the provider chain.evaluatePolicy(policy, toolName, toolArgs)inagent-governance-python/agent-mesh/packages/mcp-proxy/src/proxy.tsandpolicy.ts; that decision has no verified caller-identity input.mcp-trust-proxyacceptsagent_did,agent_trust_score, andagent_capabilitiesinagent-governance-python/agentmesh-integrations/mcp-trust-proxy/mcp_trust_proxy/proxy.py, but that component does not establish the provenance of those values.If that reading is right, an integration that forwards caller-controlled DID, trust score, or capability values directly into the Python proxy could let the caller influence the trust decision. I do not see a repository path that binds those policy inputs to
ExternalJWKSProvideroutput before an MCP tool decision. Is that binding deliberately an application responsibility?ADR-0007 is still marked
Status: proposed, and its follow-up list still describes the provider implementation as future work, so the ADR may simply lag the merged implementation.My question is narrow: Is connecting a verified external identity to the MCP tool-call authorization decision in scope for AGT? If so, do you intend that wiring inside an MCP proxy, or as an application-side adapter that consumes verified identity and supplies trusted policy input?
Context on why I am asking: I maintain
mcp-auth-gateway, an OAuth 2.1 / JWKS MCP gateway that verifies access tokens at the MCP boundary and produces a verified principal with scopes. If application-side wiring is the intended pattern, I would be glad to help prototype a small adapter that maps that principal into AGT policy input once the ownership boundary is clear. I do not want to propose code, a core dependency, or a second verifier before that is settled.All reactions