Repository navigation
fix(web): upgrade brotli-libs and curl in the dashboard image - #816
Conversation
publish-edge on master (run 41107014011) fails the Trivy gate on the web image only. The nginx-unprivileged:1.31-alpine base (last rebuilt 2026-10-19) ships brotli-libs 1.2.0-r1 (CVE-2026-111497, CRITICAL) and curl/libcurl 8.22.0-r0 (CVE-2026-92392, HIGH). Alpine 3.24 has the fixed 1.2.1-r0 and 8.23.0-r0, so install them as root and switch back to uid 101. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Install runtime packages web/Dockerfile |
The Dockerfile installs brotli-libs ~=1.2.1, curl ~=8.23.0, and libcurl ~=8.23.0 as root, then switches back to uid 101. |
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Other
Suggested labels: type: fix, type: security, area: web
Merge Risk: 
Minimal · up to 2d9ea
-
The package upgrade has no identified merge-blocking risk.
Pre-merge checks: 
4
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
CI Report - 2d9ea54run 41149798563 - attempt 1 0 failed - 22 passed - 11 skipped - 32m46s elapsed Test selection: partial - per-suite table Coverage
Changed
Slowest jobs
e2e buckets run
|
Why
publish-edgeon master (run 41107014011, the #814 merge) fails the Trivy gate on the web image only; all other images pass. From the job log (both linux/amd64 and linux/arm64, Alpine 3.24.2):All three come from the base image
nginxinc/nginx-unprivileged:1.31-alpine, last rebuilt upstream on 2026-10-19, so re-running the job won't help. Alpine v3.24 already ships the fixed versions.Change
web/Dockerfilefinal stage: switch to root,apk add --no-cache brotli-libs~=1.2.1 curl~=8.23.0 libcurl~=8.23.0(pinned liketunnel/Dockerfile.playit, satisfies hadolint DL3018), thenUSER 101back to the base image's unprivileged nginx user. No scan settings or ignore lists touched.The upgrade can be dropped once upstream rebuilds
1.31-alpinewith these versions.🤖 Generated with Claude Code
Summary by CodeRabbit
Generated by Claude Code