Repository navigation
Description
Part of "Delegated access: subject mapping at ID-JAG redemption" (#6887).
Branch: as2-subject-mapping-4-enable (about 20 lines plus tests). Phase: 1, end.
Problem. Resolution exists but the gate refuses it. Turning the gate off is safe only once the gateway can refuse a marked token used by the wrong user, client or session.
Change. Remove the code gate and the startup log line. Reconfigure the flow test's AS-2 issuer as resolve (ID-JAG only, actor_issuers = AS-1's actor issuer), add the AS-2 sign-in through the mock identity provider and a second upstream, flip the redeemed sub to the local user, add the real-user check (the redeemed sub equals the UserID on the second upstream's row) and the synthetic-subject test, and turn the gate tests into reachability tests. Mecatl's own phase 1 end-to-end test covers the full path. The release notes state the rollout order: every gateway replica must enforce the marker before AS-2 issues marked tokens. Mecatl pins a released ToolHive, so it also needs the release containing this change before it configures resolve.
Blocked by (storage prerequisites; the first four come from the storage plan's step 5 and merge gate, the last from the parent's Tests section).
- "vMCP: session identity binding is not enforced for tools/list (and other list methods)" (vMCP: session identity binding is not enforced for
tools/list(and other list methods) #6779) - "vMCP: bind sessions to the client, acting agent, and delegated-access marker, not just the user" (vMCP: bind sessions to the client, acting agent, and delegated-access marker, not just the user #6888)
- "Ownership-checked credential read for delegated tokens, keyed by user and routed provider" (Ownership-checked credential read for delegated tokens, keyed by user and routed provider #6407): part A (done) and, of part C,
upstream_injectreading through the reader plus the exported option for embedders. The other strategies (token_exchange,aws_sts,obo,xaa) fail closed on delegated tokens until their part C change lands and do not block this issue. - "User-keyed upstream storage behind the embedder option" (User-keyed upstream storage behind the embedder option #7263), the embedder half of storage step 2a (done). The runner-built half stays in "Re-authorization walks the full upstream chain instead of evaluating existing credentials" (Re-authorization walks the full upstream chain instead of evaluating existing credentials #6831) and does not block this issue.
- "Test that one upstream identity never maps to two authorization-server users" (Test that one upstream identity never maps to two authorization-server users #6980)
Closes. The parent issue.
Unblocks. "Connect provider accounts at the embedded gateway", then "List gateway tools with a broker-issued token", then "Phase 1 end-to-end test against the real ToolHive in kind" (all mecatl).
Activity
tools/list(and other list methods) #6779ChrisJBurns commentedon Nov 27, 2026
The "Blocked by" list names #6831 for user-keyed storage (step 2a). Since the 2026-11-24 split, the embedder half is "User-keyed upstream storage behind the embedder option" (#7263), which is closed. #6831 now covers only the runner-built side.
Is this issue still waiting on #6831, or only on #7263? If it's only #7263, could the list say so? Mecatl uses the embedder path, so that would make Part C of #6407 the only open blocker here.
jhrozek commentedon Nov 27, 2026
Only #7263. #6831 is the runner-built side now and doesn't block this. The blocked-by links already reflected that, but the body text was from before the split. I've updated it. So yes, Part C of #6407 is the last open blocker, and only its
upstream_injectpart with the exported option: the other strategies fail closed on delegated tokens until they land, so I've noted in the body that they don't block this.