Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rbac): implement RBAC group support (janus-idp#803)
* feat(rbac): implement RBAC group support Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com> * fix(rbac): improve tests. * fix(rbac): fix sonarcloud warnings. Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com> * feat(rbac): add group cycle dependencies detection This commit introduces a cycle dependencies detection mechanism for RBAC groups in the codebase. BackstageRoleManager#hasLink returns false in case cycle in the group graph to deny user's permission request, because we couldn't collect group hierarchy information in a proper way. Without this information permission evaluation can be wrong. Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com> * fix(rbac): fix some bugs in building group subgraph, add more tests Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com> * fix(rbac): move BackstageManager initialization to policy-builder Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com> --------- Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
- Loading branch information