You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to rotate a principal's credentials via the root user, an HTTP error with code 403 is returned:
{"error":{"message":"Principal 'root' with activated PrincipalRoles '[]' and activated grants via '[service_admin]' is not authorized for op ROTATE_CREDENTIALS","type":"ForbiddenException","code":403}}
To Reproduce
Deploy locally via docker compose up --build
Note down the root principal credentials and store them in a shell variable, e.g.
Try to rotate the credentials of the new principal using the same token as it was created with
curl --request POST http://localhost:8181/api/management/v1/principals/test/rotate \
--header "Authorization: Bearer $TOKEN"
Actual Behavior
The service returns a 403 response
{"error":{"message":"Principal 'root' with activated PrincipalRoles '[]' and activated grants via '[service_admin]' is not authorized for op ROTATE_CREDENTIALS","type":"ForbiddenException","code":403}}
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:
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).
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: