-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Allow revoking a list of accessors or tokens #2864
Comments
(Note to Vault team: probably will be worked on by an outside contributor, don't address this for now.) |
What is preferred way of handling API changes in current situation?
(if JSON object doesnt contain "error" field, that means revocation is successful)
|
At the HTTP layer we don't need to have an API change, because the field data can be of type For the Go API we could add plural versions of the functions. I think if a single value fails to be revoked we should note it and continue, trying to revoke as many items as possible. I'm not sure what we should return though. Some possibilities are the counts of revoked/not revoked values; another is the list of values that failed to be revoked, to make it efficient to try again. |
For anyone who stumbles across this thread like I did, I wrote some PowerShell functions that can accomplish this. Obviously whatever a real contributor or Vault team adds to the Go code will be a better solution, but in the meantime, this should be fine (especially since it seems like you're supposed to use LDAP, etc for auth to Vault instead of tokens). To load my
Sample Usage:
Hope this can help some folks. |
Ref #2576 (comment)
Should be easy to do with TypeStringSlice!
The text was updated successfully, but these errors were encountered: