Vault: VAULT - List Tokens

Created on 23 Feb 2016  路  3Comments  路  Source: hashicorp/vault

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.

Most helpful comment

All 3 comments

Hi @narayan8291 ,

Can you please post questions on the mailing list (https://groups.google.com/forum/m/#!forum/vault-tool) rather than in GitHub issues? This gets a lot more eyes on any particular question or idea.

It also prevents problematic issue workflows for questions where either the issue is closed immediately but then discussion continues on a closed issue; or, the issue is not closed, discussion dies down, and the issue remains open indefinitely waiting for further potential replies.

Thanks!

if anyone still looking for an answer, you can list accessors, not tokens: vault list auth/token/accessors and if you want to revoke them, you can revoke by accessor: vault token revoke -accessor <accessor>

Was this page helpful?
0 / 5 - 0 ratings