Skip to main content

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.

Install

Get a stable version from PyPi

pip install vault_printer

or via git

pip install git+https://github.com/DerMolly/vault_printer

Usage

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

vault_printer --ldap vault.example.com test >> passwords.md

Help

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
                        asked
  --password PASSWORD, -p PASSWORD
                        the password to login, if omitted you'll be asked
  --tokenLogin TOKENLOGIN, -t TOKENLOGIN
                        the token to login, if omitted you'll be asked

Login

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

Metadata

Release files for vault-printer 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vault-printer 0.3.1
File Size Uploaded
vault_printer-0.3.1.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vault-printer 0.3.1
File Interpreter ABI Platform
vault_printer-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / vault_printer-0.3.1.tar.gz

Download URL vault_printer-0.3.1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
36a54e0e4f691922c506061f70d92e503a0ad19266a6c15625cd08229bbdf4b0
BLAKE2b-256 checksum
How to use checksums
487439980f54ff1f5b8f45f67e95c123920fc06a4906f8e6a8b876dfeac658b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release files / vault_printer-0.3.1-py3-none-any.whl

Download URL vault_printer-0.3.1-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
135ab941b1f989a58bfdbfc03b69f45cebbacf39160544be987fdb290594741d
BLAKE2b-256 checksum
How to use checksums
7991397798a7543d753d9091000158cde4e08c69935503671cdd91d4e5b354f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page