vault-get
vault-get copied to clipboard
Get a value from Vault
Vault-Get
A small application that connects to Vault and outputs the value of a path using user/password authentication.
Getting Started
The Application is packed as a single binary, just download and run.
Prerequisites
None.
Usage
The help section explains everything:
NAME:
vault-get - Get a value from Vault
USAGE:
vault-get [global options] command [command options] [arguments...]
VERSION:
0.6.0
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--vault_host value Vault host url [$VAULT_HOST]
--vault_auth value Vault auth: defaults to 'token' (can be set explicitly with vault_token) or 'userpass' with vault_username + vault_password (default: "token") [$VAULT_AUTH]
--vault_token value Vault token (used if vault_auth is token) [$VAULT_TOKEN]
--vault_username value Vault username [$VAULT_USERNAME]
--vault_password value Vault password [$VAULT_PASSWORD]
--vault_path value Vault path of the secret. eg. secret/my-secret [$VAULT_PATH]
--help, -h show help
--version, -v print the version
Deployment
Download a release compatible to your OS and run the application.
Usage examples:
# Using a token auth (--vault_auth token does not need to be set explicitly):
eval "$(vault-get --vault_host https://vault.example.com --vault_token mytoken --vault_path secret/my-secret)"
# Doing the same with user and password authentication:
eval "$(vault-get --vault_host https://vault.example.com --vault_auth userpass --vault_username user --vault_password pass --vault_path secret/my-secret)"
Built With
Contributing
Please read CONTRIBUTING.md
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
License
This project is licensed under the MIT License - see the LICENSE.md file for details