Thread View: linux.debian.devel
2 messages
2 total messages
Started by Ervin Hegedus
Sat, 21 Nov 2026 12:20
RFC: packaging OWASP CRS 4 (successor of modsecurity-crs), LTS and regular release lines
Author: Ervin Hegedus
Date: Sat, 21 Nov 2026 12:20
Date: Sat, 21 Nov 2026 12:20
137 lines
8911 bytes
8911 bytes
--lwyNE6VESAXaszpB
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
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.
--lwyNE6VESAXaszpB
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEtxo3V+O4XroZ7QWeX6W8P17EH2EFAmsBi94ACgkQX6W8P17E
H2GoGRAArHvwIt5/19VDD3Y5qfgf672bBKeMqPDnEKdHd+Iz7S8dZPRVNNfzVrVl
zQ5us+lvTdLls1vIOYc2oTlq2BynXvCznOLvfbQRtF5KZRS7ndOVeaKEQf5dn2VA
C2IbbeAudV0I6lUDlfSKZ/LRYzlH1eHo80t/nFi539v6uQOqnv3QYBNV8wwx2sjn
Qs/TI/og9sEB+Faba5tQLJibdV2oxjy6Fg++yjVS+7wzapH73sHLV7SaKOXfVGZD
T9bLtcLvKGFRkdyWz/v6CvrZ+D55+GwQWMZ8EH2g+0xqGvO9Kab+eE6jBWV2HZUu
dJ7GrV88PNE3hWk8/mc8YL4zwV9kL/kt6ynmEFFA/qjNg9X8fZyer5CLXBkP+E3I
5tQWN2ce+Lk1PZ3IVwYtLvQZ+1/nfbJ9/M7f8uBWJu951DL2dqTnCl2RPJ6ijqxM
DqJwYUp12dDfPfTydKLFm7fZzSDpiHhQvngtBZj8+Yko90WimyjGLABZzS1xlZQa
5HXzr1KGslUyJxotybLCDeWVchgOj557dRPVxcLYLRyTl3zyHzRDZ0KQBvs0d7to
dRSCLDjbLgrt/j1ba3gaaTlSUH2eLox8cOHx5M8h/E/wUycdQZnt/727t0u0EKuO
s0qoE3Fv/HBt6v8BFF5qO+gTs7TWOOEdQ957jUWd4eFFJdfp794=
=Ps2G
-----END PGP SIGNATURE-----
--lwyNE6VESAXaszpB--
Re: RFC: packaging OWASP CRS 4 (successor of modsecurity-crs), LTS and regular release lines
Author: Peter Pentchev
Date: Sat, 21 Nov 2026 15:40
Date: Sat, 21 Nov 2026 15:40
62 lines
4509 bytes
4509 bytes
--4LD0Z9b3wSt5yXcV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 21, 2026 at 01:17:37PM +0100, Ervin Hegedus wrote: > Hi Team, >=20 > 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. >=20 > 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. [snip] > 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. Just a note here: you do realize that what goes into the next stable release is exactly what is in testing at the time of the release freeze, right? :) So... if unstable/testing follow the regular line, then, when testing is frozen in preparation for the next stable release, it will contain a package that, at that specific time, is at a higher version than the upstream LTS one. For several reasons it is not a good idea to try to downgrade that package during the pre-release freeze, especially if the downgrade is to a version that has never actually *been* in Debian until that moment :) So I don't really think this is a possible path. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@debian.org peter@morpheusly.com PGP key: https://www.ringlet.net/roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13 --4LD0Z9b3wSt5yXcV Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAmsBt4QACgkQZR7vsCUn 3xO+wRAAg+LMERZqNos89Fqt+9Ptc5V1lzKDI0LT5rr8hK0RziiL+as2IUhdudLq cnua0BswY3f44ZdEbjEQoeDifasMj3WQjneBvsEK5Refby529GgxPcG8T4+nJAGI /uh7EMcjAqSli+Uy+B6wIZPhnO0OJ8kTE4644g6ICRyN8uk3o1Fo1d4wgkQlUGiS pFGnSRLNqN6h9cg5CQE6barElz8NLoBt7AZ2Yjg6biDlVw5hvIuNgvGJQ8XneK4v RSNtWac8nxXky2UuF8mgL8gr4ylozL+NcMKWzjz3Edc4FS6hMQvs2iqifyVc8qfY d2YXGOifT13HKGCTvI6hVZE1HWhYizV48LqKXPGmT4kSFkHGDeIKRpr2fzU5rDZi nI5MnXQrvN5xunaSHACYsyMT1+/edTma4AGodXYN56P529nijw+d5jBE061Zfg0/ BQMhz6V3V3nedSvwXrbevg5LaWez04L0mjAG6zn9sKUQjnqj/i92wwP6ZHxbYBMO k5u0LW73JbzmuA2ayuAdrq25M7NPIJJP5ezSJQoDeRacuYocQ1875gQzcFf9jNOg tseim/3KRAEnTrsnYv/AvIIyPD1Rmi3l6GjyIS0FcKz454xeRsYWZYo8cbbJUFgh FLm2D43rH4p3jZr3euaTtNQXkSqwD/9e8SlS7VaIS5h0PUSRBJ4= =7rfq -----END PGP SIGNATURE----- --4LD0Z9b3wSt5yXcV--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads