Skip to content

Fixed Users tab permissions to hide if CreateUser only User permission #2426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 3, 2022

Conversation

jinapurapu
Copy link
Contributor

The admin:CreateUser permission is being granted to all Users, which is enabling the Users tab in the menu even if the logged in User does not actually have the permissions to view or change anything on the Users screen, leading them to an unusable screen. It now requires an additional User permission to display the Users tab.

Screen Shot 2022-11-02 at 12 20 28 PM

Users tab is displayed for this policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"admin:GetUser",
"admin:ListUsers"
],
"Resource": [
"arn:aws:s3:::*"
]
}
]
}
Screen Shot 2022-11-02 at 12 23 15 PM

Users tab is not displayed for this policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::*"
]
}
]
}

Copy link
Member

@prakashsvmx prakashsvmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. LGTM 👍

@bexsoft bexsoft merged commit 404efd2 into minio:master Nov 3, 2022
adfost pushed a commit to adfost/console that referenced this pull request Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants