REA Conftest notes (unofficial)
Conftest trees (policy/*.rego / conftest.toml / data pins) record OPA policy-as-code test identity. In REA 6.7.x, treat selected policy and data labels as Evidence beside archive/package routes — complementing OPA / Rego / Gatekeeper cousins without inventing APIs. Distinct from rea-opa (Conftest CLI ≠ OPA server) and rea-conftest-py (OPA Conftest ≠ Python pytest conftest). Preferred rea-opa already lived; this SWAP uses free backup rea-conftest.
Mental model
- Authorize the Conftest policy tree (+ packaged charts you hold).
- Quote selected policy / package / data labels you actually see (never paste secret data documents).
- Cousins → opa · opa-rego · gatekeeper · kyverno.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_conftestAPI REA never called.
Minimal path
# authorized Conftest policy/*.rego / conftest.toml (+ charts you hold)
# quote selected policy / package / data labels into case notes
# cousins → peer OPA / Rego / Gatekeeper / Kyverno lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_conftest .
Compare
| Artifact | Honest posture |
|---|---|
| policy / data pins | Conftest stack identity facts |
| Peer | rea-opa |
| Peer | rea-opa-rego |
| Not this | rea-conftest-py (Python pytest conftest) |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote selected policy package names, input kinds, and data path labels only — enough for most Evidence binders.
- Secret data documents and private policy credentials are secrets — record key names only.
- Keep Conftest stack identity distinct from OPA / Gatekeeper / Python conftest-py trees in case notes.
- Chart image tag pins are identity Evidence — label them separately from cousin pages.
- Select keys are useful inventory — quote them without inventing REA helpers for live Conftest runs.
Scope we will not cover
- No inventing
inspect_conftest/ automatic policy tests against foreign clusters. - No credential theft from secret data documents.
- No pirate redistribution of proprietary Conftest trees.
- No crack framing via Conftest pins.
- No cookbooks that weaken policy tests on foreign accounts.
- No using Conftest as an unauthorized policy-recon guide against accounts you do not own.
Honest limits
RepoRead documents config literacy — how authorized Conftest trees relate to Evidence — not a full OPA course. Prefer upstream Conftest docs; use rea-opa-rego for Rego depth. 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-opa / rea-opa-rego / rea-gatekeeper / rea-kyverno / rea-conftest-py?
rea-opa covers Open Policy Agent stack identity. rea-opa-rego covers Rego depth. rea-gatekeeper covers Gatekeeper. rea-kyverno covers Kyverno. rea-conftest-py is the Python pytest conftest cousin — not OPA Conftest. This page zooms on OPA Conftest policy-test stack identity — it does not overwrite those pages.
Is there inspect_conftest in 6.7.0?
Not assumed. Quote policy/*.rego / conftest.toml / data pins you actually open, then use documented package/archive lanes. Do not invent inspect_conftest.
Does REA call Conftest APIs or steal policy credentials?
No. Local trees only. Redact policy secrets and private data documents; do not treat REA as a Conftest runner. No credential theft.
How should I label Evidence vs OPA / Gatekeeper trees?
Label Evidence by the file present. Keep Conftest stack identity separate from rea-opa and rea-gatekeeper. Distinct from rea-conftest-py.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).