-
Bug
-
Resolution: Done
-
Normal
-
None
-
1.2.1, 1.2.2, 1.3
-
None
-
1
-
False
-
-
False
-
-
-
RHDH F&UI plugins 3261
Description of problem:
When logged in as a user in the `permission.
rbac.admin.users` or `permission.rbac.admin.superUsers` configs, the RBAC UI says I do not have permission to create or edit permissions/roles. However, I still have permission to delete roles, but not permission policies. Doing it directly with the backend API works though. Screenshots below are taken when signed in as an admin super user (behavior is the same with an admin user)
Roles/Permissions created via the backend API appear in the frontend (using the backstage token of the same user viewing the UI), and they appear in the frontend UI (but are not editable in the UI):
curl -ks -X POST -H "$AUTH" -H "Content-Type: application/json" https://backstage-rhdh.apps-crc.testing/api/permission/role \ --data '{ "memberReferences": ["user:default/test"], "name": "role:default/testers", "metadata": { "description": "This is a test role" } }'
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
- Add user to admin user or admin super user configurations
- Install the RBAC frontend plugin
- Navigate to RBAC page
- Attempt to edit role or edit permission policies in role
Actual results:
Not allowed to create or edit role or permission policies.
Expected results:
Be allowed to create/edit/delete roles or permission policies
Reproducibility (Always/Intermittent/Only Once):
Always
Build Details:
RHDH Version: 1.3.0
Backstage Version: 1.27.7
Upstream: https://github.com/janus-idp/backstage-showcase/tree/main @ 1e002edd
Midstream: https://gitlab.cee.redhat.com/rhidp/rhdh/-/commits/rhdh-1-rhel-9 @ c139fd50
Build Time: 2024-08-01T02:36:08Z
1.23.2 of the RBAC frontend plugin
RHDH 1.2.2 Build: registry.redhat.io/rhdh/rhdh-hub-rhel9@sha256:9709e056f194a24c809dd82b4ab10aa05a9c31574e68ae8d1a5e91de19237045
RHDH Version: 1.2.2
Backstage Version: 1.26.5
Upstream: janus-idp/backstage-showcase 1.2.x @ c14d6dac
Midstream: gitlab.cee.redhat.com/rhidp/rhdh rhdh-1.2-rhel-9 @ 01df3afc
Build Time: 2024-07-26T10:06:37Z
1.24.1 of the RBAC frontend plugin