Skip to main content

A program to get all secrets from a vault servers kv_store for printing

Project description

vault_printer pylint 10.00 MIT License PyPI version python version

vault_printer is a little program to extract a whole kv_store of a Vault Server to stdout in markdown. This could be used to print it out and store it in a physical safe somewhere. Or at least that's the purpose for which I wrote it.


Get a stable version from PyPi

pip install vault_printer

or via git

pip install git+


E.g extract kv_store test from and login via ldap:

vault_printer --ldap test >>


usage: vault_printer [-h] [--version] [-v] [--no-toc] [--no-content]
                     [--ldap | --token] [--username USERNAME]
                     [--password PASSWORD] [--tokenLogin TOKENLOGIN]
                     [url] kv_store

A program to get all secrets from a vault servers kv_store for printing

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -v, --verbose         increase verbosity
  --ldap                login via ldap
  --token               login via token

server parameter:
  url                   the url of the vault server
  kv_store              the kv store to export from

output configuration:
  --no-toc              don't print the toc
  --no-content          don't print the content

login parameter:
  --username USERNAME, -u USERNAME
                        the username with which to login, if omitted you'll be
  --password PASSWORD, -p PASSWORD
                        the password to login, if omitted you'll be asked
                        the token to login, if omitted you'll be asked


Currently the only supported login methods are:

  • Token
  • LDAP

Maybe I will add some more in the future. If you need another Login Method feel free to open a issue or even a PR.

Environment Variables

This program also uses these environment variables if set

$VAULT_ADDR : the url of the vault server
$VAULT_TOKEN : the token to authenticate with the --token login method

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_printer-0.3.1.tar.gz (8.4 kB view hashes)

Uploaded source

Built Distribution

vault_printer-0.3.1-py3-none-any.whl (10.1 kB view hashes)

Uploaded py3

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