Skip to content

Test that a call-bound gateway token cannot be replayed on another replica #2970

Backlog

Description

@jhrozek

Phase: 3 (under Run mecak8s with the identity broker on more than one replica (#2805)).
Depends on: vMCP: one single-use record shared by all replicas for call-bound access tokens (stacklok/toolhive#7261); Bind each gateway token to its call (#2727).
Removes shortcut: the vMCP's per-replica used-token record (named in Bind each gateway token to its call (#2727) and in the design).

Problem

The first release keeps the vMCP's used-token record per replica, so Mecatl's identity harness has no test that a replay on another replica is refused. The design names this as a shortcut to remove once the shared record lands.

Scope

  • A harness test with two vMCP replicas: a call-bound token used once on one replica, then replayed on the other, is refused on a shared backend.
  • Remove the first-release wording from the design once the test passes: implementation.md (the per-call V test bullet, the vMCP ledger row, the rollout paragraph) and credentials-and-lifecycle.md step (9), check 3. This is a design edit with its own PR.
  • Remove the shortcut from the scope of Bind each gateway token to its call (Bind each gateway token to its call #2727).

Done when

  • The cross-replica test passes against a real vMCP with the shared record.
  • The design no longer describes a per-replica record as the first-release behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions