OPA/Rego

The Open Policy Agent and its Rego policy language, a general-purpose policy-as-code engine that evaluates governance rules in CI/CD and at runtime admission; the canonical example of executable policy-as-code.

Developed in
ch. 06, Policy-as-code and gates
Chapters
ch. 04, The Stack · ch. 05, Patterns · ch. 06, The Role
Contrast with
Cedar
Source
Defined by this Body of Knowledge: the section it is developed in is the source

Where it is used

4 chapters of the Body of Knowledge use the term. Each link opens the first section that does.

OPA/Rego: mentions per chapter10 mentions of the term across 4 of the 23 chapters of the Body of Knowledge; the chapters the glossary cross-references are drawn solid.Cross-referenced chapterOther chapterCross-referenced, not named03 Values & Principles: 1 mention03 Values & Principles104 The Stack: 2 mentions04 The Stack205 Patterns006 The Role: 5 mentions06 The Role512 Governance Program: 2 mentions12 Governance Program2No mentions in the other 18 chaptersSource: the Body of Knowledgev0.5.0
OPA/Rego: mentions per chapter10 mentions of the term across 4 of the 23 chapters of the Body of Knowledge; the chapters the glossary cross-references are drawn solid.Cross-referenced chapterOther chapterCross-referenced, not named00010203 Values & Principles: 1 mention10304 The Stack: 2 mentions2040506 The Role: 5 mentions5060708101112 Governance Program: 2 mentions2121314151617181920212223Source: the Body of Knowledge v0.5.0
Mentions per chapter How often each chapter names the term, with the chapters the glossary cross-references drawn solid. The longest bar is where to read the term in use; bars spread across many chapters mark a term that runs through the discipline.
Mentions as a table
Mentions of OPA/Rego per chapter
ChapterMentionsCross-referenced
00 Preface0No
01 Definition0No
02 Why Now0No
03 Values & Principles1No
04 The Stack2Yes
05 Patterns0Yes
06 The Role5Yes
07 Maturity Model0No
08 Regulatory Map0No
10 Reading List0No
11 AI Defined0No
12 Governance Program2No
13 Risk Management0No
14 Development0No
15 Deployment0No
16 Fairness & XAI0No
17 Incidents0No
18 EU AI Act0No
19 Privacy & AI0No
20 Existing Law0No
21 AI Laws Worldwide0No
22 Principles & Standards0No
23 AI Agents0No

Patterns that use this term

One pattern page uses the term.

OPA/Rego: related terms and patternsThe term at the centre; related terms on solid edges, the terms it is contrasted with on dashed edges, and the patterns that use it most in the colour of their layer.RelatedContrastColour: stack layer of the pattern01 Govern-as-CodeOPA/RegoRelated terms (1)Policy-as-code · RelatedPolicy-as-codeContrast with (1)Cedar · ContrastCedarPatterns using it (1)Policy Card, 1 mention · Uses the termPolicy Card
OPA/Rego: related terms and patternsThe term at the centre; related terms on solid edges, the terms it is contrasted with on dashed edges, and the patterns that use it most in the colour of their layer.RelatedContrastColour: stack layer of the pattern01 Govern-as-CodeRelated terms (1)Policy-as-code · RelatedPolicy-as-codePatterns using it (1)Policy Card, 1 mention · Uses the termPolicy CardContrast with (1)Cedar · ContrastCedarOPA/Rego
The term's neighbourhood Terms related to this one on solid edges, terms it is often confused with on dashed edges, and the patterns that use it most in the colour of their layer. Follow a dashed edge to check the distinction before you use either term.
Neighbourhood as a table
Neighbourhood of OPA/Rego
FamilyItemRelation
Related termsPolicy-as-codeRelated
Contrast withCedarContrast
Patterns using itPolicy Card, 1 mentionUses the term

Sources

No external source: the term is coined or used in a specific sense by this Body of Knowledge, and the section linked under "Developed in" is its source.

Definitions of legal terms paraphrase the cited text, which governs. Dated statements are as of .

Cite this term

García Aibar, J. (2026). OPA/Rego. In AI Governance Engineering: The Thesis & Body of Knowledge (v0.5.0), Glossary. https://doi.org/10.5281/zenodo.22956197. https://aigovernanceengineer.com/glossary/opa-rego. CC BY 4.0

BibTeX

@misc{aige2026oparego,
  author  = {Jorge García Aibar},
  title   = {{OPA/Rego}},
  note    = {Glossary, AI Governance Engineering: The Thesis \& Body of Knowledge, version 0.5.0},
  year    = {2026},
  doi     = {10.5281/zenodo.22956197},
  url     = {https://aigovernanceengineer.com/glossary/opa-rego}
}