Overview
Why Use Approval Rules?
Approval rules help you:- Add human oversight - Require sign-off for production deployments
- Enforce compliance - Meet regulatory requirements for change management
- Coordinate releases - Ensure stakeholders are aware before deployment
- Reduce risk - Catch issues that automated checks might miss
Configuration
Add an approval rule to your policy:Properties
| Property | Type | Required | Description |
|---|---|---|---|
required | integer | Yes | Minimum number of approvals |
Common Patterns
Single Approval for Production
Basic approval gate for production deployments:Multiple Approvals for Critical Services
Require multiple sign-offs for high-risk deployments:Approval with Verification
Combine approval with post-deployment verification:Approval with Gradual Rollout
Approve once, then roll out gradually:Approval Workflow
1. Release Created
When a new release is created that matches an approval policy, it enters an “awaiting approval” state.2. Approval Requested
Users with appropriate permissions can view pending approvals in the Ctrlplane UI or via API.3. Approval Granted
Authorized users approve (or reject) the release. Each approval is recorded with the user and timestamp.4. Deployment Proceeds
Once the required number of approvals is met, the deployment continues through any remaining policy rules.Best Practices
Environment-Based Approvals
| Environment | Approvals | Notes |
|---|---|---|
| Development | 0 | No approval needed |
| QA | 0 | Automated testing sufficient |
| Staging | 0-1 | Optional for visibility |
| Production | 1-2 | Always require approval |
Recommendations
- ✅ Require approvals for production environments
- ✅ Use multiple approvals for critical services
- ✅ Combine with verification for defense in depth
- ✅ Document approval requirements in runbooks
- ✅ Set up notifications for pending approvals
Next Steps
- Policies Overview - Learn about policy structure
- Verification - Add automated health checks
- Gradual Rollouts - Control deployment pace