Skip to content

distroless: backport base-nossl swap and production-last stage order to 26.3 - #119493

Merged
motsc merged 1 commit into
26.3from
backport-nossl-26.3
Sep 11, 2026
Merged

motsc merged 1 commit into
26.3from
backport-nossl-26.3

Conversation

@motsc

@motsc motsc commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

26.3 still pins gcr.io/distroless/cc-debian13, so every release on this line ships the 7 packages the base-nossl swap (#107837) removed: gcc-14-base, libgcc-s1, libgomp1, libssl3t64, libstdc++6, libzstd1, zlib1g. ClickHouse statically links all of them, so none are used at runtime.

That is what put a fixable HIGH on the published images: CVE-2026-14456 in libssl3t64 3.5.6-1~deb13u2. The 26.3-distroless floating tags were only cleared by rebuilding them off master (run 34612103488, 23 layers -> 16, Trivy HIGH/CRITICAL 1 -> 0). Without this backport the next release on this line reintroduces it.

Also reorders the stages so production is last. buildx defaults to the final stage when --target is omitted, and on this branch that is the busybox debug image. Defense in depth, matching master.

Only master's two stage blocks are spliced in. Everything above them is untouched, so the branch's ARG VERSION default, wget handling and apt mirror args are preserved. Diff is 18 lines per file, base digests plus stage order and the header comment.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Version info

  • Merged into: 26.3.33.56

…to 26.3

The 26.3 branch still pins gcr.io/distroless/cc-debian13, so every release
on this line ships the 7 packages the base-nossl swap removed
(gcc-14-base, libgcc-s1, libgomp1, libssl3t64, libstdc++6, libzstd1,
zlib1g), none of which ClickHouse uses since it statically links them.
That is what put a fixable HIGH (CVE-2026-14456 in libssl3t64) on the
published 26.3-distroless images until they were rebuilt off master.
Without this backport the next release on this line reintroduces it.

Also reorders the stages so production is last. buildx defaults to the
final stage when --target is omitted, and on this branch that is the
busybox debug image. Defense in depth, matching master.

Splices only master's two stage blocks. Branch-specific content above
them (ARG VERSION default, wget handling, apt mirror args) is unchanged.
@clickhouse-gh

clickhouse-gh Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [54f36c8]

@motsc
motsc merged commit 2094bb6 into 26.3 Sep 11, 2026
24 of 27 checks passed
@motsc
motsc deleted the backport-nossl-26.3 branch September 11, 2026 16:29
@PedroTadim

Copy link
Copy Markdown
Member

kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Sep 18, 2026
… check

Since ClickHouse#119493 swapped the 26.3 distroless base to
`gcr.io/distroless/base-nossl-debian13`, the images have no shell and no
coreutils. The `docker library image test` in `Docker server image` and
`Docker keeper image` still ran the `docker-library/official-images`
global tests against them, so `utc` and `no-hard-coded-passwords` died
with `exec: "date": executable file not found in $PATH` and
`exec: "cut": executable file not found in $PATH`. That makes both jobs
red on every pull request targeting 26.3.

Port master's fix: `config.sh` gains distroless-safe test lists and marks
the distroless image variants as `explicitTests`, so the runner does not
add the global tests, and `test_docker_library` generates a small config
fragment that maps the arch-suffixed local CI tags (the runner derives
`clickhouse/clickhouse-server:head-distroless-amd64` as
`clickhouse/clickhouse-server:amd64`) to those lists.

Verified locally against a fresh clone of
`docker-library/official-images` with the test selection printed instead
of executed: before the change the server distroless image selected
`utc no-hard-coded-passwords override-cmd clickhouse-initdb-skip-user-setup clickhouse-override-tcp-port clickhouse-basics`
(exactly the 6 tests of the failing CI run) and the keeper one selected
`utc no-hard-coded-passwords override-cmd`; after it they select
`clickhouse-basics clickhouse-distroless-no-shell clickhouse-distroless-initdb`
and `clickhouse-distroless-no-shell`.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants