Custom role permission enforcement #83
Reference in New Issue
Block a user
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?
Context
The RBAC model supports custom roles (
system = false) with ascopefield (e.g.,monitoring:read,config:write). However custom roles currently have no effect on authorization — only the four system roles (AGENT, VIEWER, OPERATOR, ADMIN) are enforced bySecurityConfigand@PreAuthorize.The spec notes this is "for future permission expansion."
Requirements
Permission model
agents:command,search:write,config:read,config:write,diagrams:read)Enforcement
SecurityConfigor a customAccessDecisionVoter/ method securityAPI
GET /api/v1/admin/permissions— list all available permissionsUI
Notes
scopefield on roles already exists in the schema — could be repurposed or replaced with a join table