Repository navigation
Description
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 (
/mcpand/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
- Design record: identity model (users/keys), credential storage + provisioning, how identity binds to PolicySession/CapabilityCeiling, and the loopback migration story.
- Daemon rejects unauthenticated HTTP callers when auth is enabled; identified callers see only their ceiling's namespaces/tools.
- The mcpx: public endpoint at mcpx.security.cab with OAuth/Google-SSO front door and machine bearer #13657 door's selector model documented as mapping onto these ceilings.
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
developing-today commentedon Nov 23, 2026
CODE-5002