No description
- Shell 82.5%
- Dockerfile 17.5%
| kubernetes | ||
| .gitignore | ||
| backup.sh | ||
| Containerfile | ||
| README.md | ||
| restore.sh | ||
Kubernetes Secrets Backup
This is a small utility which fetches all the secrets in the cluster, encrypts them, and stores them in a persistent volume.
Build the image:
podman build -t registry.alexbissessur.dev/k8s-secrets-backup:1.0.0 .
podman push registry.alexbissessur.dev/k8s-secrets-backup:1.0.0
Backups are written to a PVC at /data/backups/<timestamp>/. Each backup contains:
kem.bin- ML-KEM encapsulated keyiv- AES-CTR IVsecrets.enc- encrypted secret dump
To decrypt:
./restore.sh /data/backups/<timestamp> private_decryption.pem > secrets.yaml