A command line interface to browse and edit Vault secrets.
cargo install vaultwalker
If you have the vault cli already installed, you can simply use vaultwalker secret/my_company
.
By default it will fetch the vault server address in $VAULT_ADDR
and the token in the file ~/.vault-token
.
If you want to provide your own login you can use vaultwalker --host <my_vault_server> --token <the vault token> secret/my_company
To see all available options use vaultwalker -h
.
Navigate with the arrow to select any credentials, then use P
to copy the path to the secret, or S
to copy the secret itself.
To add a new key:
- navigate to the correct path and press +
- write the name of your key, press Enter
- write the value of the secret, press Enter
again
Run with cargo run secret/my_company
.
cargo publish