Repository navigation
fix(docker): upgrade libexpat in the dashboard image - #49
Merged
Merged
Conversation
The pinned nginx-unprivileged 1.31-alpine base ships libexpat 2.8.5-r0, which is affected by CVE-2026-77214 (HIGH), fixed in 2.9.0-r0. The base digest for this tag has no fixed build yet, so upgrade just libexpat in the run stage. The step runs as root only for the upgrade and switches back to the unprivileged user 101 immediately after.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The "Container images" CI job fails at "Scan the dashboard image" on
main(a1d7fbf): Trivy reportslibexpat 2.8.5-r0with CVE-2026-77214 (HIGH), fixed in2.9.0-r0.The pinned base
nginxinc/nginx-unprivileged:1.31-alpinestill shipslibexpat 2.8.5-r0(checked by pulling the tag, which resolves to the same digest), so bumping the digest does not help. This change upgrades onlylibexpatin the run stage ofreposilite-frontend/Dockerfile. The step runs as root for the upgrade and switches back to the unprivileged user101immediately after. The image contract (non-root runtime user, no other changes) is unchanged.Closes the failing dashboard scan on main.
Type of change
fix- bug fixfeat- new featurerefactor- internal change without behaviour changeperf- performance improvementdocs- documentation onlytest- tests onlybuild/ci/chore- tooling, dependencies, pipelinesHow was this tested?
Docker's buildx plugin is not installed on the build host, so the image was built with the legacy builder. The only change for that is
--platform=$BUILDPLATFORMreplaced by--platform=linux/amd64in a scratch copy of the Dockerfile (build host is amd64, so the result is identical). The repository file is unchanged in that respect.docker buildof the dashboard image from the repository root: succeeded.apk info/apk policyin the built image:libexpatis2.9.0-r0; the image runs as uid101(docker inspectuser101).aquasec/trivy:0.70.0 image --severity CRITICAL,HIGH --ignore-unfixed --exit-code 1: 0 findings, exit code 0.GET /returns 200.Checklist
CLAUDE.md(English, imperative, one offeat,fix,docs,refactor,test,build,ci,chore,perf)./gradlew buildpasses locally (not affected: only the dashboard Dockerfile changed)