OPA rego policy - URL dynamic path parameters glob.match #535
Unanswered
dsnr-coder
asked this question in
OPA and Rego
Replies: 1 comment
-
Here's an example: https://play.openpolicyagent.org/p/rrjCoIZikf One thing to be aware of is that a trailing |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Everyone,
I'm using OPA to write an access policy to a microservice, and I'm now tackling the problem of matching an URL containing a path param.
The URL follows the pattern: /test-service/{uuid}/users/{uuid1}/groups/
I tried with many ways nothing has worked in my favour.
glob.match("/test-service/{}/users/{}/groups/", [], input.path)
Please find the rego URL below that I have tried.
https://play.openpolicyagent.org/p/82me37Kawh
Any help would be greatly appreciated
Beta Was this translation helpful? Give feedback.
All reactions