Skip to content

Commit 625d605

Browse files
committed
fix(docker): clear the data-manager image's scan findings
Two unrelated advisories fail the release scan for this image. The Debian runtime carries libexpat1 at the build its base was cut with, which predates the CVE-2026-56408 integer-overflow fix; nothing asks for the package by name, so apt had no reason to move it. Naming it in the install list pulls the patched build. gtfsclean is compiled here from a pinned commit, and its module graph resolved golang.org/x/crypto to a release with a critical ssh advisory. It is pinned the same way x/text already is. That pin also lifts x/text to 0.41.0, since the newer crypto requires it — an upgrade, so the reason the older pin exists still holds.
1 parent 2469106 commit 625d605

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

services/data-manager/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ WORKDIR /tmp/gtfsclean-build
2424
RUN GOPROXY=direct go mod init openmapx.local/gtfsclean-build && \
2525
GOPROXY=direct go get github.com/public-transport/gtfsclean@bb3ea74f66ef9bc07dc1bd038c3f653e10f0ade0 && \
2626
GOPROXY=direct go get golang.org/x/text@v0.39.0 && \
27+
GOPROXY=direct go get golang.org/x/crypto@v0.55.0 && \
2728
GOPROXY=direct go build -trimpath -o /usr/local/bin/gtfsclean github.com/public-transport/gtfsclean
2829

2930
FROM node:24-slim@sha256:6f7b03f7c2c8e2e784dcf9295400527b9b1270fd37b7e9a7285cf83b6951452d AS base
@@ -113,10 +114,14 @@ FROM node:24-slim@sha256:6f7b03f7c2c8e2e784dcf9295400527b9b1270fd37b7e9a7285cf83
113114
WORKDIR /app
114115
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
115116

117+
# libexpat1 is named explicitly because the packages that pull it in are
118+
# satisfied by the base image's older build, which predates the fix for
119+
# CVE-2026-56408.
116120
RUN apt-get update \
117121
&& apt-get install -y --no-install-recommends \
118122
osmium-tool curl unzip bzip2 ca-certificates age \
119123
git python3 python3-pip python3-venv wget rsync openssh-client \
124+
libexpat1 \
120125
&& rm -rf /var/lib/apt/lists/*
121126

122127
# Static Docker CLI so the data-manager can invoke `docker exec` (feed-proxy

0 commit comments

Comments
 (0)