mirror of
https://github.com/luzifer-docker/vault-self-unseal.git
synced 2024-12-20 15:11:18 +00:00
Allow configuring through a mounted file
for example through a Kubernetes secret Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
fbfdac0432
commit
ec545715d4
2 changed files with 3 additions and 0 deletions
|
@ -12,4 +12,5 @@ COPY entrypoint.sh /usr/local/bin/
|
|||
|
||||
USER vault
|
||||
|
||||
VOLUME ["/config"]
|
||||
ENTRYPOINT ["/bin/bash", "/usr/local/bin/entrypoint.sh"]
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
[ -f "/config/vault-self-unseal.env" ] && source "/config/vault-self-unseal.env"
|
||||
|
||||
LOCAL_VAULT_ADDR=${LOCAL_VAULT_ADDR:-http://vault:8200}
|
||||
UNSEAL_TOKEN_FIELD=${UNSEAL_TOKEN_FIELD:-token}
|
||||
UNSEAL_TOKEN_PATH=${UNSEAL_TOKEN_PATH:-secret/mgmt/unseal}
|
||||
|
|
Loading…
Reference in a new issue