feat: add git-crypt secrets repo setup and docs
- scripts/setup-secrets-repo.sh: replace dpkg-deb install with Docker method - dev/docker-compose.yaml: add git-crypt-init service (profile: setup) - docs/operations/SECRETS_MANAGEMENT.md: document git-crypt encrypted repo, unlock procedure, rebuild runbook, and TrueNAS install methods
This commit is contained in:
@@ -39,6 +39,25 @@ services:
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
# Run once to install git-crypt on the TrueNAS host (apt is blocked there).
|
||||
# Usage: docker compose --profile setup up git-crypt-init
|
||||
git-crypt-init:
|
||||
container_name: git-crypt-init
|
||||
image: debian:bookworm-slim
|
||||
profiles:
|
||||
- setup
|
||||
restart: "no"
|
||||
volumes:
|
||||
- /root/bin:/out
|
||||
command: >
|
||||
bash -c "
|
||||
apt-get update -qq &&
|
||||
apt-get install -y -qq git-crypt &&
|
||||
cp /usr/bin/git-crypt /out/git-crypt &&
|
||||
chmod +x /out/git-crypt &&
|
||||
echo 'git-crypt installed to /root/bin/git-crypt'
|
||||
"
|
||||
|
||||
rackpeek:
|
||||
container_name: ix-rackpeek-rackpeek-1
|
||||
image: aptacode/rackpeek:latest
|
||||
|
||||
Reference in New Issue
Block a user