Skip to content

Commit 2ad69d0

Browse files
authored
pin app-protect module version to 4.8.1 (nginx#5409)
1 parent d3ae937 commit 2ad69d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ RUN --mount=type=bind,from=alpine-fips-3.17,target=/tmp/fips/ \
140140
&& cp -av /tmp/fips/etc/ssl/openssl.cnf /etc/ssl/openssl.cnf \
141141
&& cp -av /tmp/ot/usr/local/lib/libjaegertracing*so* /tmp/ot/usr/local/lib/libzipkin*so* /tmp/ot/usr/local/lib/libdd*so* /tmp/ot/usr/local/lib/libyaml*so* /usr/local/lib/ \
142142
&& ldconfig /usr/local/lib/ \
143-
&& apk add --no-cache app-protect app-protect-attack-signatures app-protect-threat-campaigns
143+
&& apk add --no-cache app-protect=~31.4.815 app-protect-attack-signatures app-protect-threat-campaigns
144144

145145

146146
############################################# Base image for Debian with NGINX Plus #############################################
@@ -200,7 +200,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
200200
## end of duplicated code
201201
&& if [ -z "${NGINX_AGENT##true}" ]; then apt-get install --no-install-recommends --no-install-suggests -y nginx-agent; fi \
202202
&& if [ -z "${NAP_MODULES##*waf*}" ]; then \
203-
apt-get install --no-install-recommends --no-install-suggests -y app-protect app-protect-attack-signatures app-protect-threat-campaigns; \
203+
apt-get install --no-install-recommends --no-install-suggests -y app-protect=31+4.815* app-protect-attack-signatures app-protect-threat-campaigns; \
204204
fi \
205205
&& if [ -z "${NAP_MODULES##*dos*}" ]; then \
206206
apt-get install --no-install-recommends --no-install-suggests -y app-protect-dos; \
@@ -276,7 +276,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
276276
&& dnf --nodocs install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
277277
&& rpm --import /tmp/app-protect-security-updates.key \
278278
&& if [ -z "${NAP_MODULES##*waf*}" ]; then \
279-
dnf --nodocs install -y app-protect app-protect-attack-signatures app-protect-threat-campaigns; \
279+
dnf --nodocs install -y app-protect-31+4.815* app-protect-attack-signatures app-protect-threat-campaigns; \
280280
fi \
281281
# fix for CVEs
282282
&& dnf upgrade -y curl ncurses \
@@ -324,7 +324,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
324324
&& dnf --nodocs install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \
325325
&& rpm --import /tmp/app-protect-security-updates.key \
326326
&& if [ -z "${NAP_MODULES##*waf*}" ]; then \
327-
dnf --nodocs install -y app-protect app-protect-attack-signatures app-protect-threat-campaigns; \
327+
dnf --nodocs install -y app-protect-31+4.815* app-protect-attack-signatures app-protect-threat-campaigns; \
328328
fi \
329329
&& if [ -z "${NAP_MODULES##*dos*}" ]; then \
330330
dnf --nodocs install -y app-protect-dos; \

0 commit comments

Comments
 (0)