Incorrect syntax reported by OPA (rego_parse_error: illegal token) #337
Unanswered
wedla
asked this question in
OPA and Rego
Replies: 1 comment
-
Can you try removing all whitespace before glob.match? Just to be sure there's no character there that looks like a blank but isn't. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, guys, how are you doing? I hope everyone is safe and sound.
I have a question about the use of glob.match function. In the project I work, we are using OPA by downloading bundles, so we can evaluate if some credentials have permission or not to consume our resources. But we have an address that belongs to a websocket, and it should be in the safe endpoints.
The rego expression is the following:
But when OPA downloads the bundle, it throws the following error:
I read and re-read the documentation, but I wasn't able to find an answer for this error. On the rego playground, I've received a positive response by evaluating the expression above, as it follows: https://play.openpolicyagent.org/p/onjH19HICw
So can someone help me?
Beta Was this translation helpful? Give feedback.
All reactions