vault-context is a context manager and token helper designed to make managing multiple Hashicorp Vault instances easier
vault-context is a context manager and token helper designed to make
managing multiple vaults easier
Usage:
vault-context [command]
Available Commands:
add Add a new Vault context
context Spawn a shell in the given context
delete Delete a saved context
enable Set vault-context as the token-helper
help Help about any command
info Get info about your current context
list List configured contexts
Flags:
-h, --help help for vault-context
Use "vault-context [command] --help" for more information about a command.
Backed by 99designs/keyring originally written for AWS Vault, these token storage options are available:
- Linux
- KDE Wallet
- Secret Service
- MacOS/OSX
- Keychain
- Windows
- Windows Credential Store
- General
- KeePass
- File
vault-context list
ALIAS URL NAMESPACE TOKEN
home https://vault.domain.tld s.7asdfrYasdf
cloud https://vault.aws.domain.tld -
test https://test.vault.domain.tld test-dev -
- Download the latest release
- Add it to your
/usr/local/bin
- Enable using it as your token-manager
vault-context enable
- Add your first context
vault-context add http://vault.domain.tld my-vault
- Assume the context
vault-context ctx my-vault