I find myself combining Common Expression Language (https://cel.dev/) into KDL to provide limited filtering/matching behavior.
It would be really convenient to have backticks supported as an alternative set of string delimiters, which could be used for writing expressions.
CEL is a nice fit here because it's explicitly not Turing complete, evaluates fast and has a pretty obvious/intuitive syntax for those operations it does support.
route "/" {
allow `Authorization.username=="me@thing.com"`
documentRoot "/var/www"
}
I find myself combining Common Expression Language (https://cel.dev/) into KDL to provide limited filtering/matching behavior.
It would be really convenient to have backticks supported as an alternative set of string delimiters, which could be used for writing expressions.
CEL is a nice fit here because it's explicitly not Turing complete, evaluates fast and has a pretty obvious/intuitive syntax for those operations it does support.