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
Due to the server-side change to not allow changing of the current user's API key via token, our use of RotateAPIKeyRequest will fail when the target roleID is the current user so we should raise an error eraly to notify the user about this.
Steps to Reproduce
Steps to reproduce the behavior:
Initialize a client against a Conjur instance
Run client.RotateAPIKey(roleID) or client.RotateAPIKeyReader(roleID)
Expected Results
User-friendly error
Actual Results (including error logs, if applicable)
401 error from the server
Reproducible
Always
Sometimes
Non-Reproducible
Version/Tag number
0.6.0
Environment setup
N/A
Additional Information
N/A
The text was updated successfully, but these errors were encountered:
sgnn7
changed the title
Disallow rotating own key via RotateAPIKey*
Throw error when rotating own key via RotateAPIKey*Oct 29, 2020
izgeri
changed the title
Throw error when rotating own key via RotateAPIKey*
Client gets 401 response from server when attempting to rotate own API key via RotateAPIKey*Nov 2, 2020
PR #83 contains partial work on this. The remaining logic for it needs to be written to take the newly-added username, compare it to the target of rotation, and error out if they are the same. Changelog will also need to be updated.
Summary
Due to the server-side change to not allow changing of the current user's API key via token, our use of
RotateAPIKeyRequest
will fail when the targetroleID
is the current user so we should raise an error eraly to notify the user about this.Steps to Reproduce
Steps to reproduce the behavior:
client.RotateAPIKey(roleID)
orclient.RotateAPIKeyReader(roleID)
Expected Results
User-friendly error
Actual Results (including error logs, if applicable)
401 error from the server
Reproducible
Version/Tag number
0.6.0
Environment setup
N/A
Additional Information
N/A
The text was updated successfully, but these errors were encountered: