Skip to content
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

Access Denied when updating access token #3445

Open
nreisingercres opened this issue Sep 26, 2024 · 3 comments
Open

Access Denied when updating access token #3445

nreisingercres opened this issue Sep 26, 2024 · 3 comments

Comments

@nreisingercres
Copy link
Contributor

I'm not sure if this belongs here or in the main repo, but I see the issue in the console.

Expected Behavior

I should have access to update my own token.

Current Behavior

Access is denied when pressing update

Possible Solution

Give users permission to update their own access tokens

Steps to Reproduce (for bugs)

  1. Create a user without admin:UpdateServiceAccount (I tested with the default readonly role)
  2. Use that user to create an access token
  3. Again use that user to try an update the token

Context

I am trying to update an access token without recreating it.

Regression

I don't think so.

Your Environment

  • MinIO version used (minio --version):
minio version RELEASE.2024-09-22T00-33-43Z (commit-id=03e996320ebb887112fb2a15c6f27936e5f124a0)
Runtime: go1.22.7 linux/amd64
License: GNU AGPLv3 - https://www.gnu.org/licenses/agpl-3.0.html
Copyright: 2015-2024 MinIO, Inc.
  • Server setup and configuration: Running in podman across 3 servers.
  • Operating System and version (uname -a): Linux minio 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 x86_64 x86_64 GNU/Linux
@ramondeklein
Copy link
Collaborator

ramondeklein commented Sep 27, 2024

Tested and confirmed that users cannot update access-tokens that they have created.

@bexsoft
Copy link
Collaborator

bexsoft commented Sep 30, 2024

@nreisingercres Have you tried to update the session token by using mc?

@ramondeklein Do you think this issue belongs to Console or should it be moved to MinIO repository?

@nreisingercres
Copy link
Contributor Author

@nreisingercres Have you tried to update the session token by using mc?

I just tried using mc admin user svcacct edit and I got mc: <ERROR> Unable to edit the specified service account. Access Denied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants