google / cel-go

Fast, portable, non-Turing complete expression evaluation with gradual typing (Go)
https://cel.dev
Apache License 2.0
2.26k stars 220 forks source link

[Policy Compiler] Specify iteration limit in RuleComposer #972

Closed l46kok closed 2 months ago

l46kok commented 3 months ago

For safety and consistency across other optimizer implementations, an iteration limit should be specified, or be configurable. This ensures the optimization work would eventually terminate in case pathologically large ASTs are supplied or there is a bug with the optimizer implementation.