OPA python client just gives the default value for the rule #719
Unanswered
S1DDHEY
asked this question in
OPA and Rego
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to intialize OPA using the OPA python client by (https://github.com/Turall/OPA-python-client). I run the OPA server in the terminal and then I have made a simple Flask app that initializes the OPA and has an API endpoint for further tasks. But for some reason initializing OPA this way I am just getting the default value for the rule that I have declared in the rego file.
auth.rego
for now I am trying to test this for the RBAC policy.
app.py
I tried
opa evalcommand for the same and it works as expected. I don't understand what possibly could be wrong with this.Beta Was this translation helpful? Give feedback.
All reactions