envoyproxy / envoyproxy/envoy

Need CEL convenience function: inIpRange()

Open
#32,170 4 comments 0 reactions 0 assignees View on GitHub
area/cel enhancement help wanted
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 22h
Merged PRs (30d)
430

Description

Currently, Envoy's CEL functions are essentially what the mainline CEL repo provides.
However, as more use cases pile up, it may be worthwhile to add some additional convenience functions (where sensible) to make configuration & processing faster in Envoy.

In the case of this issue, the function being requested is `inIpRange()`. We have attributes that contain IP data (source.address, destination.address, etc.). Often times, a user wants to check if the IP is in a range. Its clunky and error prone to do this with string matches. So the request is to add an `inIpRange()` CEL function to Envoy whose semantics are like `inIpRange(source.address, '9.9.9.0/24')`

cc @kyessenov @tyxia

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.