Admin user routes are denied as unmapped before handler authorization #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reproduction
At server source
21461ee, bootstrap returned an administrator credential with scope["admin"]. A read-onlyGET /auth/userswith that bearer returned HTTP 403:{"status":"error","code":"access_denied",...}. The raw credential was not logged.Source-supported cause
source/frontends/http-authorization.lisp:12-73maps credential routes but omits/auth/users,/auth/users/:username/password, and/auth/password.authorize-http-route!converts a missing mapping tounmapped:http-route(:84-103). The closed capability vocabulary rejects that unknown action beforehandle-auth-list-users-routereaches its administrator check (http-auth-routes.lisp:208-213). Anadmingrant does not bypass an unknown action (authorization/policy.lisp:309-327).ASDF loads
http-authorization.lispand its middleware before the late route mounts, so this is active behavior, not the older directadministrator-principal-phypothesis.Expected behavior
Authenticated administrator/admin-scoped principals should reach user administration handlers through explicit policy actions. Ordinary principals must remain denied. Do not bypass middleware or grant arbitrary scopes.
Regression criteria
GET/POST /auth/usersand admin password reset map toprincipals:manage.Research
STAR-RESEARCH-060 reassessment on
research/star-bbpd-runtime-modernization; current source and tests override its earlier claims.