Change Management
Pre-deployment checklist, deployment steps, rollback procedures, and change risk levels
Change Management Process
Pre-Deployment Checklist
Before EVERY infrastructure change:
- 1. Review scope — What services are affected?
- 2. Check dependencies — Read
context/inventory/services.md - 3. Backup current state
- 4. Check server resources —
free -handdf -h- Refuse if RAM >85% or disk >85%
- 5. Test in non-production first (if possible)
- 6. Document expected behavior — What should happen after the change?
- 7. Prepare rollback plan — How to undo if it fails?
Deployment Steps
- Implement change (one service at a time)
- Validate immediately
- Monitor for 15 minutes — Watch logs and metrics
- Document in changelog —
Alfred/docs/changelog.md - Update inventory —
context/inventory/docker-containers.md - Git commit with descriptive message
- Send NTFY notification (if production change)
If Change Fails
- Stop the failing service immediately
- Restore backup config
- Verify functionality restored
- Document what failed in daily log
- Send NTFY critical notification
- Create incident report if production impact >5 minutes
Forbidden Without Explicit Approval
- Delete databases or data volumes
- Force push to git repositories
- Restart production services during business hours (8AM-6PM GYT)
- Modify Pangolin/Traefik/Gerbil config files directly
- Change network segmentation
- Disable monitoring or alerts
- Remove backup jobs or scripts
Change Types and Risk Levels
| Type | Risk | Approval | Example |
|---|---|---|---|
| Config change | Low | Self-approve | Env var update |
| New service deploy | Medium | Self-approve with checklist | Deploy new container |
| Service upgrade | Medium | Self-approve with backup | Update image version |
| Database migration | High | Master Kareem approval | Schema changes |
| Network changes | High | Master Kareem approval | New network, firewall rules |
| Core infra (Pangolin, Vault) | Critical | Master Kareem approval | Any change to core services |
| Data deletion | Critical | Master Kareem explicit approval | Volume removal, DB drop |