OPA decision API
OPA's HTTP interface: the caller POSTs its input as JSON to /v1/data/ plus a policy path and receives the decision as JSON.
In more detail
Each request body is a JSON object whose input field holds the document to decide on. Publish one decision document, such as allow plus reasons, rather than separate allow and deny queries, and treat a missing result, timeout or error as deny.
Related terms
- Open Policy Agent — A general-purpose policy engine that evaluates Rego policies against JSON input and returns a JSON decision.
- deny by default — The rule that anything not explicitly allowed is refused, including when the facts needed to decide are missing.
Taught in
- Policy-as-Code Architecture: OPA & Rego Syntax — Cloud Security & DevSecOps Engineering