When several products share one portal, every admin account cannot change site settings, rebuild everything, or write the whole document tree. DevBlog adds RBAC groups plus project scope. There is still no public signup or member center.
Added
Highlights
- Stable permission catalog (
domain.action): site domain (settings / themes / users / groups) and project domain (reindex, comments, document-tree read/write/delete). Code constants are the source of truth - One auth path:
Can/CanProject/AccessibleProjectIDs; deny by default;super_adminshort-circuits; disabled accounts count as signed out - Two layers: groups decide what you can do; project membership decides where (skip the member table with
projects.scope_all) - Seeded groups:
super_admin/site_admin/content_editor/project_member - Schema grows roles, role permissions, admin-role links, and project members; admin profiles gain display name, status, and last login
- Existing
/api/admin/*and admin pages attach permission or project-scope checks
Details
- Effective rights are the union of bound groups; a short cache keys on
admin_idand drops after writes - Upgrade: if nobody is super admin, enabled admins with no role bind
super_adminso behavior matches the pre-RBAC site - Fresh install: the first admin is super admin and the four groups are seeded
Security
Highlights
- Hiding a menu is not enough: hitting the API still returns 403; unsigned / disabled is 401
- Lists and writes filter by scope so swapping
project_idis harder - Path guards still fence the document root; permissions are an extra layer and do not change “files are the source”
Notes
- Not in scope: public OAuth / member center, multi-tenant, LDAP/SSO, per-entry ABAC (later)
No comments yet