ModSecurity icon indicating copy to clipboard operation
ModSecurity copied to clipboard

Removed code for SecStatusEngine

Open marcstern opened this issue 1 year ago • 10 comments

Removed code for SecStatusEngine. Directives is still allowed but ignored.

marcstern avatar May 28 '24 15:05 marcstern

If you remove SecRemoteRules, everything curl could be removed IMHO from modsec (but not mlogc), which eliminates a big dependency.

fzipi avatar May 28 '24 17:05 fzipi

I think probably splitting this into smaller PRs would be what we want, right? One for SecStatusEngine. Another for SecRemoteRules*?

fzipi avatar May 28 '24 17:05 fzipi

I agree with @fzipi: we should split this PR into more smaller, but I think it's more important that we have to announce that we will eliminate these functions in next(-next) release.

Perhaps in first step we should add a warning message if someone uses any of them, and (if the user checks the logs after startup) then it can be visible our aim.

Also we should make these eliminations in v3 too, in parallel with v2, I guess.

So I would close this PR without merging - what do you think guys?

airween avatar May 28 '24 19:05 airween

Also we should check the CI logs - all builds were fail.

airween avatar May 28 '24 19:05 airween

My bad:

  • SecStatusEngine is obsolete as there's no more server to receive this info.
  • SecRemoteRules isn't obsolete as someone may have created a server to deliver config files

So, we indeed must split the PR. Unless nobody uses SecRemoteRules, we cannot remove it (do we need a poll?). curl dependency must stay as long as SecRemoteRules is supported.

As SecStatusEngine is already broken, I think there's no problem to remove the code, even without announcing it (in advance), as it doesn't do anything already (except potentially introducing a delay).

marcstern avatar May 29 '24 09:05 marcstern

I'm not a fan of the remote rules and namely how it was being implemented, but commercial rule vendors do use this and I am sure there are people who host their own rules centrally and then load them on startup. We have to keep this around for the time being.

dune73 avatar May 29 '24 13:05 dune73

I re-introduced the code for SecRemoteRules & SecRemoteRulesFailAction

marcstern avatar Jun 07 '24 12:06 marcstern

Looks like pipeline is failing...

fzipi avatar Jun 09 '24 13:06 fzipi

Why are the ISSUE_TEMPLATES also being modified in this PR? Maybe move those to a new PR?

fzipi avatar Jun 12 '24 13:06 fzipi