CLI tool for hashicorp vault
Project description
vault-cli is a Python 3.6+ tool that offers simple interactions to manipulate secrets from Hashicorp Vault. With vault-cli, your secrets can be kept secret, while following 12-factor principles.
Some features
Configure once, use everywhere thanks to cascading (local, user, global) YAML configuration file
Read, browse, write, move, delete secrets easily
Read multiple secrets at once, as YAML
Launch processes with your secrets as environment variables
Launch processes with ssh-agent configured from your vault
Write templated files with secrets inside
Combine multiple secrets into a single one (e.g. a DSN string from components)
vault-cli tries to make accessing secrets both secure and painless.
Showcase
Here are a few things you might do with vault-cli:
$ # Install:
$ pip install vault-cli
$ # Write a secret:
$ vault-cli set mysecret mykey --prompt
Please enter a value for key `mykey` of `mysecret`: *******
$ # Read a secret:
$ vault-cli get mysecret mykey
ohsosecret
$ # Load a secret into the environment variables:
$ vault-cli env --path mysecret -- env | grep MYSECRET
MYSECRET_MYKEY=ohsosecret
$ # Load an ssh key into your ssh-agent:
$ vault-cli ssh --key ssh_private_key -- ssh -T git@github.com
Hi <username>! You've successfully authenticated, but GitHub does not provide shell access.
State
The package is young but supported and alive. We’re mindful of deprecations through semantic versionning and accepting bug reports and feature requests.
Where to go from here
The complete docs is probably the best place to learn about the project.
If you encounter a bug, or want to get in touch, you’re always welcome to open a ticket.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file vault-cli-1.3.1.tar.gz
.
File metadata
- Download URL: vault-cli-1.3.1.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f36f6c28a10ae1dd4a0711fd0522ea2e6dd24033e2ffd98101d5a3a1e2be89a4 |
|
MD5 | 8c273a66fca9259da3822461162a1cf0 |
|
BLAKE2b-256 | ccfb254294f1e37d9a708f9cc5f453a8fce5599ea500a633d597ac933e8d543f |
File details
Details for the file vault_cli-1.3.1-py3-none-any.whl
.
File metadata
- Download URL: vault_cli-1.3.1-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72f57552b5c8b56eae22c98395ed97a3fea8d9b4c7b7a2742d8803fedf125be5 |
|
MD5 | b59627a36306ac9f97f222895dead381 |
|
BLAKE2b-256 | d91e05b9475653d0aad877f28b6319b9e68303dd6757156aa1f03180b57be46e |