You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across the modsecurity-crs-docker project [1], which follows unusual rules for their docker image versioning.
For example, for release 4.9.0-nginx-202412020312:
4.9.0 represents the "modsecurity" release, e.g. see [3]
202412020312, but more specifically the 8 digits 20241202 represent the "modsecurity docker image" release, see [4]
With wud.tag.transform we can map this to ^(\d+\.\d+\.\d+)-nginx-(\d\d\d\d\d\d\d\d)\d+$$ => $$1-$$2 and get the <major>.<minor>.<bugfix> and <prerelease> variables separately, and calculate semver releases correctly.
But wud.link.template only allows 1 link per container, and, in this case, we need 2 different wud.link.template:
A suggestion would be allow to set a global wud.link.template=..., and then allow overriding it on specific releases, e.g. wud.link.template.prerelease=....
Is this something easy / acceptable to have in WUD ?
The text was updated successfully, but these errors were encountered:
lmrts
changed the title
[Feature Request] Allow to override "link.template" based on type of release (major, minor, bugfix, prerelease)
Feature Request: Allow to override "link.template" based on type of release (major, minor, bugfix, prerelease)
Dec 11, 2024
I came across the
modsecurity-crs-docker
project [1], which follows unusual rules for their docker image versioning.For example, for release
4.9.0-nginx-202412020312
:4.9.0
represents the "modsecurity" release, e.g. see [3]202412020312
, but more specifically the 8 digits20241202
represent the "modsecurity docker image" release, see [4]With
wud.tag.transform
we can map this to^(\d+\.\d+\.\d+)-nginx-(\d\d\d\d\d\d\d\d)\d+$$ => $$1-$$2
and get the<major>.<minor>.<bugfix>
and<prerelease>
variables separately, and calculate semver releases correctly.But
wud.link.template
only allows 1 link per container, and, in this case, we need 2 differentwud.link.template
:<major>.<minor>.<bugfix>
-> https://github.com/coreruleset/coreruleset/releases/tag/v$${major}.$${minor}.$${patch}<prerelease>
-> https://github.com/coreruleset/modsecurity-crs-docker/releases/tag/release%2F$${prerelease}A suggestion would be allow to set a global
wud.link.template=...
, and then allow overriding it on specific releases, e.g.wud.link.template.prerelease=...
.Is this something easy / acceptable to have in WUD ?
[1] https://github.com/coreruleset/modsecurity-crs-docker/
[2] https://github.com/coreruleset/modsecurity-crs-docker/pkgs/container/modsecurity-crs
[3] https://github.com/coreruleset/coreruleset/releases
[4] https://github.com/coreruleset/modsecurity-crs-docker/releases
The text was updated successfully, but these errors were encountered: