REA Gatekeeper notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

OPA Gatekeeper trees (ConstraintTemplate / Constraint YAML) record Kubernetes admission ConstraintTemplate identity (targets, rego, spec.parameters). In REA 6.7.x, treat selected targets/rego/spec labels as Evidence beside archive/package routes — complementing OPA Rego/Kyverno cousins without inventing APIs. Distinct from rea-opa-rego (standalone Rego) and rea-kyverno.

Mental model

  1. Authorize the Gatekeeper ConstraintTemplate tree (+ packaged Constraints you hold).
  2. Quote selected targets / embedded rego package names / spec.parameters key labels you actually see (never paste secrets or tokens).
  3. Cousins → opa-rego · kyverno · conftest-py · checkov-yml.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_gatekeeper API REA never called.

Minimal path

# authorized ConstraintTemplate / Constraint YAML (+ policies you hold)
# quote selected targets / rego / spec.parameters labels into case notes
# cousins → peer OPA Rego / Kyverno / Conftest / Checkov lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_gatekeeper .

Compare

ArtifactHonest posture
Gatekeeper ConstraintTemplateAdmission targets/rego/spec identity facts
Peerrea-opa-rego
Peerrea-kyverno
Not thisrea-conftest-py (Conftest policies)
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote selected target frameworks, rego package names, and spec.parameters keys — enough for most Evidence binders.
  • Kubeconfig tokens and remote cluster URLs are secrets — record key names only.
  • Keep Gatekeeper ConstraintTemplates distinct from standalone OPA Rego / Kyverno policies in case notes.
  • EnforcementAction / excludedNamespaces are identity Evidence — label them separately from cousin pages.
  • Select keys are useful inventory — quote them without inventing REA helpers for Gatekeeper apply.

Scope we will not cover

  • No inventing inspect_gatekeeper / automatic constraint apply against foreign clusters.
  • No credential theft from kubeconfig tokens or remote API URLs.
  • No pirate redistribution of proprietary Gatekeeper trees.
  • No crack framing via Gatekeeper pins.
  • No cookbooks that weaken remote auth on foreign cluster accounts.
  • No using excludedNamespaces / dryrun as an unauthorized admission-control bypass guide against systems you do not own.

Honest limits

RepoRead documents config literacy — how authorized Gatekeeper trees relate to Evidence — not a full Gatekeeper course. Prefer upstream OPA Gatekeeper docs for ConstraintTemplates and Constraints. 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-rego / rea-kyverno / rea-conftest-py?

rea-opa-rego covers standalone OPA Rego. rea-kyverno covers Kyverno policies. rea-conftest-py covers Conftest. This page zooms on OPA Gatekeeper ConstraintTemplate/Constraint identity — it does not overwrite those pages.

Is there inspect_gatekeeper in 6.7.0?

Not assumed. Quote targets / rego / spec.parameters labels you actually open, then use documented package/archive lanes. Do not invent inspect_gatekeeper.

Does REA call Gatekeeper cloud APIs or steal cluster credentials?

No. Local trees only. Redact kubeconfig tokens and remote cluster URLs; do not treat REA as a Gatekeeper runner. No credential theft.

How should I label Evidence vs OPA Rego / Kyverno?

Label Evidence by the file present. Keep ConstraintTemplate / Constraint CRDs separate from rea-opa-rego and rea-kyverno.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources