vdot
Create your .env
files and start processes using Vault.
Installation
macOS and Linux
This script will download the latest release from GitHub and install vdot
under /usr/local/bin
.
curl https://gist.githubusercontent.com/sjparkinson/327dc78c60ab81a06c946630b4288910/raw/crate-gh-install.sh \
| sh -s -- --git sjparkinson/vdot
You can also download the executable manually from https://github.com/sjparkinson/vdot/releases/latest.
Cargo
You can install
cargo
from https://www.rust-lang.org/tools/install.
cargo install vdot
Usage
vdot
USAGE:
vdot [FLAGS] <OPTIONS> <PATH>...
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
-v, --verbose Verbose mode
OPTIONS:
-c, --command <command> Command to spawn
--vault-address <vault_address> Vault server address [env: VAULT_ADDR]
--vault-token <vault_token> Vault token used to authenticate requests [env: VAULT_TOKEN]
ARGS:
<PATH>... Path to the Vault secrets
The following assumes you are using version two of Vault's key-value secret engine. Check out
vdot --help
for more information.
ENV=production
LOG_LEVEL=info
Environment Variables
Instead of passing in the --vault-*
options, you can define them as environmnent variables.
The Vault CLI defines that VAULT_TOKEN
and VAULT_ADDR
can be used. These two environment variables are also supported by vdot.