Skip to content

External gateway fixture and end-to-end test #2540

Closed as not planned
Closed as not planned

Description

@ChrisJBurns

Depends on: #2536, #2538, #2811 (fixture on the pinned ToolHive version), #2539, #2812

Problem

Slice 4 is tested against the embedded gateway only. Nothing proves Mecatl works with a gateway it does not run, so external mode would first be exercised in a customer deployment.

Design

Requirements

  • A kind fixture with a separately deployed ToolHive gateway (its own AS-2, vMCP, and test provider), configured as "Gateway administrator configuration" lists, plus: the approval-record subject mode for AS-1 (Delegated access: subject mapping at ID-JAG redemption toolhive#6887), the same subject claim as AS-1, administrator pre-approval, and per-user connections. The mecatl client's inline public key set uses operator-supplied keys from Keys and gateway entries for the identity broker #2538, since the generated broker client key (internal/app/identitybroker.go) changes on every mecak8s restart. A second source issuer without a shared IdP exercises the plain refusal. Start from the existing deploy/mecak8s-vmcp fixture.
  • An end-to-end test, run in CI, covering:
    • administrator pre-approval: with it turned on for the user's group, the first call redeems with no link;
    • no shared IdP: a source issuer that does not share AS-2's company IdP gets a plain invalid_grant with no link, and the call fails as a gateway error with no prompt;
    • unapproved user: a user the administrator has not pre-approved gets a fail-closed gateway error with no link and no prompt;
    • revocation: revoking the approval stops new gateway tokens; calls stop once the issued token expires;
    • once pre-approved and connected, calls succeed with the user's own credential and a token naming the user and the agent; another user's calls never use it.
  • The test runs against the ToolHive version mecak8s pins, for mecak8s and the separately deployed gateway alike. Move the separately deployed gateway fixture to the pinned ToolHive version #2811 moves the deploy/mecak8s-vmcp fixture to that version.

How it fits

CI evidence that external mode works, and the fixture #2812 is checked against. The approval-link cases are #2735's.

Done when

The fixture and test run in CI and pass with #2539 and #2812 merged.

Activity

  1. ChrisJBurns commented on Nov 18, 2026

    @ChrisJBurns
    ContributorAuthor

    Merged into #2812.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions