Comments (2)
I wonder if this can be handled using the "with" keyword.
For instance, in the example above we would rewrite prohibited as prohibited :- input.path[0] = "bar", input.path[1] = "baz"
. To apply to arbitrary values, the "with" keyword could be used: not prohibited with input.path as ["foo", "bar"]
. Note, the value could come from input, data, literals, etc.
One issue with this suggestion is that (currently) we return an error if the caller supplies an input document to query that already defines one using the "with" keyword. This would need to be relaxed.
from opa.
Fixed by #345
from opa.
Related Issues (20)
- opa build constructs bundle with absolute paths HOT 6
- Failed to flush decision logs on graceful shutdown HOT 4
- Rewrite calls to deprecated built-ins in `opa fmt --rego-v1`
- Allow custom builtin function to provide a description HOT 2
- Optimized bundle build doesn't respect `rego.v1` and `future.keywords` imports HOT 1
- Add docs on `import rego.v1`
- `opa inspect` failure on custom funcs in policies HOT 4
- Customizable GOFLAGS HOT 2
- Add `--v1-compatible` flag to more commands HOT 1
- OPA fmt in OPA 0.58+ improperly stripping assignment and term from chained rules HOT 1
- rego-v1: Document and report on alternatives to calls to deprecated built-ins
- Issue with Custom OPA Storage implementation HOT 7
- Improve `rego_type_error` error message
- Partial sets can be O(nĀ²) when accessed iteratively
- Incoherent result of opa compile response HOT 8
- Unable to distinguish between bool and string in sprintf HOT 7
- Support raising builtin errors for test runner
- Follow symlinks when building bundles HOT 4
- PE: allow adjusting which non-deterministic builtins are to be evaluated HOT 1
- Add out-of-the-box zap logger HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opa.