Skip to content

build(docker): Bump Alpine build and runtime images - #3522

Open
sentry-junior[bot] wants to merge 1 commit into
masterfrom
build/docker-bump-alpine
Open

sentry-junior[bot] wants to merge 1 commit into
masterfrom
build/docker-bump-alpine

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Security maintenance for the ghcr.io/getsentry/sentry-cli image.

  • Build stage: rust:1.91.1-alpine3.20 → rust:1.91.1-alpine3.22. Alpine 3.20 is end of life; this also matches the runtime's Alpine series. The Rust version is unchanged.
  • Runtime stage: alpine:3.22.7 → alpine:3.22.8, still pinned by digest.
  • Runtime stage now runs apk upgrade --no-cache before installing ca-certificates. Even 3.22.8 ships libssl3/libcrypto3 3.5.9-r0, which is affected by CVE-2026-124709 (high); the fixed 3.5.9-r2 is only in the Alpine repo so far. Upgrading at build time keeps the image current between base tag bumps.

The critical OpenSSL CVE-2026-31789 in the current :latest (3.8.2, Alpine 3.22.0) is already fixed on master by #3462, but it only reaches users once a release is cut. A Trivy scan of an image built from this branch reports no known vulnerabilities, compared with 1 critical and 13 high CVEs in :latest.

via Alex Tarasov.

--

View Session [Sentry]

Bump the build stage from rust:1.91.1-alpine3.20, which is end of life,
to rust:1.91.1-alpine3.22, and the runtime base from Alpine 3.22.7 to
3.22.8. Also run apk upgrade in the runtime stage so OpenSSL fixes that
land after the pinned base, such as CVE-2026-124709, ship with the image.

Co-Authored-By: Alex Tarasov <alex.tarasov@sentry.io>
@oioki
oioki marked this pull request as ready for review November 30, 2026 11:54
@oioki
oioki requested review from a team and szokeasaurusrex as code owners November 30, 2026 11:54
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.

0 participants