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:
Fizzlepoof
2026-05-12 08:15:50 -05:00
parent c30f5cc4f6
commit ae83086b06
3 changed files with 263 additions and 14 deletions

View File

@@ -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