Rego

The policy language of Open Policy Agent, in which rules are sets of conditions over JSON input.

In more detail

Lines inside one rule body must all hold, so they are ANDed; rules sharing a name are ORed. A lookup that finds nothing makes the body undefined rather than false, which is why a default value and an explicit true matter.

Examples

default allow := false
deny contains msg if { ... }
In Terraform: A Rego rule describes the conditions under which something is denied or allowed. OPA evaluates the rules against input data, such as a Terraform plan in JSON, and returns the decisions.

Related terms

Taught in

References

Certification courses