Implement role ladder, Admin grants, and fail-closed authorization #4
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?
Acceptance: §2.6 (ladder), §4.2 (Admin-only grants, audit-logged §10), §4.3 (permission matrix incl. approver≠author), §4.4 fail-closed. Tests reference CR-8.
Live on prod (
d031912): strictly ordered ladder with per-request role resolution (grants effective immediately, §4.2), Admin-only grant/revoke/suspend with actor+reason and append-only Admin-only audit log (§10, cursor-paginated §9.2), approver≠author rule with Admin break-glass (§4.3, enforcement point lands with proposals), BOOTSTRAP_ADMIN startup seed (D15). CR-8 verified in 12 new tests and live on prod: 401 unauthenticated, 404-indistinguishable staff surface. Admin elevation on prod intentionally left to the operator: register your account, append BOOTSTRAP_ADMIN= to /opt/mokuroku/.env, docker compose up -d server (runbook).