DEV Community

Discussion on: rego.fyi: A Study in Serverless Authorization with Open Policy Agent

Collapse
 
nigamthebest profile image
Ankit

Rego Policy example you have presented has two methods but both have the same signature how does this work for you match_with_wildcard

Collapse
 
elthrasher profile image
Matt Morgan

Hi Ankit, that's an OPA convention. I mentioned this above, but you aren't the first to wonder about it. the duplicative call signature of match_with_wildcard makes it an OR comparison is how I put it. I don't find the OPA docs super clear on this point, but it is explained here: openpolicyagent.org/docs/latest/po...

Hope that helps clear it up.

Collapse
 
nigamthebest profile image
Ankit

Thanks for the clarification Matt