release gate / check (push) Canceled after 4m12s
Implements DESIGN_MCP_HUB_AUTH.md phase 1, executed on erwin: - hub_entrypoint.py override: _AuthMiddleware authenticates every /sse and /messages/ request against hash-only mhub_ tokens (hub_tokens.json, mtime-cached, revocation without restart), binds sessions to the credential that opened them, and keeps ?as_user= as an admin-only override; legacy Basic-auth (traefik) and container loopback map to a legacy admin identity during the transition (HUB_ALLOW_LEGACY_BASIC). - _guarded_call_tool: non-admin tokens refused nextcloud_admin_*, superbrain_*, gitea_* and superpanel mutations; nextcloud_user_* pinned to the token's own user; per-call audit log without arguments. - mcphub-token CLI: add/list/revoke, Superpanel user verification, admin from group membership, --with-nextcloud mints the DAV app token too. - Dockerfile COPYs the hub override; STRATEGY.md records the rollout, the Traefik v3 HeaderRegexp spelling, and the nc_tokens.json directory bug fixed en passant. Verified on the public endpoint: invalid/revoked tokens 401, operator 232 tools, non-admin scoping refusals, own-user reads, cross-token session riding 401.