Hi Team, I maintain modsecurity-crs, which packages OWASP CRS 3.3.x. Upstream support for CRS 3 has ended, and I am preparing to package CRS 4 under a new name, owasp-crs (upstream renamed the project, because the rules are no longer specific to ModSecurity). The question of which upstream line to package came up in #1153122.
I have not started the packaging yet, and I would like to hear opinions
on the planned direction and advice on the points below first.
1. Upstream release model
Upstream (OWASP CRS) now has two release lines:
- a regular release line (currently 4.30.x), with new detections and
features in every minor release;
- a long-term support line (currently 4.25.x), which only receives
security fixes, regression fixes and critical false positive fixes.
The rule set is data, not code, so a new release mostly means changed
regular expressions and word lists. Users of a web application firewall
expect detection updates during the lifetime of a stable release, much
like antivirus signatures.
Until now, new CRS 3.3.x releases went to unstable, and security fixes
were backported to stable as patches.
My questions:
a) My current plan (as I wrote in #1153122) is to provide both lines,
as two source packages, e.g. owasp-crs (regular line) and
owasp-crs-lts (LTS line). They would install the same files, so
they would have to conflict with each other, or use separate paths.
Is this acceptable, and which of the two variants is preferred?
b) An alternative with a single package: unstable/testing follow the
regular line, and at freeze time the current LTS line goes into the
next stable release. During the lifetime of stable, new LTS point
releases are uploaded through stable-proposed-updates (or as
security updates when they fix a vulnerability). Is this a
reasonable model, and has the release team accepted new upstream
point releases of a data-only package like this before?
c) The upstream LTS support period is much shorter than the lifetime
of a Debian stable release plus LTS: support for the current LTS
line (4.25.x) ends in Q3 2027, see
https://coreruleset.org/20260321/announcing-crs-v4-25-lts/
What is the usual practice when the upstream support of the version
in stable ends earlier? Moving stable to the next upstream LTS line
through a point release, or something else?
2. Policy aspects of the new package
- Name: owasp-crs, following the upstream project name ("OWASP CRS").
Is there any objection to this name?
- Dependencies: modsecurity-crs currently only suggests the Apache
module ("Suggests: libapache2-mod-security2 (>= 2.9.6)"). The rules
work with both ModSecurity v2 (Apache) and libmodsecurity3 (nginx),
and are useless without one of them, so I plan:
Recommends: libapache2-mod-security2 | libnginx-mod-http-modsecurity
Is Recommends appropriate here, or should it stay at Suggests?
- Generated regular expressions: many regular expressions in the rule
files are generated from sources (regex-assembly/*.ra), which are
part of the upstream tarball, by an upstream tool (crs-toolchain,
written in Go, not packaged in Debian). Upstream CI checks on every
change that the regular expressions in the rule files are identical
to what the toolchain generates from the .ra sources.
rule set: https://github.com/coreruleset/coreruleset
.ra sources:
https://github.com/coreruleset/coreruleset/tree/main/regex-assembly
toolchain: https://github.com/coreruleset/crs-toolchain
CI check:
https://github.com/coreruleset/coreruleset/blob/main/.github/workflows/lint.yaml
I plan to ship the rule files as they are, and NOT to regenerate the
regular expressions at build time, at least for now. The source
(.ra files) is in the source package, and README.source would
document how to regenerate them.
The reason is that crs-toolchain evolves together with the rule set:
when the structure of the regular expressions changes or new syntax
is introduced in the .ra files, a newer toolchain is needed.
Regenerating at build time would tie every CRS version to a specific
toolchain version, so crs-toolchain would have to be packaged and
kept in sync, including in stable when an LTS update is uploaded.
This would make updates much harder, without changing the result,
because upstream already guarantees that the shipped regular
expressions match the sources.
Packaging crs-toolchain and regenerating at build time remains
possible later, if it turns out to be needed. Is shipping the
generated regular expressions acceptable for now?
- Transition: the package replaces modsecurity-crs, but CRS 4 is not
configuration compatible with CRS 3, so I would not provide a
transitional package. I plan Breaks/Replaces where file paths
overlap, dpkg-maintscript-helper for the obsolete conffiles, and a
NEWS.Debian entry. Anything else I should take care of?
Once the direction is clear, I will file an ITP and prepare the
package.
Thanks for any advice,
a.
signature.asc
Description: PGP signature

