vmod-modsecurity icon indicating copy to clipboard operation
vmod-modsecurity copied to clipboard

Meaning of "unimplemented" constants

Open fizzyduck opened this issue 4 years ago • 3 comments

@xdecock Would you mind explaining what the unimplemented constants below refer to? Some wider context would be really helpful.

https://github.com/xdecock/vmod-modsecurity/blob/9378bffe1b8214423625cfc5eb874b1ec523be04/src/vmod_sec.c#L31

fizzyduck avatar Sep 19 '21 10:09 fizzyduck

Hello, the goal here is to have a fsm with state tracking, i'll need to get back in the middle of the code to be honnest, was coded overnight as a proof of concept, and, i was never sure anybody would use it.

i've just updated the code to compile correctly on varnish 7.

that being said, it might be some left over that are not needed anymore.

the only advantage i see is to only accept certain calls in certain vcl method, it might be useful if the user writing the vcl tries to run methods in bad locations, so it will mainly help have a more defensive vmod.

let me know if this helps. that being said, wrote this a long time ago, i'll need to re-understand the logic

xdecock avatar Sep 01 '22 12:09 xdecock

Hello, the goal here is to have a fsm with state tracking, i'll need to get back in the middle of the code to be honnest, was coded overnight as a proof of concept, and, i was never sure anybody would use it.

It is a brilliant idea, you should not give it up.

iammeken avatar Sep 04 '22 06:09 iammeken

The libModSecurity design allows the integration with bindings. There is an effort to avoid breaking API [binary] compatibility to make an easy integration with possible bindings. Currently, there are two notable projects maintained by the community:

Python - https://github.com/actions-security/pymodsecurity Varnish - https://github.com/xdecock/vmod-modsecurity

iammeken avatar Sep 04 '22 06:09 iammeken