REA OPA Rego notes (unofficial)
OPA Rego trees (.rego / policy bundles) record policy identity (package, rule, input). In REA 6.7.x, treat selected package/rule/input labels as Evidence beside archive/package routes — complementing Conftest/Checkov cousins without inventing APIs.
Mental model
- Authorize the Rego policy tree (+ packaged bundles you hold).
- Quote selected
packagenames / rule identifiers /inputshapes you actually see (never paste secrets or tokens). - Cousins → conftest-py · checkov-yml · helm-chart · github-actions.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_opa_regoAPI REA never called.
Minimal path
# authorized .rego / policy bundle (+ artifact you hold)
# quote selected package / rule / input labels into case notes
# cousins → peer Conftest / Checkov / Helm / Actions lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_opa_rego .
Compare
| Artifact | Honest posture |
|---|---|
| OPA .rego | Policy package/rule/input identity facts |
| Peer | rea-conftest-py |
| Peer | rea-checkov-yml |
| Not this | rea-helm-chart (chart structure) |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote
packagepaths, selected rule names, and input document shapes — enough for most Evidence binders. - Bundle tokens and remote decision URIs are secrets — record key names only.
- Keep Rego trees distinct from Conftest / Checkov trees in case notes.
default/denyrule names are identity Evidence — label them separately from cousin pages.- Select keys are useful inventory — quote them without inventing REA helpers for
opa eval.
Scope we will not cover
- No inventing
inspect_opa_rego/ automatic evaluations against foreign policy servers. - No credential theft from bundle tokens or remote decision URIs.
- No pirate redistribution of proprietary Rego trees.
- No crack framing via OPA pins.
- No cookbooks that weaken authorization decisions on foreign clusters.
- No using Rego deny rules as an unauthorized security-control bypass guide against systems you do not own.
Honest limits
RepoRead documents config literacy — how authorized Rego trees relate to Evidence — not a full OPA course. Prefer upstream OPA docs for packages and rules. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.
RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.
FAQ
How is this different from rea-conftest-py / rea-checkov-yml / rea-helm-chart?
rea-conftest-py covers Conftest Python/policy wiring. rea-checkov-yml covers Checkov. rea-helm-chart covers Helm charts. This page zooms on OPA Rego policy identity — it does not overwrite those pages. Distinct from a near-dupe rea-conftest-yml.
Is there inspect_opa_rego in 6.7.0?
Not assumed. Quote package / rule / input labels you actually open, then use documented package/archive lanes. Do not invent inspect_opa_rego.
Does REA call OPA cloud APIs or steal policy credentials?
No. Local trees only. Redact bundle tokens and remote decision URIs; do not treat REA as an OPA evaluator. No credential theft.
How should I label Evidence vs other policy configs?
Label Evidence by the file present. Keep .rego / policy bundles separate from rea-conftest-py and rea-checkov-yml.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).