Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(docker): widen libssl pin to 3.0.*, fix hobby installer apt-key (#62652)

Julian Bezcf31c32c27d0
diff --git a/Dockerfile b/Dockerfile
index 4db108d43171..5dcd524ae9a0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -289,7 +289,9 @@ RUN apt-get update && \
"libxmlsec1=1.2.37-2" \
"libxmlsec1-openssl=1.2.37-2" \
"libxml2" \
- "libssl3=3.0.19-1~deb12u2" \
+ # libssl pinned to the 3.0 series (ABI-stable), not an exact version: Debian rotates
+ # point releases out of the security archive, which breaks exact pins on uncached builds.
+ "libssl3=3.0.*" \
"libjemalloc2" \
&& \
rm -rf /var/lib/apt/lists/*
diff --git a/Dockerfile.node b/Dockerfile.node
index 04c47ff3ac19..8d8b3f08d6cb 100644
--- a/Dockerfile.node
+++ b/Dockerfile.node
@@ -29,8 +29,10 @@ RUN apt-get update && \
"librdkafka1=2.10.1-1.cflt~deb12" \
"librdkafka++1=2.10.1-1.cflt~deb12" \
"librdkafka-dev=2.10.1-1.cflt~deb12" \
- "libssl-dev=3.0.19-1~deb12u2" \
- "libssl3=3.0.19-1~deb12u2" \
+ # libssl pinned to the 3.0 series (ABI-stable), not an exact version: Debian rotates
+ # point releases out of the security archive, which breaks exact pins on uncached builds.
+ "libssl-dev=3.0.*" \
+ "libssl3=3.0.*" \
"zlib1g-dev" \
&& \
rm -rf /var/lib/apt/lists/*
@@ -100,7 +102,9 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends --allow-downgrades \
"librdkafka1=2.10.1-1.cflt~deb12" \
"librdkafka++1=2.10.1-1.cflt~deb12" \
- "libssl3=3.0.19-1~deb12u2" \
+ # libssl pinned to the 3.0 series (ABI-stable), not an exact version: Debian rotates
+ # point releases out of the security archive, which breaks exact pins on uncached builds.
+ "libssl3=3.0.*" \
"curl" \
"gettext-base" \
"libjemalloc2" \
diff --git a/Dockerfile.recording-rasterizer b/Dockerfile.recording-rasterizer
index 1a4923a10bfb..70cbf23f5640 100644
--- a/Dockerfile.recording-rasterizer
+++ b/Dockerfile.recording-rasterizer
@@ -27,8 +27,10 @@ RUN apt-get update && \
"librdkafka1=2.10.1-1.cflt~deb12" \
"librdkafka++1=2.10.1-1.cflt~deb12" \
"librdkafka-dev=2.10.1-1.cflt~deb12" \
- "libssl-dev=3.0.19-1~deb12u2" \
- "libssl3=3.0.19-1~deb12u2" \
+ # libssl pinned to the 3.0 series (ABI-stable), not an exact version: Debian rotates
+ # point releases out of the security archive, which breaks exact pins on uncached builds.
+ "libssl-dev=3.0.*" \
+ "libssl3=3.0.*" \
"zlib1g-dev" \
&& \
rm -rf /var/lib/apt/lists/*
@@ -106,7 +108,9 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends --allow-downgrades \
"librdkafka1=2.10.1-1.cflt~deb12" \
"librdkafka++1=2.10.1-1.cflt~deb12" \
- "libssl3=3.0.19-1~deb12u2" \
+ # libssl pinned to the 3.0 series (ABI-stable), not an exact version: Debian rotates
+ # point releases out of the security archive, which breaks exact pins on uncached builds.
+ "libssl3=3.0.*" \
# ffmpeg intentionally unpinned: tracks the latest bookworm candidate so security point-updates flow in on rebuild
"ffmpeg" \
# Shared libraries required by chrome-headless-shell
diff --git a/bin/hobby-installer/core/docker.go b/bin/hobby-installer/core/docker.go
index bb6ce0964000..3ee29f1e5dd8 100644
--- a/bin/hobby-installer/core/docker.go
+++ b/bin/hobby-installer/core/docker.go
@@ -74,11 +74,15 @@ func InstallDocker() error {
logger.WriteString("Installing Docker...\n")
+ // apt-key was removed in Ubuntu 25.10; use the modern signed-by keyring approach instead.
+ // See https://docs.docker.com/engine/install/ubuntu/ and issue #54406.
commands := [][]string{
{"apt", "update"},
- {"apt", "install", "-y", "apt-transport-https", "ca-certificates", "curl", "software-properties-common"},
- {"sh", "-c", "curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -"},
- {"add-apt-repository", "-y", "deb [arch=amd64] https://download.docker.com/linux/ubuntu jammy stable"},
+ {"apt", "install", "-y", "apt-transport-https", "ca-certificates", "curl", "gnupg"},
+ {"install", "-d", "-m", "0755", "/etc/apt/keyrings"},
+ {"sh", "-c", "curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg"},
+ {"chmod", "a+r", "/etc/apt/keyrings/docker.gpg"},
+ {"sh", "-c", "echo 'deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu jammy stable' > /etc/apt/sources.list.d/docker.list"},
{"apt", "update"},
{"apt", "install", "-y", "docker-ce"},
}