Back to Glossary
Security

What is OPA (Open Policy Agent)?

A general-purpose policy engine for enforcing authorization decisions across the stack.

OPA (Open Policy Agent) is a CNCF graduated policy engine that decouples policy decision-making from application code. Policies are written in Rego, a declarative language. In Kubernetes, OPA Gatekeeper implements OPA as an admission controller: policies (ConstraintTemplates and Constraints) can reject or mutate resources that violate rules — for example, requiring all pods to have resource limits, or blocking privileged containers.

Deep Dive Guide

how to build devsecops pipeline

Test your knowledge of OPA (Open Policy Agent) and 130 other DevOps concepts