mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-16 07:53:18 +03:00
1.4 KiB
1.4 KiB
OPA Gatekeeper Policy Deployment Checklist
Policy Rollout Plan
Pre-Deployment
- Policy reviewed and approved by security team
- Rego logic tested with
opa test - ConstraintTemplate syntax validated
- Exempt namespaces identified
Deployment Steps
- Deploy ConstraintTemplate to cluster
- Verify CRD created:
kubectl get crd - Deploy Constraint in
dryrunmode - Wait 24 hours for audit results
- Review violations and remediate/exempt
- Switch to
warnmode - Wait 7 days, monitor for issues
- Switch to
denymode
Post-Deployment
- Verify enforcement is active
- Test with known-bad resource (should be denied)
- Update documentation
- Alert engineering teams
Policy Registry
| Policy Name | Kind | Mode | Namespaces | Owner |
|---|---|---|---|---|
| block-privileged | K8sBlockPrivileged | deny | all except kube-system | Security |
| require-labels | K8sRequiredLabels | deny | all | Platform |
| allowed-repos | K8sAllowedRepos | deny | production, staging | Security |
| block-latest | K8sBlockLatestTag | warn | production | DevOps |
| require-limits | K8sRequireLimits | deny | production | SRE |
Exemption Request Form
| Field | Value |
|---|---|
| Constraint Name | |
| Resource | |
| Namespace | |
| Reason | |
| Duration | |
| Compensating Control | |
| Approved By | |
| Expiry Date |