-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Unsupported admin action 'admin:UpdatePolicyAssociation' #18078
Comments
@nreisingercres have you tried this with latest release? |
I just tested with the newest version and have the same issue.
|
I will check. |
@nreisingercres can you paste the error via |
upgrade minio/pkg to v2.0.2 fixes minio#18078
|
upgrade minio/pkg to v2.0.2 fixes #18078
this is an |
your |
Remember always if you upgrade server, make sure you upgrade mc. That's how we make releases. |
I am not able to add
admin:UpdatePolicyAssociation
as an action to a access token policy.Expected Behavior
I can add
admin:UpdatePolicyAssociation
as an action to my access key policyCurrent Behavior
I get
mc: <ERROR> Unable to edit the specified service account: unsupported admin action 'admin:UpdatePolicyAssociation'.
Possible Solution
It appears that only part of minio recognizes the permission so it may need to be added to a different part of minio.
Steps to Reproduce (for bugs)
update_associaton.json
withmc admin user svcacct add <alias> <username> --policy update_association.json
Context
I am trying to add a specific permission to allow
mc idp ldap policy attach ...
In the documentation I see
admin:AttachUserOrGroupPolicy
however that does not grant permission for this command.Looking at the code I see here that it looks for the permission
UpdatePolicyAssociationAction
that appears to be set here asadmin:UpdatePolicyAssociation
but it cannot be attached to a user.This leaves me having to use
admin:*
that violates the principle of least privilege.Regression
No. I found no other issues on this.
Your Environment
minio --version
):uname -a
): Linux 6.1.0-10-amd64 Full restructure in accordance with #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-2 (2023-07-27) x86_64 GNU/LinuxThe text was updated successfully, but these errors were encountered: