Infinite loops and other challenges with arbitrary policies #2
Unanswered
MartenvanWezel
asked this question in
OPA and Rego
Replies: 0 comments 3 replies
-
There's a few aspects here, and since I'm not entirely certain about your scenario (rego from untrusted users?), I'll present them in brief -- let me know if you need more detail on any of these:
I'm curious if this helps you at all, and if you need more pointers on any of those items... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm aware OPA has certain provisions/tips - https://www.openpolicyagent.org/docs/latest/policy-performance/#high-performance-policy-decisions - to ensure (is it.. sure?) that evaluations don't take too long.
But I am wondering if it is feasible to deploy OPA in such a way that it should "never" leave the system in an unwanted state, e.g. in some infinite loop, or demanding unreasonable amounts of memory (without building monitoring to detect it externally and killing misbehaving threads).
Of course main reason for this question is the worry that opening up the pipeline for unvetted users can cause an accidental or maliciously formed query to bring critical systems to its knees.
And of course ideally the answer should keep the power of the rego language intact :)
Beta Was this translation helpful? Give feedback.
All reactions