Helper to upload/download your secrets from vault to local file
Vault Server - How to run vault server
Python 3.6 or higher - Installation Guide
python -m venv ~/.venvs/vault
source ~/.venvs/vault/bin/activate
pip install -r requirements.txt
Requires 3 env vars to be set.
VAULT_ADDR - url of vault server.
VAULT_ROLE_ID - your app role id.
VAULT_ROLE_SECRET - secret id that authenticates your role
./vault_helper.py get_vault_token
Follow instructions to export your token
From your local machine
./vault_helper.py upload your_file.yaml
From your production server
./vault_helper.py download your_local_version.yaml