open-policy-agent / gatekeeper-library

📚 The OPA Gatekeeper policy library
https://open-policy-agent.github.io/gatekeeper-library
Apache License 2.0
636 stars 319 forks source link

`variables.anyObject` should be used for required labels CEL #531

Closed maxsmythe closed 4 months ago

maxsmythe commented 4 months ago

We should be using variables.anyObject here in order to mirror the behavior in Rego:

https://github.com/open-policy-agent/gatekeeper-library/blob/192d2209fe32e78ff955b33b69f72ff3882f410d/src/general/requiredlabels/src.cel#L2-L5