Skip to content

Commit 4dd5fa0

Browse files
hasura-botclaude
andauthored
fix(docker): install patched Ubuntu Noble libbrotli1 security update (#24)
Co-authored-by: hasura-bot <hasura-bot@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 24aa01b commit 4dd5fa0

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ This changelog documents the changes between release versions.
66

77
Changes to be included in the next upcoming release
88

9+
## [0.2.9] - 2026.10.28
10+
11+
* Install the patched Ubuntu Noble `libbrotli1` security update (>= `1.1.0-2ubuntu0.1`) in the
12+
base image and fail the build if the patched package is missing
13+
914
## [0.2.8] - 2026.07.27
1015

1116
* Migrate OS base image to private Artifact Registry with `-stable` alias

‎Dockerfile‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
FROM us-docker.pkg.dev/hasura-container-images/external-images/docker.io/library/ubuntu:noble-stable
22

3-
# Install Python 3.12 (Ubuntu Noble default), venv, curl, and git
3+
# Install Python 3.12 (Ubuntu Noble default), venv, curl, and git.
4+
# libbrotli1 is installed explicitly so this layer pulls the patched Ubuntu
5+
# Noble security build (>= 1.1.0-2ubuntu0.1) rather than whatever version the
6+
# base image happens to ship.
47
RUN apt-get update && \
58
apt-get install -y --no-install-recommends \
69
python3 \
710
python3-venv \
811
curl \
9-
git && \
12+
git \
13+
libbrotli1 && \
1014
apt-get clean && \
1115
rm -rf /var/lib/apt/lists/*
1216

17+
# Fail closed: ensure the patched libbrotli1 security update is present so an
18+
# unpatched base image is never silently treated as fixed.
19+
RUN installed_brotli="$(dpkg-query -W -f='${Version}' libbrotli1)" && \
20+
echo "libbrotli1 installed version: ${installed_brotli}" && \
21+
dpkg --compare-versions "${installed_brotli}" ge 1.1.0-2ubuntu0.1 || \
22+
{ echo "ERROR: libbrotli1 ${installed_brotli} is older than required 1.1.0-2ubuntu0.1" >&2; exit 1; }
23+
1324
# Create python symlink for compatibility
1425
RUN ln -sf /usr/bin/python3 /usr/bin/python
1526

0 commit comments

Comments
 (0)