Sign inSign up

kennyopennix/vault-autounseal

By kennyopennix

Updated over 2 years ago

Image
0

1M+

kennyopennix/vault-autounseal repository overview

vault-auto-unseal

What for

As You know Vault provide several mechanisms for Auto unseal, but sometimes I couldn't use AWS or GCP as cloud provider. Main idea was use Kubernetes secretes as source for auto unseal.

Dependencies

  • Kubernetes
  • Python > 3.7

How to use

Checkout source code from the repository

Install dependencies via pip: pip install -r requirements.txt

Setup system environment

Run script python app.py

System environments

NameDescription
VAULT_URLVault server url with port e.g http://127.0.0.1:8200
VAULT_SECRET_SHARESSpecifies the number of shares that should be encrypted by the HSM and stored for auto-unsealing. Currently must be the same as secret_shares
VAULT_SECRET_THRESHOLDSpecifies the number of shares required to reconstruct the recovery key. This must be less than or equal to recovery_shares.
NAMESPACEKubernetes namespace for storing vault root key and keys
VAULT_ROOT_TOKEN_SECRETKubernetes secret name for root token
VAULT_KEYS_SECRETKubernetes secret name for vault key

Deployment

The solution can be run as docker container or inside Kubernetes

Building docker container

docker build . -t vault-autounseal:latest

or You can pull existing image from DockerHub

docker pull kennyopennix/vault-autounseal:latest

Tag summary

Content type

Image

Digest

sha256:9f0e34403

Size

27.6 MB

Last updated

over 2 years ago

docker pull kennyopennix/vault-autounseal