undefined result
In Rego, the outcome when a rule has no value because no body succeeded, which is different from false.
In more detail
Querying an undefined rule returns an empty result. A caller that treats anything not false as allowed fails open, so declare defaults and allow only on an explicit true.
Related terms
- Rego — The policy language of Open Policy Agent, in which rules are sets of conditions over JSON input.
- deny by default — The rule that anything not explicitly allowed is refused, including when the facts needed to decide are missing.
- fail open — What a security control does when it breaks or cannot decide: failing open lets the request through, while failing closed blocks it.
Taught in
- Policy-as-Code Architecture: OPA & Rego Syntax — Cloud Security & DevSecOps Engineering