Replies: 1 comment 19 replies
-
|
No, regex are not supported. They could yield different results, in some cases, because OPA uses golang's RE2, and MySQL does not. Sorry! It's crucial that the semantics don't change in the process of filtering data compared to usual Rego evals. We haven't really thought about extension points in the filtering work, perhaps it would make sense to let people opt in, at least in their own OPA builds... 🤔 |
Beta Was this translation helpful? Give feedback.
19 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
https://www.openpolicyagent.org/docs/filtering/fragmentsay regex is unsupported builtin (for unknown values) now, Will there be support in the future? Because mysql have function REGEXP, we could use it 。This is useful in many scenarios, such as regular expressions in AWS IAM like ”arn:aws:iam::111122223333:user/*”
Beta Was this translation helpful? Give feedback.
All reactions