Skip to content

mcpx: per-user/per-key authentication in the daemon, aligned with CapabilityCeiling/PolicySession #13659

Backlog

Description

@dezren39

Context

The public front door for mcpx (#13657, mcpx.security.cab) ships with the Worker as the only auth layer, plus gate-side URL filtering as the interim exposure control. The daemon itself, by current design, has no authentication at all: its docs state every endpoint is unauthenticated and safety rests entirely on the loopback bind (pkgs/mcpx/docs/http-api.md, docs/mcp.md — "no OAuth on /mcp" is a listed known gap). Verified first-hand 2026-11-23: the systemd daemon listens on 127.0.0.1 only, and health/status/MCP initialize all answer with no credentials.

That is acceptable while the only paths in are local, the unix socket, and the gated door — but it makes the daemon the soft layer of the stack, and it means exposure policy lives in the proxy instead of with the servers and tools it governs.

Scope (follow-on — does NOT block #13657)

Proper local access controls inside mcpx, in the Go daemon:

  • Per-user / per-key authentication on the daemon's HTTP surface (/mcp and /v1/*): callers present a credential; the daemon identifies who is calling.
  • Authorization aligned with the existing CapabilityCeiling / PolicySession work (id(phase-14) v2 step 1: role configuration — roles as first-class world config (#6301) #8299 and neighbors): the authenticated identity resolves to a policy session / capability ceiling, so per-client ceilings govern which namespaces and tools a caller can see and invoke — the same model the front door's URL selector should map onto.
  • Local/loopback operation must keep working for the existing same-user clients (serve shims, CLI) — migration path for current unauthenticated local callers is part of the design (e.g. a per-user key provisioned in the user's config), not an afterthought.
  • The unix socket's filesystem-permission model stays as-is or is folded into the same story explicitly.

Acceptance sketch

Filed as the known gap + next step from #13657 per Drew's direction (2026-11-23).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T19:47:24Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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