Project Name
Production Misconfiguration Incidents Cut 80% by Moving Kubernetes Enforcement to Admission Time With OPA
![]()
A media streaming platform running its viewer-facing services on Kubernetes, where reliability shapes the viewing experience directly and where SRE and platform teams were spending a growing share of their time responding to incidents traced back to misconfigured deployments. Nothing stood between a bad manifest and a running cluster, so enforcement only happened after a service had already degraded — every fix was a postmortem rather than a prevention, and the same categories of misconfiguration kept resurfacing because nothing at deploy time was stopping them. Ksolves implemented a preventative enforcement layer built on Open Policy Agent, evaluating every manifest at admission time and rejecting non-compliant deployments before scheduling, cutting production misconfiguration incidents by 80% and logging every decision for full visibility into what was being caught.
- Violations discovered only after incidents: Misconfigurations surfaced in production, after a service disruption had already occurred, rather than being caught before deployment.
- No preventative enforcement layer: Nothing stood between a submitted manifest and the running cluster to stop a non-compliant configuration from being deployed at all.
- Recurring, preventable incident patterns: The same categories of misconfiguration resurfaced repeatedly, because fixing an incident after the fact did nothing to prevent the next occurrence.
- Reactive SRE workload: SRE and platform engineering time was consumed by postmortems and firefighting rather than proactive governance work.
- No codified definition of unsafe configuration: There was no testable record of which configurations were unsafe, so prevention depended on tribal knowledge rather than enforced rules.
- Delayed feedback for developers: Developers learned a deployment was non-compliant only once it had caused a production problem, far removed from the point where the mistake was made.
Ksolves treated this as a placement problem rather than a tooling gap: the enforcement point was in the wrong place, not missing. Policy belongs at the moment of deployment, not in the postmortem that follows it. The team codified the failure patterns that had already caused outages into Rego rules and enforced them through Kubernetes Admission Controllers, so every manifest is evaluated and, where necessary, rejected before it can be scheduled onto a cluster. The governing principle: a misconfiguration that never reaches production is not an incident to be managed.
- Rego Policy Set for Known Failure Patterns: Codified the misconfiguration patterns that had previously caused production incidents into discrete, testable, version-controlled Rego rules.
- OPA-Based Admission Control Enforcement: Deployed Open Policy Agent as a Kubernetes admission controller so every manifest is evaluated against the policy set before it is admitted to the cluster.
- Pre-Deployment Rejection of Non-Compliant Manifests: Configured the admission layer to reject non-compliant deployments outright rather than flagging them for later review, moving feedback to the point of submission.
- Full Decision Logging: Logged every admission decision, allowed and blocked, giving SRE and platform teams a standing record of what the layer is preventing.
- Incident-to-Policy Feedback Loop: Established a process for translating each new incident pattern into a new Rego rule, so the policy set keeps closing gaps rather than staying static after rollout.
Technology Stack
| Category | Technology |
|---|---|
| DevSecOps | Open Policy Agent (OPA) |
| Platform | Kubernetes Admission Controllers |
| DevSecOps | Rego |
| Compliance | Decision Audit Logging |
- Production Misconfiguration Incidents Down 80%: Policy violations were previously discovered only after they had already caused a production incident; preventative admission control has cut production misconfiguration incidents by 80%.
- Enforcement Moved From Post-Incident to Pre-Deployment: There was previously no gate stopping a non-compliant manifest from reaching the cluster; 100% of manifests are now evaluated by the OPA admission controller before deployment is permitted.
- SRE Time Shifted From Reactive to Proactive: SRE capacity was consumed by postmortems for recurring, preventable misconfiguration incidents; those same incident categories are now blocked automatically before they can recur.
- Full Visibility Into Prevented Deployments: There was previously no record of near-miss misconfigurations because nothing was catching them; every admission decision is now logged, giving teams a complete record of what the layer has prevented.
“We used to find out about a bad deployment when it took something down. Now the same class of mistake gets stopped before it ever reaches production, and our on-call load has dropped because of it.”
– Senior SRE Leader
A media streaming platform whose only real detection mechanism for Kubernetes misconfiguration was the incident it caused was moved onto preventative governance through Ksolves DevOps consulting services. A Rego policy set encoding known failure patterns, enforced by Open Policy Agent at the Kubernetes admission layer, now evaluates every manifest and rejects non-compliant deployments before scheduling. Production misconfiguration incidents fell by 80%. Enforcement moved from the postmortem to the point of deployment, with 100% of manifests evaluated before admission. Every decision, allowed or blocked, is logged for visibility. The incident-to-policy feedback loop means the enforcement layer keeps closing gaps as new failure patterns emerge, making proactive governance a standing capability rather than a one-time cleanup.
Ready to Stop Misconfigurations Before They Ever Reach Production?