You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cedar policies cannot access upstream IDP claims on VirtualMCPServer with embedded auth server #4997
When a VirtualMCPServer uses an embedded auth server with an upstream OIDC provider (e.g., Okta), Cedar policies cannot access claims from the upstream token. The thv run path handles this correctly, but the Kubernetes/vMCP path does not.
Reproduction
Deploy a VirtualMCPServer with:
An embedded auth server (authServerConfig) chaining to an upstream OIDC provider (e.g., Okta)
Inline Cedar policies referencing upstream claims (e.g., principal.claim_department)
The upstream Okta token contains "department": "Engineering" (verified by decoding the JWT)
Cedar evaluation fails:
authorization error: [while evaluating policy `policy1`: `Client::"ba900a8b-..."` does not have the attribute `claim_department`]
Expected behavior
When an embedded auth server is configured with an upstream provider, Cedar policies should evaluate claims from the upstream IDP token — not the embedded auth server's issued token. A policy like:
Activity
Verify Cedar reads upstream claims via PrimaryUpstreamProvider
Address review feedback on #5002
Fix Cedar upstream-claim evaluation on VirtualMCPServer (#5002)