Article View: linux.debian.bugs.dist
Article #5331RFC: packaging OWASP CRS 4 (successor of modsecurity-crs), LTS and regular release lines
From: 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--
Technical Details
Message-ID:
<O1Set-dgI0-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Ervin Hegedus <airween@gmail.com>
Newsgroups: linux.debian.devel,linux.debian.bugs.dist
Subject: RFC: packaging OWASP CRS 4 (successor of modsecurity-crs), LTS and regular release lines
Date: Sat, 21 Nov 2026 13:20:01 +0100
Message-ID: <O1Set-dgI0-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-devel-request@lists.debian.org Sat Nov 21 12:17:56 2026
Old-Return-Path: <airween@gmail.com>
X-Amavis-Spam-Status: No, score=-2.099 tagged_above=-10000 required=5.3
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001]
autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -5.5
X-Gm-Message-State: APuU4Z+8a+0LF9HRG4rA5XKMxHcfTZQipWIGDEIbdZnG2jnnclo8jKHH
NK8SPxrJxEShR0HB1CQ6gBiCBzyak9kux+xtv2Jd/W1IrBA4V69w3u5TsxBCpg==
X-Gm-Gg: AZFdTZdr7UI6NgbvuabpIFmFU+0/n1GYByvXRfUaZwO4F4TwB6McFQiCJlDr/Xz/4H8
RPWbN2Fgdb5GyABbAN9m5dzgR1cN1N5MtPl1wt2WJVROi3vfvUl8r2E/tJ8L950trkb2RcjBHnk
63ds5Vb+YMJEjSYgcF5ahNWTxN1tGazdJhd5MWq2PSSovv2gm+BhIK9VfPEYEJ5sEwYxg9cRDEz
3KyiE8k8lT+ZHcifJfQWGgdwtGOaGdi/oBaqenQEN48OotgtB5p6sxvgLSH1IKFund+BFDF7lbM
ezNK1xWA6Z5zZfug/8vJp/9vVj62O8ZR4oRtajhe3i4UKe3JW/ry0BOxS9kK4c/aHEwC8SSIqiG
lXaUUhyW2Rl0sOerBD1zgVzp1IZRfRGKOKTyiNFehnbsJa3Cmt27LqHom45v/cJw6voKlymTCC7
B63QexZdn6hlPXuZJPrRsiMA+KZdD7EFiF3k0eO5iNN2RCANS8/NnUPUObl+FvdC0moWVV8RC5c
dz186kfrrNrkuWTG0pN9tVtjvRM+dEuYtLLWCj7yKzppbJtobtZ9dhvwhx0e0odoF5PeXlCOHiI
YIxmAQyWuUHVt+8ORvAeH0gGjCIqS4gT0mZVFSlI/Tgwc4AzSou97+aX9c0Ved5odP4BMyPmPd/
/y7qvDOM3PDYPRiRFwsl1qd8muGp/CW4BWMp7
X-Received: by 2002:a05:600c:3b9e:b0:4a1:cf60:dcc3 with SMTP id 5b1f17b1804b1-4bb88820687mr156149825e9.29.1795263460085;
Sat, 21 Nov 2026 04:17:40 -0800 (PST)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="lwyNE6VESAXaszpB"
Content-Disposition: inline
X-Mailing-List: <debian-devel@lists.debian.org> archive/latest/373302
List-ID: <debian-devel.lists.debian.org>
List-URL: <https://lists.debian.org/debian-devel/>
List-Archive: https://lists.debian.org/msgid-search/awGL4R3GhUGhNpGS@arxnet.hu
Approved: robomod@news.nic.it
Lines: 137
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: 1153122@bugs.debian.org
X-Original-Date: Sat, 21 Nov 2026 13:17:37 +0100
X-Original-Message-ID: <awGL4R3GhUGhNpGS@arxnet.hu>