Repository navigation
Document Cedar claims filled from the upstream ID token - #1376
Merged
Merged
Conversation
Cedar now fills claims the upstream access token omits from the same provider's id_token (stacklok/toolhive#6054). Update the pages that said Cedar reads the access token only, frame ToolHive's client registration as authoritative for those claims, and add the upgrade, freshness and policy-authoring guidance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 of 9 tasks
Keep the fill rules in one place on the Cedar concepts page and link to it from the guides, trim the how-to notes to what the reader acts on, and replace bolded bullet lists with prose. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Target v0.70.0, correct the last-group revocation warning for providers that rotate the ID token, require Always for Okta ID-token groups, and add the type-error upgrade risk and decimal example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tgrunnagle
marked this pull request as ready for review
November 25, 2026 19:22
jhrozek
reviewed
Nov 25, 2026
jhrozek
left a comment
Contributor
There was a problem hiding this comment.
Checked this against toolhive#6054 at e0f3387d4 and it holds up: the never-filled list matches the code exactly, the one-token rule matches groupClaimsToWithhold, and the two fixes to existing text (opaque tokens fall back to the ToolHive token's claims, numbers map to Decimal) are right. A question on the Okta guide and three small things inline.
Addresses #1376 review comments: - vmcp-okta.mdx (4700454933): give the real reason for a custom authorization server and document the Org authorization server - embedded-auth-server.mdx (4700454941): name the client refresh that renews refreshTokenLifespan - cedar-policies.mdx (4700454951): forbid rules can start matching - cedar-policies.mdx (4700454960): the fill needs an ID token and a JWT access token Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jhrozek
approved these changes
Nov 25, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
stacklok/toolhive#6054 changes which claims Cedar policies see when the embedded authorization server is in use. Cedar reads the primary upstream provider's access token and fills any claim that token omits from the same provider's stored ID token. The docs said Cedar reads the access token only, which sends readers to the wrong token when a group or role claim is missing. This PR describes the fill, as the toolhive review requested.
The rules live in one place, the new "Claims from the upstream ID token" section of
concepts/cedar-policies.mdx. It covers which claims are filled, why ToolHive's client registration decides the filled group and role claims, the one-token rule for groups and roles, how fresh filled claims are, and revoking a user's last group. The page carries the single:::info[Changed in v0.70.0]admonition, which tells upgraders to review theirpermitandforbidrules. "Designing secure policies" gains advice on guarding claim access.The other pages state what their reader needs and link to that section:
reference/authz-policy-reference.mdxconcepts/embedded-auth-server.mdxrefreshTokenLifespanends only idle sessionsguides-vmcp/embedded-auth-server-vmcp.mdxintegrations/vmcp-okta.mdxintegrations/vmcp-entra-id.mdxintegrations/vmcp-idp-overview.mdx,_partials/_auth-troubleshooting.mdxIt also fixes two errors in existing text that the code contradicts. An opaque upstream access token makes Cedar evaluate the ToolHive-issued token's claims rather than deny the request, and JSON numbers map to
Decimal, notLong.Type of change
Related issues/PRs
Points for review
Changed in v0.70.0assumes #6054 ships in v0.70.0, since v0.69.0 and v0.69.1 shipped without it. Merge this PR with or after that release, and bump the version if it slips.groups: the revocation warning names only Keycloak, because the toolhive review found that Entra ID only appears to omit an emptygroupsclaim. Keycloak rotates the ID token on refresh, so the warning describes the stale case as a provider that doesn't, or a failed refresh.hdclaim as usable.Submitter checklist
Content and formatting
Reviewer checklist
Content
🤖 Generated with Claude Code