From df32391bf4511352a27248c42db766da28444566 Mon Sep 17 00:00:00 2001 From: "HomePC\\Kevin" Date: Fri, 4 Dec 2026 07:42:38 +0100 Subject: [PATCH] fix(build): pin the CrowdSec user-agent data --- docker/production/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index 03a50b52..e2abef28 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -135,10 +135,13 @@ RUN test "$(go env GOOS)/$(go env GOARCH)" = "$TARGETOS/$TARGETARCH" \ FROM ghcr.io/crowdsecurity/crowdsec:v1.8.2 AS crowdsec-assets COPY docker/crowdsec/hub/data.sha256 /tmp/rentnerproxy-crowdsec-hub-data.sha256 -# The pinned Hub scenario fetches a moving upstream list. Use the revision selected by the manifest. +# Pinned Hub scenarios can fetch moving upstream lists. Use the revision selected by the manifest. ADD --checksum=sha256:be1fad9b6d99346c07fd5f7f6110d497397383c14fdfa6fe59236fa6e52c3a13 \ https://raw.githubusercontent.com/crowdsecurity/sec-lists/f9df076079c31e50bf3fcd8abd0b25d4a1e1c904/web/sensitive_data.txt \ /tmp/rentnerproxy-crowdsec-sensitive-data.txt +ADD --checksum=sha256:01043130f44d9b51a162390e1326fb4fe558b80ca0cbdbd4d29d1135b5c8728c \ + https://raw.githubusercontent.com/crowdsecurity/sec-lists/f9df076079c31e50bf3fcd8abd0b25d4a1e1c904/web/bad_user_agents.regex.txt \ + /tmp/rentnerproxy-crowdsec-bad-user-agents.regex.txt RUN set -eux; \ mkdir -p /etc/crowdsec /var/lib/crowdsec /opt/rentnerproxy/crowdsec-config; \ cp -a /staging/etc/crowdsec/. /etc/crowdsec/; \ @@ -153,6 +156,7 @@ RUN set -eux; \ cscli -c /etc/crowdsec/config.yaml collections install crowdsecurity/caddy --force --error >/dev/null; \ cd /var/lib/crowdsec/data; \ install -m 0644 /tmp/rentnerproxy-crowdsec-sensitive-data.txt sensitive_data.txt; \ + install -m 0644 /tmp/rentnerproxy-crowdsec-bad-user-agents.regex.txt bad_user_agents.regex.txt; \ sha256sum -c /tmp/rentnerproxy-crowdsec-hub-data.sha256; \ rm -f /etc/crowdsec/local_api_credentials.yaml \ /etc/crowdsec/online_api_credentials.yaml; \