Open charlesdaniels opened 1 year ago
There is a workaround, which is to do the following:
$ opa eval -f pretty -d ./bundle1/ -d ./bundle2/ data
{
"bundle1": {
"foo": "bar"
},
"bundle2": {
"spam": "ham"
}
}
I think there could still be some use cases where disabling overlapping root detection could be useful for opa eval
, but this workaround does work for my use case.
(thanks Torin!)
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days.
Description
When running
opa eval
with multiple instance of-b
, the errordetected overlapping roots in bundle manifest
appears. Although overlapping root detection is a valuable security measure when using OPA as a server, it can make development and debugging withopa eval
more challenging. To this end, I propose we should:ActivateOpts
to disable overlapping root detection.opa eval
command.Example
Notice that in the example above, both of the two Rego files have different packages and could be evaluated together without collisions. In a production setting, the error shown could be avoided by writing proper bundle manifests for each bundle, but this is inconvenient to do when debugging.
OPA Version