exein-io / pulsar

A modular and blazing fast runtime security tool for the IoT, powered by eBPF.
https://pulsar.sh
Other
905 stars 51 forks source link

rule-engine: support methods and unary expressions in rules dsl #233

Closed banditopazzo closed 8 months ago

banditopazzo commented 10 months ago

This PR adds the folowing features:

The final goal is to be able to check the following expression as condition:

header.container_info.is_some()

This PR also want to add full support for Option<T> fields. The syntax to access a field of an optional type is for example:

header.container?.image == "archlinux"

Current state