Open Policy Agent

A general-purpose policy engine that evaluates Rego policies against JSON input and returns a JSON decision.

In more detail

OPA decides and the caller enforces. It knows nothing about buckets or Terraform, only documents, and runs as a server on port 8181, as a library or as a one-off opa eval.

Example

In Terraform: In the course pipeline OPA evaluates the output of terraform show -json and can reject public storage, missing tags or unapproved regions. Tools such as Conftest run OPA policies in a pipeline step.

Related terms

Taught in

References

Certification courses