Skip to content

Conversation

griggi-ws
Copy link

@griggi-ws griggi-ws commented Sep 16, 2025

Summary

The management of activated_rules was disabled many years ago for Debian, but in its current state the module does have the appropriate paths defined in the module config to properly manage it. I've removed the condition preventing it and added some test coverage to match that of RHEL.

The custom rules definition currently only supports the definition of SecRules, I considered modifying the existing config to optionally support a more complex input with an enum for action/rule, but decided to minimize complexity there and not affect any existing usage. I've added a custom_actions_set to similarly define SecActions in the same custom rules file. In an ideal implementation, one could define Actions, Rules, and Markers in a given data structure and the order would be respected to allow for more complex rule definition.

I validated this on Ubuntu, but verified that the Debian package has the same file layout for rules:
https://packages.debian.org/trixie/all/modsecurity-crs/filelist

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

@griggi-ws griggi-ws requested review from bastelfreak, ekohl, smortex and a team as code owners September 16, 2025 14:47
@CLAassistant
Copy link

CLAassistant commented Sep 16, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants