Repository navigation
fix(docker): harden runtime images against CVE surface - #123282
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 13, 2026 18:13
Contributor
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Contributor
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
The suite passed process.execPath as the native-host interpreter; on GitHub-hosted runners the hostedtoolcache node binary is group/world- writable, which installChromeExtensionBootstrap correctly refuses, so every registration test failed CI-only. The fixture now provides an owned 0700 interpreter; only the launcher-exec test keeps the real node it must spawn.
…dline The Matrix health-probe loop re-entered when the probe timeout fired marginally before Date.now() crossed the deadline, starting a doomed extra probe. Flaked on contended CI runners as 'expected 1 fetch, got 2'. A timed-out probe now ends discovery.
One-shot boundingBox reads raced the nav-collapse transition and intermittently measured a 20px stale offset on CI.
Contributor
Author
|
Merged via squash.
|
This was referenced Aug 13, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 14, 2026
* fix(docker): harden runtime image dependencies * chore(deps): update container security dependencies * docs(docker): explain image security contents * test(browser): align file-chooser and install tests with openclaw#114506 contract * test(browser): restore extension install test isolation * test(browser): add temporary CI diagnostics for pre-registration refusal * test(browser): make install fixture interpreter hermetic The suite passed process.execPath as the native-host interpreter; on GitHub-hosted runners the hostedtoolcache node binary is group/world- writable, which installChromeExtensionBootstrap correctly refuses, so every registration test failed CI-only. The fixture now provides an owned 0700 interpreter; only the launcher-exec test keeps the real node it must spawn. * fix(qa-lab): stop re-polling after a probe consumes the discovery deadline The Matrix health-probe loop re-entered when the probe timeout fired marginally before Date.now() crossed the deadline, starting a doomed extra probe. Flaked on contended CI runners as 'expected 1 fetch, got 2'. A timed-out probe now ends discovery. * test(ui): poll the callout inset invariant in device-scope E2E One-shot boundingBox reads raced the nav-collapse transition and intermittently measured a 20px stale offset on CI.
This was referenced Oct 8, 2026
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.
What Problem This Solves
Published Docker images carry far more vulnerability-scanner findings than they need to, and third parties have started benchmarking against them (Echo's 2026-08-04 "eliminated 1,400 CVEs" post scans
openclaw:latestandlatest-browseras the unflattering comparison). Reproducing those scans and decomposing every finding shows four self-inflicted contributors on top of the irreducible Debianwont-fixtail:pnpm prune --prodruns at build, but omitted plugins' optional peer dependencies (qa-lab →vitest→vite→postcss) survive the omitted-closure walk in the hoisted layout and ship in/app/node_modules.apt-get dist-upgraderuns, so Debian point-release security fixes newer than the pinned base digest never land (e.g. libgnutls30deb12u7, which fixes 2 Critical CVEs, existed but wasn't in the image).Why This Change Was Made
scripts/prune-docker-plugin-dist.mjs: omitted-plugin removal closure now traverses peerDependencies (including installed optional peers); the kept runtime closure remains authoritative, so nothing needed at runtime can be removed. Regression test added.Dockerfile:apt-get dist-upgrade -yin the runtime stage with a comment naming the contract (point-release fixes must land without waiting for a base-digest refresh); npm CLI upgraded to current with its bundled dependency tree refreshed (dev-tool metadata hidden during the script-free refresh, original manifest restored).honoworkspace override (introduced by routine deps sweep chore: update dependencies across workspace #115677, not a deliberate pin) so it floats to 4.13.2; dompurify 3.4.13; playwright/playwright-core 1.62.0 → 1.62.1 (same Chromium 151.0.7922.34 pin).docs/install/docker.md: documents image contents and scanning posture; fixes a stale sentence that still claimed release builds run no distro upgrade layer.Rebuild cadence for published tags (the remaining staleness class:
latest-browserships Chromium 149 while current Playwright pins 151) is deliberately out of scope — tracked in a follow-up issue.User Impact
/app/node_modules610 MB → 533 MB withvitest,@vitest/*, andpostcssgone. TypeScript intentionally stays (production dependency; Code Mode imports it).docker build --pullget current Debian security state on every rebuild.Evidence
OPENCLAW_INSTALL_BROWSER=1variants both green.openclaw --version(2026.8.1),openclaw plugins list(38/58 enabled), release-workflow workspace-template smoke exit 0, and a live gateway boot serving the Control UI (/and/healthHTTP 200) — exercises the hono 4.13 HTTP seam end to end.vitest/@vitest/postcss;libgnutls30 3.7.9-2+deb12u7;npm 12.0.2;hono 4.13.2;dompurify 3.4.13; Chromium151.0.7922.34in the browser variant./usr/local/lib/node_modules/npm, zero for vitest/postcss/nanoid/@vitest/browser.src/plugins/prune-docker-plugin-dist.test.ts41 tests green; docs MDX check 773 files green;git diff --checkclean.Main-breakage repair: PR #114506 (merged 2026-08-12) added native-host interpreter ownership validation but left
extensions/browser/src/browser/pw-tools-core.last-file-chooser-arm-wins.test.ts,extensions/browser/src/browser/pw-tools-core.screenshots-element-selector.test.ts, andextensions/browser/src/browser/extension-install.test.tsstale and unhermetic in a shard PRs rarely select. The failures reproduce on pristinemain; this PR repairs them per red-main landing policy in commits e232f73, 83ac118, and 253ae3d. The intermediate diagnostic commit 7b670ef is reverted by 253ae3d and disappears in the squash. The pre-existing qa-lab Matrix health-probe deadline race in the extensions-config-3 shard is also fixed here in commit a8371cf.The device-scope UI E2E callout-inset flake is fixed by polling the geometry invariant (commit 51ef132).