Repository navigation
fix: pick up Alpine security fixes in the HyperDX image and drop unused package Dockerfiles - #3773
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
🦋 Changeset detectedLatest commit: aa49918 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🟡 Tier 3 — StandardIntroduces new logic, modifies core functionality, or touches areas with non-trivial risk. Why this tier:
Additional context: touches background tasks or the delivery pipeline lightly (14 lines, under the 30-line bar for Tier 4) Review process: Full human review — logic, architecture, edge cases. Stats
|
Duplicate code analysisNo new duplicate code introduced by this PR. jscpd compared this branch against |
PR Review
2 finding(s): 🔴 1 P0/P1 · 🟡 0 P2 · 🔵 1 P3 None could be anchored to changed lines; they are listed below. 1 P3 folded at the bottom. Findings outside the changed lines
🔵 1 P3 — no action needed before merge
Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides. |
E2E Test Results✅ All tests passed • 474 passed • 1 skipped • 1064s
Tests ran across 4 shards in parallel. |
Deep Review✅ No critical issues found. This is a well-scoped Docker/CI hardening change. The Node bump lands consistently ( 🟡 P2 -- recommended
🔵 P3 nitpicks (1)
Reviewers (5): correctness, reliability, maintainability, project-standards, previous-comments. Testing gaps:
No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond |
f87d03f to
1efb5d2
Compare
…ed package Dockerfiles Run apk upgrade in the prod and all-in-one stages so OpenSSL (3.5.9-r1) and zlib (1.4-r0) fixes land without waiting for new Node and ClickHouse base images. Remove packages/app/Dockerfile and packages/api/Dockerfile: no compose file, Makefile target or workflow has built them since dev moved off them in #567.
The HyperDX image moved to node:22.23.5-alpine; keep CI, tests and the release bootstrap (node-version-file: .nvmrc) on the same version.
Nightly builds pass a constant CODE_VERSION (2-nightly), so the cached apk upgrade layer was reused until the base image moved. Release builds already re-run it: their CODE_VERSION ENV changes every release and sits above the upgrade.
all-in-one-base also installs mongodb from the archived Alpine v3.9 repo; skipping its cache made that mirror a daily dependency of the nightly build. Release builds still re-run the upgrade on every version.
1efb5d2 to
aa49918
Compare
Summary
A grype scan of the HyperDX image flagged OpenSSL (
libssl3/libcrypto33.5.9-r0) andzlib(1.3.2-r1, one critical CVE). Alpine has already shipped the fixes, but thenode:22.23.5-alpineandclickhouse-server:26.10.3.7-alpinebase images haven't been rebuilt with them yet.docker/hyperdx/Dockerfile: runapk upgrade --no-cachein theprodandall-in-one-basestages. In all-in-one it runs before the Alpine v3.9 repos (needed for MongoDB) are appended, so packages resolve from the image's own Alpine release.docker/hyperdx/Dockerfileand.nvmrc, so CI and the image run the same version.packages/app/Dockerfileandpackages/api/Dockerfile. No compose file, Makefile target or workflow builds them. Releases and CI build onlydocker/hyperdx/Dockerfileanddocker/otel-collector/Dockerfile. Dev stopped using them in DX: running api + app + task concurrently with npm script (dev) #567, and the last commented-out reference went in feat: introduce RUN_SCHEDULED_TASKS_EXTERNALLY #733.Still open: the OpenSSL CVEs with no fixed version, and the busybox CVE-2025-60876, which has no fix yet.
How to reproduce
Starting point: a local Docker daemon.
On
main:docker run --rm --user root --entrypoint sh node:22.23.5-alpine -c 'apk list -I | grep -E "^(libssl3|libcrypto3|zlib)-"'shows3.5.9-r0andzlib-1.3.2-r1.On this branch:
--target prod(orall-in-one-noauth) fromdocker/hyperdx/Dockerfilewithmake build-app(or the equivalentdocker build), then run the sameapk list -Iinside the image. It showslibssl3/libcrypto33.5.9-r1andzlib-1.4-r0.How to test on Vercel preview
N/A — non-UI change.
References