Policy under System.Authz not executing #608
-
Hello, We are facing one issue in System.Authz. As per our understanding, whatever policy is written under this package “System.Authz” should always be executed before any specific policy invocation. However it is not getting executed and it getting skipped. Policy is shown below: When allow = false still rest of the policies are returning the response which should not be as certificate validation = false. We have provide our rego during statup as : run --server --log-level debug --set=decision_logs.console=true check.rego . There is no issue during startup OPA server. We have followed the example given on OPA documentation - https://www.openpolicyagent.org/docs/latest/security/#tls-based-authentication-example. The only change is, we have not supplied the certificate during startup instead passing in request body under input attribute like input.certificate = Our question is: Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Heya! It's a bit hard to help when it would require that someone types your policy from the screenshot. Would you be able to copy the code instead? That said, one thing stands out: import data.strings This is not necessary to use the Also you can try on your CLI if the
|
Beta Was this translation helpful? Give feedback.
-
You're not activating the authz handler unless you provide the |
Beta Was this translation helpful? Give feedback.
You're not activating the authz handler unless you provide the
--authentication
/--authorization
flags.