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

Add self-revoke cli command #2493

Closed
cblecker opened this issue Mar 15, 2017 · 2 comments
Closed

Add self-revoke cli command #2493

cblecker opened this issue Mar 15, 2017 · 2 comments

Comments

@cblecker
Copy link
Contributor

I'd like to request a top-level command in the vault CLI to hit the /v1/auth/token/revoke-self API endpoint and revoke the current token.

Thank you!

@michaelansel
Copy link
Contributor

michaelansel commented Apr 15, 2017

Having vault token-revoke without an argument "do the right thing" like vault token-lookup could be useful (albeit maybe a little risky). If you need a workaround, you can always vault write -f token/revoke-self.

@jefferai
Copy link
Member

We specifically do not want vault token-revoke to "do the right thing" because it's too easy for that to be "oops, I hit Enter too early".

If someone wants to implement a -self flag I'd be fine with that. Send a PR if interested.

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

No branches or pull requests

3 participants