Skip to content

Small tool to traverse vault token accessors looking for root tokens to revoke.

License

Notifications You must be signed in to change notification settings

vngzs/vault_token_lister

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hashicorp Vault Token Lister

This tiny tool is built to walk the token accessors in a Hashicorp Vault and use them to access the details and policies for each case, normally to allow (manual) revocation using the accessor.

It was written as a way to detect all root-level tokens so they could be revoked per best practices suggested in vault manual (see "root tokens").

Build:

Just run "make" and it will install into $GOPATH/bin

Usage:

    vault_token_lister -targetVaultAddr=https://example.com:8200 -rootToken=someroot-7644-a9aa 
    vault_token_lister -targetVaultAddr=https://example.com:8200 -rootToken=someroot-7644-a9aa -policy=root
    vault_token_lister -targetVaultAddr=https://example.com:8200 -rootToken=someroot-7644-a9aa -policy=somepolicy
```

About

Small tool to traverse vault token accessors looking for root tokens to revoke.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.1%
  • Makefile 3.9%