Is it possible to make rego throw an error (or exception)? #474
Unanswered
renatosc
asked this question in
OPA and Rego
Replies: 1 comment 1 reply
-
Did you see https://www.openpolicyagent.org/docs/latest/policy-language/#errors ? I'm on my phone (vacation, yay!) so I've not been able to try the query parameter mentioned there, but maybe that's what you're looking for. The docs aren't clear on if/what/how it changes the response / logging though. That'd be a good improvement, I think. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to enforce that a timestamp that I receive as input to be of UTC timezone and if it is not, I would like to OPA to stop evaluating the rule (so, no response) and log that as an error. Is it possible to do that today? I looked on the docs and I didn't find a way to do that.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions