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

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 --envvar 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-3.0.0.tar.gz (65.9 kB view details)

Uploaded Source

Built Distribution

vault_cli-3.0.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vault-cli-3.0.0.tar.gz
  • Upload date:
  • Size: 65.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for vault-cli-3.0.0.tar.gz
Algorithm Hash digest
SHA256 63b22d2887aae2ae7e709d2ae5217ad4a6274fc5f8bd0466af5a8dbd86952186
MD5 83594731d0c508d6968c0f2737cd30e7
BLAKE2b-256 7118a501d6d98bab7f665dfa1cedd37f84a1122f45707d52f3b982f098c3c868

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vault_cli-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for vault_cli-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 357324eb200cd49d15fde5d2ec7302c550f6944c916799f48e5a0929f6a7349c
MD5 9da196a91b426bee0067c8a0eb1d8b3d
BLAKE2b-256 3cfb0d2b034b0b305318ee2062cdc0f6397dadae211f642ba2e659f4188c374b

See more details on using hashes here.

Supported by

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