Skip to content

Helper to download you secrets from vault to local file

Notifications You must be signed in to change notification settings

alexshemesh/vault_downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vault_downloader

Helper to upload/download your secrets from vault to local file

Requirements

Vault Server - How to run vault server

Python 3.6 or higher - Installation Guide

Create your vitual environment

python -m venv ~/.venvs/vault
source ~/.venvs/vault/bin/activate

Install dependencies

pip install -r requirements.txt

Configure

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

Get token

./vault_helper.py get_vault_token

Follow instructions to export your token

Use it

From your local machine

./vault_helper.py upload your_file.yaml

From your production server

./vault_helper.py download your_local_version.yaml

About

Helper to download you secrets from vault to local file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages