-
Notifications
You must be signed in to change notification settings - Fork 164
Description
Purpose
Expand RBAC DB tables for:
- Simplified permission updates for system-sourced roles
- Currently we must determine the scope ID of roles to add a new
scope_permission
record, which is inconsistent because one role can have permissions of multiple different scopes.
- Currently we must determine the scope ID of roles to add a new
- Templating
Steps
- Add
permission_targets
table:- id
- role_id
- entity_type
- entity_id (nullable)
- scope_type (nullable)
- scope_id (nullable)
- Define
ScopePermissionTarget
andObjectPermissionTarget
ORM classesScopePermissionTarget
:- id
- role_id
- entity_type
- scope_type
- scope_id
ObjectPermissionTarget
:- id
- role_id
- entity_type
- entity_id
- Add
permissions
table:- id
- permission_target_id
- operation
- Delete
scope_permissions
andobject_permissions
Summary
JIRA Issue: BA-2107
Metadata
Metadata
Assignees
Labels
No labels