Documentation Index
Fetch the complete documentation index at: https://docs.zenable.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
OPA Gatekeeper validates Kubernetes resources at admission using Rego policies. It extends Open Policy Agent for Kubernetes-native policy enforcement.Capabilities
- Validate and mutate K8s resources at admission time via Rego
- Constraint templates for reusable policy logic
- Audit mode for detecting existing violations
- Enforcement actions:
deny,dryrun, andwarn
Limitations
- Requires a Kubernetes cluster with Gatekeeper installed
- Only applicable to Kubernetes workloads — check out Semgrep or CodeQL for application source code, or Checkov for IaC static analysis
Generated Format
- Language: YAML with embedded Rego
- Structure:
ConstraintTemplatewith Rego inspec.targets[].regoand accompanyingConstraintresource - Execution: Applied to a K8s cluster via
kubectl apply