Skip to content

Phase 3, Slice 9: External gateway — Agents use a gateway Mecatl doesn't run, with no extra login step #2810

Open
2 of 8 issues completed

Description

@ChrisJBurns

Problem

Mecatl's identity flow is built and proven against the embedded gateway that mecak8s runs itself. A gateway Mecatl does not run must first hear that a user approved Mecatl before it redeems grants for them, and nothing proves the flow works against such a gateway.

Design

Tickets

#2812's fixture starts from #2811, which waits for a ToolHive release with stacklok/toolhive#6887, stacklok/toolhive#7158, and stacklok/toolhive#6406. Administrator pre-approval in #2539 lands first; the approval link waits on #2592 and stacklok/toolhive#7158.

Outside Mecatl: a ToolHive gateway must accept Mecatl's grants: stacklok/toolhive#6887 (subject mode), stacklok/toolhive#7158 (approval), and stacklok/toolhive#6406 (delegated-access marker, user-keyed credential read), plus configuration on the gateway itself.

Testable result

Against a separately deployed ToolHive gateway in kind: a pre-approved user's calls reach the gateway's tools with a token naming the user and the agent and use the user's own connection, with no sign-in beyond AS-1; an unapproved user gets the approval link and, once approved, later calls succeed; revoking the approval stops new gateway tokens.

Done when

The tickets above are merged, the external-gateway test passes in CI, and an external gateway works with no external-specific dispatch or discovery code and no sign-in beyond AS-1.

Sub-issues

Sub-issues

2 of 8 Issues completed
Loading 8 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions