Skip to main content

CLI tool for hashicorp vault

Project description

Deployed to PyPI Documentation Status Continuous Integration Status Coverage Status Apache License Contributor Covenant

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vault-cli-1.5.1.tar.gz (68.1 kB view details)

Uploaded Source

Built Distribution

vault_cli-1.5.1-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file vault-cli-1.5.1.tar.gz.

File metadata

  • Download URL: vault-cli-1.5.1.tar.gz
  • Upload date:
  • Size: 68.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for vault-cli-1.5.1.tar.gz
Algorithm Hash digest
SHA256 3a082d1f8777d327a85ff37a2282c06c14b0972bc92e0291a66c3d8aa6ab31e9
MD5 82a7c4a926d38046b84041cc31f3f7bb
BLAKE2b-256 7e362f48ae7788cd759639ae79100f62a9906c611d49ee4f5a56a058413f053e

See more details on using hashes here.

File details

Details for the file vault_cli-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: vault_cli-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for vault_cli-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1155ac0b6ffab968f66ef97decb12000f328ff4dfa20a3f48a860c882650df4
MD5 3ee320c77f7b1fad7182d1c66e04c988
BLAKE2b-256 5e2f791bedd97667896f67a3bfab0cabe490543d9fa872b767e3cd4f14d42410

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page