google / cel-spec

Common Expression Language -- specification and binary representation
https://cel.dev
Apache License 2.0
2.83k stars 224 forks source link

CIDR block validation #249

Open bryantidd opened 1 year ago

bryantidd commented 1 year ago

It would be useful to support CIDR block validation in CEL within Kubernetes.

TristonianJones commented 1 year ago

@bryantidd thanks for the feedback. It's most likely that support for CIDR blocks / masks would come as a canonical extension to CEL rather than as part of the core library. We're currently working on Optional Values, a set of functions for working with protobuf transforms, and a library of math-related functions.

I'll ping this issue once we propose a set of CIDR / net related functions.