opa
opa copied to clipboard
Open Policy Agent (OPA) is an open source, general-purpose policy engine.
With this change, we'll be able to define substructures using refs in rules. Now, we can do this in **one file**, `foo.rego`: ```rego package basket small_numbers := {1, 2, 3}...
## Partial Evaluation produce duplicate rules * OPA version: tried 0.38.1 & 0.37.2 * Example query: * Example JSON Request (to compile endpoint): https://gist.github.com/t83714/0b6249a33ab9f5ecf45269df38818213 * Example Policy: https://github.com/magda-io/magda/blob/next/magda-opa/policies/entrypoint/allow.rego * Example...
Negated expressions can be produce surprising results if they contain nested terms that require rewriting. For example, the following query will be undefined if `input.x` is undefined: ```rego not f(input.x)...
From `test/cases/testdata/elsekeyword/test-elsekeyword-1059.yaml`: ```rego package ex no_op { true } else = false { true } bool { false } else = true { true } non_bool = null { false...
The repl seems critical to me for developing policy. Statements like the below are allowed in the repl as multiline statements. ```rego > some resource_type; | crud := weights[resource_type]; |...
While there's even a section named "[Accessing Annotations](https://www.openpolicyagent.org/docs/latest/annotations/#accessing-annotations)", it does not mention, or link to, the Rego reference docs for instructions on how to do this from inside of a...
Support for wasm in OPA is great, and the js loader works well! Thanks! :D But as support for more 'native' wasm execution on serveless using wasi is getting more...
ORAS is doing a revamp in their v2 work: among other things, this should cut down dependencies significantly, and that would be very welcome to the use in OPA. *...
## What is the underlying problem you're trying to solve? I believe we should be able to start a test server via `bundle.tar.gz`. Right now, I see that there is...
## What part of OPA would you like to see improved? I would really like to see improvements to the developer experience of writing complex Rego policies (for example: jump...