Query multiple data items from the set of policies #453
-
I started this discussion yesterday, but after submitting, the github crashed, so if this is coming as duplicate to you, sorry for that. I'm using opa-golang library to run and evaluate policies on json input. I want to query multiple objects from the rego-evaluation engine. I tried some approaches, like:
where the query is separated by semicolon, as I seen in some article on internet, but it didn't work with go-library.
but it resulted into only hierarchical policy result. Working ways:
In both the working ways, I think there is problem, 1st one has performance problem, and other one is not using the power of opa-queries perfectly. Is there any other way, I could query multiple data objects after the policy evaluation. My policies are written in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You could try querying |
Beta Was this translation helpful? Give feedback.
You could try querying
"x = data.hierarchichal_policy; y = data.network_policy"
, and then check the bindings.