microsoft / regorus

Regorus - A fast, lightweight Rego (OPA policy language) interpreter written in Rust.
MIT License
122 stars 30 forks source link

Support non-simple refs in rule heads #159

Closed anakrish closed 4 months ago

anakrish commented 6 months ago

The following Rego is valid now

package test

a["b"][{"c":"d"}] = 5

Earlier in my experiments this didn't seem to be valid and we have an explicit check against this. producing a "not a simple ref" error.

We will need to revisit this.

anakrish commented 4 months ago

Reproduction example:

package test

multi[null][1] = 1