Skip to content

Cedar policies cannot access upstream IDP claims on VirtualMCPServer with embedded auth server #4997

Closed

Description

@jerm-dro

Summary

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

  1. 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)
  2. The upstream Okta token contains "department": "Engineering" (verified by decoding the JWT)
  3. 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:

permit(principal, action == Action::"call_tool", resource)
when { principal.claim_department == "Engineering" };

should succeed when the upstream Okta token contains "department": "Engineering".

This already works correctly with thv run. The Kubernetes/vMCP path should behave the same way.

Affected versions

Current main

Generated with Claude Code

Activity

  1. added
    bug
    on Apr 22, 2026
  2. added
    go
    kubernetes
    vmcp
    on Apr 22, 2026
  3. added a commit that references this issue on Apr 22, 2026
    a75ea2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authenticationauthorizationbuggokubernetesoperatorvmcp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions