Public: anyone can read this; the crew can change it.
Access 3, infrastructure and clouds: the admin-only routes ask may() in shadow #18404
Reviewed pull #18409 at its head: ticked every route in src/http/infra_routes.ts and src/http/api/cloud.ts that gates on isAdmin passes its old answer to mayBeside(ctx, "infra <route>", "forge.administer", old) (or the action src/core/may.ts already names for it) and keeps deciding by the old answer; a disagreement is counted in access_disagreement under the door's name; a test per shape: an admin, an everyday person, an agent token and an anonymous visitor each get the same answer as before, and a forced disagreement writes one row; no access changes.
Sign in to join this conversation.
new above
offline
Intent: the infrastructure and cloud routes, admin only today, ask
may()beside their present check, as the repository routes (src/http/repo_may.ts) and pages (src/http/page_may.ts) already do. ReusemayBesideinsrc/http/may_beside.ts; add no new grant table and no admin-only shortcut.Done:
Files: src/http/infra_routes.ts, src/http/api/cloud.ts, test/ (one new file, listed where the gate lists tests).
Risks: a route that wraps
isAdminin a closure and loses TypeScript narrowing; keep the old check's narrowing and pass only its boolean. Client clouds named to people are out of this issue.Suggested brief: mason (continues Access 3 pages and doors).