Unauthorized Access to 'Edit Config' Option in Users & Authentication Section for Users Without Sufficient Permissions #10780
Labels
JIRA
kind/bug
QA/dev-automation
Issues that engineers have written automation around so QA doesn't have look at this
status/backport-candidate
Milestone
Internal reference: SURE-8160
Setup
Describe the bug
When a non-admin user, whether with a local auth provider or external auth provider, navigates through Rancher UI -> Users&Authentication, he can see his user object there.
If the user clicks on the 'Edit Config' option and tries to edit any value like a password, a permission error is shown to the user.
The 'Edit config' option should not be shown to the users unless they are admins or have the correct permissions.
To Reproduce
Login to the Rancher UI using a local auth user or IDP user and navigate through Rancher UI -> Users&Authentication
After clicking the three dots, the user will see the 'Edit config' option. However, if a user tries to edit anything (password for example), it will show a 'Forbidden: permission denied' error.
Result
A user with insufficient permissions can see the 'Edit config' option for the user object.
Expected Result
The 'Edit config' option for user objects should not be available for users who do not have the right permissions.
Screenshots
Additional context
Happens to users with Global Permissions
Standard User
andUser-Base
The text was updated successfully, but these errors were encountered: