Remove role_access permissions from policy files
Roles are embedded in policy files, and it is difficult to understand what permissions are assigned to any given role.
Extract all permissions for a default role that are relevant to build a custom role (with the existing custom abilities)
This lets us determine what permissions any role has, which will be helpful:
- for custom roles to build on top of
- to prevent privilege escalation issues when adding members
- make it easier to migrate to an external service when that time comes.
ADR https://gitlab.com/gitlab-org/architecture/auth-architecture/design-doc/-/merge_requests/87
PoC for a potential solution: !191566 (closed)
Note: When roles are extracted we should lint to ensure that any permission in a role is defined in the yaml catalog
Edited by Ajay Thomas