Multitenant OPA bundle #306
-
Hi, i'm trying to create an OPA configuration bundle for a multi tenant environment.
permissions.rego use the 'data' variable to access json content for a specific tenant:
A data.json is structured with a schema similar to this:
If i try to request any policy evaluation I receive result:{allow:false} response. What is the correct strucuture that i can use to manage one single policy file with a set of tenant data configurations? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have you tried running your bundle and looking if everything looks right? You could run the below command and then run for ex.
|
Beta Was this translation helpful? Give feedback.
Have you tried running your bundle and looking if everything looks right? You could run the below command and then run for ex.
data
in the prompt to see your data mappings. Also are you usingopa build
to create your bundle?