No description
  • Shell 82.5%
  • Dockerfile 17.5%
Find a file
2026-11-01 20:15:45 +04:00
kubernetes add test pod for testing backup 2026-11-01 20:15:45 +04:00
.gitignore k8s files and containerfile 2026-11-01 20:02:34 +04:00
backup.sh k8s files and containerfile 2026-11-01 20:02:34 +04:00
Containerfile k8s files and containerfile 2026-11-01 20:02:34 +04:00
README.md k8s files and containerfile 2026-11-01 20:02:34 +04:00
restore.sh add test pod for testing backup 2026-11-01 20:15:45 +04:00

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 key
  • iv - AES-CTR IV
  • secrets.enc - encrypted secret dump

To decrypt:

./restore.sh /data/backups/<timestamp> private_decryption.pem > secrets.yaml