Hi Narayan,
There is no feature to do this, although if you have knowledge of your
physical backend you could do this using the 'sys/raw' endpoint and
paths gleaned from your physical backend.
This is on purpose, as listing valid tokens is generally a serious
security concern.
You can, however, bulk revoke tokens using the `sys/revoke-prefix'
endpoint and the various paths of your authentication backends (e.g.
auth/github, auth/token, etc.) This would also remove your root token,
but as of 0.5 you can generate new ones using a quorum of unseal keys.
--Jeff
On Mon, Feb 22, 2016 at 7:53 PM, narayan gowraj <
gow...@gmail.com> wrote:
> Is there a feature where vault can list all the tokens that has been created ? I am currently using vault list secret/ to display all the secrets. I tried to use vault list auth/token to display all the tokens but didn't work. Is there a way to get the list of created tokens ?
>
> I created a number of tokens and I would like to revoke everything one by one or I would like to revoke all tokens except the root token.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues:
https://github.com/hashicorp/vault/issues
> IRC: #vault-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups "Vault" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
vault-tool+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/vault-tool/112569ec-b402-4ae6-b1d4-7fce4a399c10%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.