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
vMCP: one single-use record shared by all replicas for call-bound access tokens #7261
Part of: Run mecak8s with the identity broker on more than one replica (stacklok/mecatl#2805). Phase: 3, multi-replica work.
Blocked by: vMCP: accept an access token for the one call its authorization_details names, once (#7062), which adds the per-replica record this issue replaces.
Problem
The vMCP refuses a second tools/call with the same access token only on the replica that served the first call. A token replayed to another replica within its lifetime is accepted. Call-bound tokens are short-lived, but the protection is meant to hold across replicas.
Change
Record each used jti with the call it started, until exp plus the clock skew or the end of that call, whichever is later, in a backend every replica reads.
A shared backend is required for cross-replica refusal. The in-memory store serves a single replica only.
A second tools/call with the same jti is refused on any replica.
A message for an open call (cancellation, elicitation reply) is accepted on any replica while that call is open, up to the maximum call duration. The record must reach every replica that can receive such a message.
Acceptance
A second tools/call with the same token is refused when the first call ran on another replica, on a shared backend.
With the in-memory store and several replicas, startup refuses the configuration or logs an error. Pick one in review.
A message for the open call is accepted on another replica while the call is open, and refused once the call has ended.
The per-replica record in the parent issue is removed, and the parent no longer lists it as a shortcut.
Context
The Mecatl design records the per-replica record as a named shortcut that this issue removes (credentials-and-lifecycle.md step (9), check 3; implementation.md ToolHive work list, vMCP row). The Mecatl-side removal is Test that a call-bound gateway token cannot be replayed on another replica (stacklok/mecatl#2970).
Activity
Drop Record.Release
Enforce list-call tokens at the vMCP (#7325)