Add CNPG backup verification CronJob #60
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-platform#60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lineage
plan-pal-e-platform→ Phase 13 (Backup Verification)Repo
forgejo_admin/pal-e-platformUser Story
As a platform operator
I want automated verification that CNPG Postgres backups in MinIO are restorable
So that I have confidence in disaster recovery readiness
Context
CNPG Postgres clusters (pal-e-docs, soon Woodpecker) back up WAL archives to MinIO (
postgres-walbucket). The tf-state-backup CronJob already proves the pattern for MinIO-based backup verification. But we have no automated check that Postgres backups are actually restorable. This CronJob lists the latest backup objects in MinIO and verifies they exist and are recent (within 24h).File Targets
Files the agent should modify:
terraform/main.tf— add CronJob resource after the existing tf-state-backup CronJob (around line 1770)Files the agent should NOT touch:
terraform/variables.tf— no new variables needed.woodpecker.yaml— no CI changes neededAcceptance Criteria
postgres-walbucket for recent backup objectscnpgMinIO IAM user credentials (reuseminio_iam_user.cnpg)Test Expectations
tofu validatepassestofu fmt -checkpassescd terraform && tofu fmt -check && tofu validateConstraints
cnpgMinIO IAM user — no new IAM resources neededpostgresnamespace for the CronJob to use (or reference the existing one atkubernetes_secret_v1.cnpg_s3_creds)Checklist
Related
plan-pal-e-platform— Platform Hardening plan, Phase 13