Skip to content

freakinhippie/vault-token-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vault Token Helper

This is a very simple implementation of a Token Helper for HashiCorp Vault. It's primary feature is the ability to store multiple active tokens at once, while also not having any additional dependencies.

Installation

Select a suitable package archive from the Releases page. Either unzip the archive file to extract the binary for your OS or install the platform specific package using your system package manager.

Enable Token Helper

Once installed, enabling it by running:

vault-token-helper enable

This will write a suitable configuration file to ~/.vault or the path specified by the value of the VAULT_CONFIG_PATH environment variable.

Token Storage

Tokens will be written to ~/.config/vault.d/tokens in JSON. This directory will be created if it doesn't exist.

Erasing Tokens

Any existing token for the vault identified by VAULT_ADDR can be removed from the token file with the following command:

vault-token-helper erase

Disable Token Helper

Disable the token helper by running:

vault-token-helper disable

That will delete the configuration file, but will not remove any active tokens.

About

Token Helper for HashiCorp Vault

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages