-
Notifications
You must be signed in to change notification settings - Fork 199
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
Root user cannot rotate principal credentials #624
Comments
IIRC this is by design, users can rotate their own credentials but root cannot change them. |
Hm, that seems a bit strange to me, to be honest 🤔 A not-so-rare use case for secret rotation is to restore access after credentials have been lost (by whatever means). If the root principal cannot do this, then there is literally no way to recover credentials, so the principal needs to be deleted and a new one set up, including setting up all the roles and permissions. |
I agree with @Gerrit-K . Having "root" capable of resetting any principal's passwords is a valuable feature (whether it falls under the "rotate credentials" API or gets a new API endpoint). |
See #1047 |
@eric-maynard Thanks for the update! Reading through that PR description, I'm curious about the rationale behind this seemingly complex workflow. I'm not very familiar with the architecture of Polaris and the permission concept, so this might be a dumb question, but what speaks against directly allowing the root user to rotate (instead of reset) another principal's credentials? I don't see a benefit of this 2-step flow, at least from a security perspective. |
Describe the bug
When trying to rotate a principal's credentials via the root user, an HTTP error with code 403 is returned:
To Reproduce
docker compose up --build
curl --request POST http://localhost:8181/api/management/v1/principals/test/rotate \ --header "Authorization: Bearer $TOKEN"
Actual Behavior
The service returns a 403 response
Expected Behavior
The principal credentials should successfully be rotated
Additional context
No response
System information
No response
The text was updated successfully, but these errors were encountered: