Repository navigation
fix(images): pin the current Debian security releases in image builds - #86
Merged
Merged
Conversation
Debian removed several pinned package versions from the trixie archive, so the base and tools image builds fail without the Docker cache. - Base images: pin ca-certificates 20250419+deb13u1, zlib1g-dev +deb13u1, xz-utils 5.8.1-1+deb13u2, and glibc 2.41-12+deb13u5. - Security package inventory: expect glibc deb13u5. The inventory for the digest-pinned Hermes sandbox base keeps deb13u4. - Tools images: the perl-modules stage installs libc6-dev and libc-dev-bin 2.41-12+deb13u4 from snapshot.debian.org, matching the libc6 in the published base images. - Tools images: pin chromium-common, which apt 3.0 no longer selects for chromium while the controlled packages are held. Closes #85 Signed-off-by: Derek Hsu <derekhsu@hotmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI on #86 showed three more failures once the images built again. - Deep Agents Code: build the PR base from its Dockerfile.base. The pinned upstream base predates glibc 2.41-12+deb13u5. - Tools images: pin chromium and chromium-common at the trixie-security release 156.0.8078.108-1~deb13u1, which fixes the HIGH findings in 156.0.8078.79. - OpenClaw Standard: move Homebrew to 7.0.16. Its portable Ruby 4.0.10 carries msgpack 1.8.7 (CVE-2026-126366) and json 3.1.0, so the CVE-2026-33210 exception no longer matches a finding and is removed. Refs #85 Signed-off-by: Derek Hsu <derekhsu@hotmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fork's agents/langchain-deepagents-code/Dockerfile.base copies four files that the fork does not have, so the PR build cannot build its base from it. Restore the pinned upstream base. Its glibc deb13u4 no longer matches the security inventory; #87 tracks that check. Refs #85 Signed-off-by: Derek Hsu <derekhsu@hotmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
derekhsu
added a commit
that referenced
this pull request
Nov 24, 2026
Bring in #86 so the image checks build on the current Debian pins. Signed-off-by: Derek Hsu <derekhsu@hotmail.com>
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.
Summary
Debian removed several package versions that the image builds pin, so the base and tools image builds fail without the Docker cache. This is why
Hermes Tools Verify,OpenClaw Tools Verify, andPR build and direct managed startupfail on #84. This change pins the versions that the trixie archive has now and keeps the tools images on thelibc6of their published base images.Related Issue
Closes #85
Changes
The four
Dockerfile.basefiles (Dockerfile.base,agents/hermes-01x/,agents/hermes/,agents/langchain-deepagents-code/) now pin:ca-certificates=20250419+deb13u1zlib1g-dev=1:1.3.dfsg+really1.3.1-1+deb13u1xz-utils=5.8.1-1+deb13u2, in the two files that still pinneddeb13u1libc6andlibc-bin2.41-12+deb13u5dos2unixalready uses7.5.2-1*, which matches the current7.5.2-1+b1.The security package inventory (
src/lib/sandbox-base-image/security-package-specs.tsand its copy,scripts/security/standalone-security-package-inventory.mts) now expects glibcdeb13u5. The inventory for the digest-pinned Hermes sandbox base (hermes-compatible) keepsdeb13u4, the same way it keeps the older Python htmlparser fix. That base predates the update.Dockerfile.toolsandagents/hermes-01x/Dockerfile.tools: theperl-modulesstage needslibc6-devat exactly the base image'slibc6version. The published base images holdlibc6 2.41-12+deb13u4, but the archive now has onlydeb13u5. The stage now installslibc6-devandlibc-dev-bin2.41-12+deb13u4fromsnapshot.debian.org. The downloads are pinned by SHA-256, and the SHA-1 of each file matches the snapshot record. Only this build stage uses them; the final image does not include them. The published base images do not change.tools/openclaw-tools-image/apt-packages-browser.txtpinschromiumandchromium-commonat156.0.8078.108-1~deb13u1. trixie-security replaced156.0.8078.79, and the tools Trivy gate reported HIGH findings in it. Withchromiumpinned to the older release, apt 3.0 did not select the olderchromium-commonon its own, so both are pinned. The fixture's version check follows.Not fixed here:
PR build and direct managed startup (Deep Agents Code)fails. Its PR build uses a pinned upstream base with glibcdeb13u4, which no longer matches the inventory, and the fork'sagents/langchain-deepagents-code/Dockerfile.basecannot build because four files it copies are missing. fix(images): Deep Agents Code 的固定 base 不符 glibc deb13u5 受控套件清單 #87 tracks it.Dockerfile.base:HOMEBREW_VERSION=7.0.16. ChangingDockerfile.baseruns OpenClaw Standard Verify, which reportedCVE-2026-126366(HIGH) inmsgpack1.8.5from Homebrew7.0.12's portable Ruby4.0.9. Homebrew7.0.16ships portable Ruby4.0.10withmsgpack1.8.7andjson3.1.0(both bottles checked against Homebrew's SHA-256 pins). TheCVE-2026-33210entry inci/trivy-standard-image-exceptions.jsonno longer matches a finding, and the gate fails on unused entries, so it is removed.Tests: the expected inventory, the
dpkg-querymocks, and the published-Hermes-base case are updated.Docs:
docs/modification/2026-10-31-openclaw-tools-image.md(§3.1, §3.2, §6.3) anddocs/security/openclaw-2026.9.2-dependency-review.md(Homebrew 7.0.16).Type of Change
Quality Gates
PR build and direct managed startup (Deep Agents Code), follow-up fix(images): Deep Agents Code 的固定 base 不符 glibc deb13u5 受控套件清單 #87; awaiting maintainer acceptance.Documentation Writer Review
docs-updateddocs/modification/2026-10-31-openclaw-tools-image.md,docs/security/openclaw-2026.9.2-dependency-review.md. Two reviews ran, one per commit. The second found stale present-tense text about the removed exception and a date style; both were applied. The first review found one accuracy issue in §6.3: the text called the base image'slibc6deb13u4, but theDockerfile.basefiles now pin deb13u5. I applied the suggested wording before the commit. It found no other doc that needs changes; olderdocs/security/mentions of deb13u4 are dated reviews.npm run docsdoes not apply:docs/modification/is not part of the Fern site.DGX Station Hardware Evidence
Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailablenpx vitest run test/runtime/sandbox/sandbox-base-security-packages.test.ts119 passed. The 64 test files that read the Dockerfiles or the inventory: 1285 passed and 5 failed when run together. Run alone, those 3 files pass (59 tests); with the same tests, the base branch fails 2 insrc/commands/image/stage.test.ts.hadolintpasses on all six changed Dockerfiles.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result:npm run docsbuilds without warnings (doc changes only)Not verified locally: no image was built for this change. The local Docker storage has a damaged btrfs block, so the user chose to let CI verify the builds. On the first CI run, the Hermes and OpenClaw base builds passed and all four tools images built, including the
libc6-devsnapshot step on both OpenClaw bases. The follow-up commit addresses the remaining failures above.cli-test-shards (6)timed out inhost-local-vllm-selection.test.ts, as on #84, andreviewed-npm-audithit an npm registry fetch error; neither relates to this change.Signed-off-by: Derek Hsu derekhsu@hotmail.com
🤖 Generated with Claude Code