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.
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.
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.
Tokens will be written to ~/.config/vault.d/tokens
in JSON. This directory will be created if it doesn't exist.
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 the token helper by running:
vault-token-helper disable
That will delete the configuration file, but will not remove any active tokens.