First OPA Gatekeeper

Policy as code.

Overview

OPA Gatekeeper turns Kubernetes admission control into policy-as-code. The first install establishes a workflow where Rego rules in Git enforce cluster policy at admission time, and the same rules run in CI before code merges.

The approach

The rollout is gradual on purpose. Three habits keep policy-as-code from becoming the team that breaks every Friday: install in audit mode, ship Conftest first, and document why each policy exists.

Why this compounds

Each enforced policy raises the cluster’s baseline posture and adds one fewer thing for review to catch. The compounding works because policies are reused across clusters, not rewritten per environment.