1.1 KiB
1.1 KiB
Production Operations Policy
Last updated: March 2, 2026
Purpose
Prevent destructive production actions that can cause irreversible data loss.
Hard bans in production
Never run these commands against production:
docker volume rm skymoney_pgdatadocker compose down -v/docker-compose down -vprisma migrate resetprisma migrate devprisma db push --accept-data-loss
Allowed migration path
prisma migrate deployonly.- Mandatory pre-migration backup (
scripts/backup.sh). - DB target validation (
scripts/validate-prod-db-target.sh). - Volume guard (
scripts/guard-prod-volume.sh).
Operator controls
- Prefer constrained sudoers permissions over broad
sudo docker. - Keep all manual production commands logged in an incident/change ticket.
- Require peer confirmation before any storage/volume action.
Intentional rebuild exception
Only for explicit rebuild events:
- Set
ALLOW_EMPTY_PROD_VOLUME=1for one deploy run. - Record reason and approver.
- Reset
ALLOW_EMPTY_PROD_VOLUME=0immediately afterward.