I am trying to write a policy for an endpoint that looks like
/xyz/v1.0/applicationVersions?applicationName=blah&default=true&pageSize=3&pageNumber=1
What is a wildcard/regex match I can do for this endpoint ? My usecase requires me to look up some metadata based on the http endpoint match.
Rego playground link: https://play.openpolicyagent.org/p/RAqOzt9vi8
It's hard to know what the exact requirements are here but, I'd suggest:
You might consider some Rego more like this:
And more relaxed regular expressions input like this: