v2: Vault integration - read credentials from Vaultwarden with disk cache fallback

This commit is contained in:
sascha 2026-04-18 10:24:53 +02:00
parent a85a3175cd
commit 09bbc47d6c
4 changed files with 191 additions and 41 deletions

12
entrypoint.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -e
# Configure bw CLI for Vaultwarden on first run
if [ ! -f /root/.config/Bitwarden\ CLI/data.json ] || ! bw status 2>/dev/null | grep -q '"status":"locked"'; then
bw config server https://vault.sascha-lutz.de 2>/dev/null || true
BW_CLIENTID="user.d0a1f14f-fcbb-436a-b18c-426987704df5" \
BW_CLIENTSECRET="wwr4O0pf7mWTOSmTslNP3jqzl5OERp" \
bw login --apikey 2>/dev/null || true
fi
exec uvicorn app:app --host 0.0.0.0 --port 8888