Repository navigation
fix(images): align curl with current Debian security libraries - #13158
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 2fb6eaa in the Show a line coverage summary of the most impacted files.
TypeScript / code-coverage/cliThe overall line coverage in commit 2fb6eaa in the Show a line coverage summary of the most impacted files.
Updated |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
Signed-off-by: Deepak Jain <[email protected]>
|
@coderabbitai full review |
✅ Action performedFull review finished. |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
rsliter
left a comment
There was a problem hiding this comment.
Approved commit 2fb6eaa694576ed33d922652518b657d884bd44c against base abf42f10a54617128c1464d33592164356660e43.
Evidence:
- The diff updates all nine curl pins across five Dockerfiles. The contract test checks every affected install stage.
- Both Pi qualification receipt SHA-256 values match the repository-controlled candidate authority.
- Required checks are complete with no failure or pending result. CodeRabbit reported no actionable finding. All nine PR Review Advisor specialists reported clear on this commit.
- Advisor-recommended E2E selector
pi-agent-qualificationpassed for candidate commit2fb6eaa694576ed33d922652518b657d884bd44cin run 38547568803, attempt 1. The retained evidence binds the candidate commit, reports the Pi target passed, and confirms all four cleanup actions passed. No main comparison is needed because the selected E2E passed. - Security review: PASS in all nine categories. The change adds no credential, input, authorization, logging, cryptography, or network-policy surface. Exact package pins, receipt digests, candidate authority, contract coverage, managed-runtime security checks, credential-isolation checks, and cleanup evidence preserve the existing fail-closed boundaries.
No blocking defect found.
## Outcome Fresh OpenClaw sandboxes created through the accepted Deferred N1x Express Qwen preview default to progressive tool disclosure. The smaller tool list leaves room for a reply in the 32,768-token local model. Explicit disclosure requests and recorded sandbox choices keep their existing precedence. The branch also includes main's merged curl repair (#13158), so the ARM64 local Dockerfile fallback can install matching curl/libcurl packages. Its nine curl pins and Pi qualification receipts match main. ## Reason #12968 made direct disclosure the default for fresh local Ollama and vLLM routes in v0.0.133 to address the Gemma/Ollama tool-search failure in #12106. On the N1x Qwen recipe, exposing all tools nearly fills the context window and exposes OpenClaw's input-token estimate problem. A fresh greeting can receive a one-token output allowance and produce no usable reply. This mitigation uses existing configuration. OpenClaw source, the model, context window, and GPU memory settings remain unchanged. The development branch's local build was also blocked because pinned curl `deb13u5` requires the same libcurl revision, while APT selects `deb13u7`. The branch now carries the merged `deb13u7` repair and its qualification evidence. ### Related issues Fix #13088 Refs #12106, #12968, #13158. ## Changes - Select progressive disclosure for a fresh, session-owned reservation on the accepted N1x vLLM/Qwen route with matching model metadata. - Keep direct defaults for other local routes, including Gemma/Ollama. Preserve explicit selections and recorded choices. - Cover accepted and rejected routes, mismatched reservations, explicit selections, and saved choices in the sandbox-handler tests. - Merge main's qualified curl repair into the testing branch. These image inputs already match main and add no separate image changes to the PR diff. ## Verification - [Manual N1x TUI validation](#13173 (comment)) on checkout `b045e8569401f1da6e142d8c62254ceb5272bce2`: the tester sent `Hellooo` and received `Hey. What's up?`, with approximately 11k/33k context use (34%). A read-only check confirmed the host checkout and three tool-disclosure source files match the PR. - Focused Vitest run with `--project integration --project cli`: 243 tests across seven suites passed after the base merge. Selection: `node-tar-dockerfile-contract`, `bundled-npm-brace-expansion-dockerfile-contract`, `bundled-npm-ip-address-dockerfile-contract`, `sandbox-base-security-packages`, `native-security-packages`, `sandbox-tool-disclosure`, and `sandbox-resume`. - `docker buildx build --platform linux/arm64 --target npm12 --file Dockerfile --load .` on N1x: passed with the original pinned Node base. curl and libcurl both installed at `8.14.1-2+deb13u7`; npm's tar, brace-expansion, and ip-address remediation checks passed. The exercised Dockerfile SHA-256 is `d79d7c13530ac8b34e999811b9fd8a760690490eb81b2619add3177b896eed57`, matching this branch. - Five Dockerfile/security suites on ARM64: 159 tests passed before the main merge added five curl-pin assertions. - Hadolint for all five affected Dockerfiles, Oxfmt, normal commit hooks, and `git diff --check`: passed. - Isolated OpenClaw 2026.9.2 tests on base `abf42f10a54617128c1464d33592164356660e43`: direct disclosure sent 49 tools/31,387 input tokens and failed with one output token. Progressive sent 11 tools/10,652 first-call input tokens and answered a greeting. Execution returned `391` for `17*23`; tool search, description, and invocation completed a session-status request. These were embedded-agent configuration tests, not fresh Express/TUI validation. - The QA checkout's modified lockfile, tool-disclosure files, host package inventory, and running vLLM container identity/start time remained unchanged by the curl repair. The owned validation image tag was removed. - Installed pre-push publication validation and CLI typecheck: passed in the credential-isolated boundary. GitHub verified all three feature-branch commits. - Reviewed diff contains no secrets, API keys, or credentials. ## Review notes Self-review covers NVIDIA/NemoClaw commit `b045e8569401f1da6e142d8c62254ceb5272bce2` and all three sensitive PR paths under `src/lib/onboard/machine/handlers/`. The prior commit's nine Advisor specialists completed in [run 38575577290](https://github.com/NVIDIA/NemoClaw/actions/runs/38575577290). Seven reported clear results. The documentation finding is deferred to post-merge docs catch-up under AGENTS.md; the guide and command-reference changes must describe the fresh N1x exception and explicit-selection precedence. Advisor also raised a scope concern about the earlier #13088 closure. That issue has since reopened for investigation. This PR preserves the explicitly requested configuration mitigation and contains no upstream monkeypatch. Independent maintainer review of the scope remains required before merge; no approval or waiver is claimed. The reported manual TUI greeting passed. A fresh Express onboarding run tied to the final commit and longer-session/compaction behavior still need hardware validation. The curl verification covers the `npm12` stage; a complete local sandbox build remains untested. Existing sandboxes keep their recorded disclosure mode. --- Signed-off-by: San Dang <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Eligible N1x Qwen managed vLLM previews now use progressive tool disclosure when preview intent is accepted. Explicitly selected disclosure settings continue to take precedence, and other provider or model combinations keep their existing behavior. * **Bug Fixes** * Recorded tool disclosure settings are preserved when resuming N1x Qwen sandboxes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: San Dang <[email protected]>
## Outcome Launch-readiness publication and reuse accept a current-user home with group-write permission, including `0775` with `umask 0002`. NemoClaw keeps its existing private state locations and leaves the home permissions unchanged. ## Reason The readiness store applied the application-state permission rule to the containing home directory. A private NemoClaw state tree was rejected solely because the home was group-writable. This change follows OpenClaw's native handling of private application state more closely. ### Related issues Refs #10638 for the group-writable-home reproduction. Other causes of unsafe readiness state remain outside this proved repair. ## Changes - Permit group write only on the current user's home during inspection, parent-directory sync, and revalidation. Retain directory ownership and identity, symlink rejection, other-write rejection, private-state modes, and runtime-authority checks. - Keep permission evidence accurate when other-write access causes a home rejection. - Bind directory creation, receipt reads, staging writes, publication renames, and cleanup to retained Linux directory handles. A replaced home path is rejected without redirecting an operation into the replacement. - Cover publication and reload on default and custom gateway ports under `umask 0002`, with unsafe-state and world-writable-home denials. - Exercise the boundary in the existing `full-e2e` launch scenario on disposable GitHub runners. A fixture removes only the test sandbox's readiness receipt, runs the existing producer and two PTY sessions under a `0775` home, and requires the resulting lease to be valid. It restores the original home mode and umask on success, launch failure, and invalid-lease rejection. Local and preinstalled Launchable execution retain their original permission handling. - Refresh the nine existing curl package pins to Debian `8.14.1-2+deb13u7` and update the existing version assertion. This resolves the separate curl/libcurl APT mismatch without adding library pins or changing other package versions. The Dockerfile values match the repair merged in #13158. ## Verification - Core readiness, launch, and connect-flow regression selection: 220 passed after the previously failing default/custom-port cases were repaired. Six Linux-only cases are skipped on macOS. - Pinned Linux Node image as an unprivileged UID with read-only source and dependencies: 57 passed, with one unrelated platform-specific case skipped. This includes state-root and descendant creation swaps, fence staging and cleanup, publication rename, direct receipt read, and restrictive-umask coverage. - Fixture and gateway support tests: 25 passed. The invalid-lease regression failed before the fixture guard and passes with it. The existing Linux-only PTY helper test remains owned by Linux CI. - Exact committed-ref live/fast parity, assertion-budget check, CLI typecheck, growth guardrails, signed commit hooks, and normal publication hooks passed. No assertion budget or existing live deadline was changed. - Curl image-contract selection: 71 tests passed. Current Debian security metadata publishes matching curl/libcurl `8.14.1-2+deb13u7` packages for AMD64 and ARM64. - Current commit `f5435ac29b7a5242d1431a1f95b268ebc09ed2dd` is GitHub Verified. [Main PR CI](https://github.com/NVIDIA/NemoClaw/actions/runs/38601153764) passed on attempt 1, including all twelve CLI shards and pinned-v1 compatibility. [Rootless Linux validation](https://github.com/NVIDIA/NemoClaw/actions/runs/38601153715) passed on attempt 1; its digest-authenticated receipts bind the exact candidate to successful lifecycle recovery, authenticated routes, receipt-owned transaction, and cleanup. - The complete [managed-image workflow](https://github.com/NVIDIA/NemoClaw/actions/runs/38601154046) passed on attempt 1: both Pi architectures, Deep Agents staging, all three direct image startup jobs, and exact all-agent activation on Docker and rootless Podman. - Trusted [Docker qualification](https://github.com/NVIDIA/NemoClaw/actions/runs/38609577010) passed on attempt 1 for `full-e2e`, `onboard-repair`, both resume scenarios, `rebuild-openclaw`, and `rebuild-hermes`. Its authenticated full-E2E artifact binds candidate `f5435ac29b7a5242d1431a1f95b268ebc09ed2dd`, workflow `45a898e2b70839a5a728fd5dedaa450110da075c`, and Docker execution. The live log records `mode=775 umask=2 receipt=absent` before the real producer and two PTY sessions, then `mode=775 lease=valid sessions=2`; all eleven scenario phases and five registered cleanup operations passed. The fixture restoration path returned without error. Exact post-restoration mode and umask values are asserted by the focused tests but are not separately retained in the live artifact. - [Self-hosted PR qualification](https://github.com/NVIDIA/NemoClaw/actions/runs/38616972240) passed after the PR became ready: AMD64 and ARM64 image builds, Hermes root-entrypoint behavior, the managed OpenClaw boundary, port override, and non-root sandbox startup all passed. The unselected GPU lane was skipped. - The previous curl/libcurl APT conflict is resolved by the approved curl-only update. No library pins, other dependency upgrades, workflow changes, or base integration were added. - The diff contains no secrets, API keys, or credentials. ## Review notes The final exact-head [Advisor reevaluation](https://github.com/NVIDIA/NemoClaw/actions/runs/38614298144) has all nine findings ledgers clear, zero E2E recommendations, and a passing blocker gate. Earlier reviews identified the parent-path replacement case repaired by `f5435ac29b7a5242d1431a1f95b268ebc09ed2dd`, requested the combined live evidence supplied above, and once missed the [existing Linux-only caller gate](https://github.com/NVIDIA/NemoClaw/blob/f5435ac29b7a5242d1431a1f95b268ebc09ed2dd/test/e2e/live/full-e2e.test.ts#L1314-L1322). Those reviews were resolved with the repair and exact evidence; no finding is waived. [CodeRabbit full review](#13133 (comment)) covered all thirteen files through exact head `f5435ac29b7a5242d1431a1f95b268ebc09ed2dd` and produced no actionable comments. Its docstring warning is advisory. The curl-only repair was self-reviewed against the retained failing log, Debian metadata, all nine install locations, and the same package versions already merged in #13158. The production readiness code and its live fixture are unchanged by that dependency repair. Two independent source reviews found no remaining issue in the retained-directory repair. --- Signed-off-by: Aaron Erickson <[email protected]> --------- Signed-off-by: Aaron Erickson <[email protected]>
Outcome
Restore managed-image package installation on AMD64 and ARM64 by aligning every curl pin with the current Debian security libraries.
Root cause and first observed failure
The Dockerfiles pin
curlto8.14.1-2+deb13u5. That package requires the identicallibcurl4t64version. In the failing build, APT selectedlibcurl4t64revision8.14.1-2+deb13u7and rejected the incompatible pair:This is an inherited package-resolution failure, not a regression introduced by Slice 3 (#12889). The affected Dockerfiles did not change between the passing and failing commits. The failure occurs during image construction, before runtime tests.
4b553d3, passed and completed October 13 at 11:42 PM Pacific.4571804, started October 13 at 11:55 PM Pacific. The package error appeared at 11:55:51 PM.Earlier passing builds do not guarantee later package resolution against external package repositories. The logs establish the version conflict, but do not establish when the Debian repository changed. They provide no evidence that a new Slice 3 code change caused it.
The current build needs a compatible curl/libcurl pair. This PR aligns all nine curl pins across five Dockerfiles with the selected security revision. Both architecture simulations resolve successfully, and the complete Managed Images workflow passes with the fix. Repeating the unchanged failing build does not repair the version conflict.
Related issues
Refs #12889. This is its separate image-build dependency repair.
Changes
8.14.1-2+deb13u7, preserving other package versions and integrity checks.482dd1305efd85d386757998fc8980de035f8b61, workflow38530733040, attempt 1.Verification
7fc1bc5: full CI, the entire Managed Images workflow, and portable rootless Linux passed. Authenticated Docker and Podman activation artifacts each show 28 inference requests, 13 passing phases, and owned-resource cleanup. These results qualify the parent, not this new commit.2fb6eaa694576ed33d922652518b657d884bd44c: full CI, entire Managed Images, and portable rootless Linux passed. All seven image contracts/activation archives were authenticated; Docker and Podman each recorded 28 inference requests, 13 passing phases, and verified owned-resource cleanup.2fb6eaa694: all nine selected jobs passed; six unselected jobs were skipped. Authenticated artifacts confirm the OpenClaw security boundary, six Hermes root-entrypoint scenarios, secret isolation, and successful recorded cleanup. Port override and non-root smoke checks also passed.Review notes
Self-review covers NVIDIA/NemoClaw commit
2fb6eaa694576ed33d922652518b657d884bd44c, including the sensitive Hermes, Deep Agents Code and Pi base Dockerfiles. The parent received a complete CodeRabbit review with no actionable findings and all nine Advisor reports. Advisor identified one reproducible curl-pin coverage gap, repaired by this test-only follow-up. The current full nine-file CodeRabbit review has no actionable findings. All nine PR Advisor specialists and the final gate passed; authenticated reports cover the exact candidate/base and complete nine-file diff. Rebecca Sliter approved this candidate on October 14. GitHub confirms merge asf4de239dc8802027cd66266e59fbc6ec2d24a985. No qualification waiver is claimed. Selected Pi qualification passed on attempt 1: 1 test, all 7 phases, no provider or workflow retries, and all 4 cleanup actions passed. The authenticated evidence binds CLI2fb6eaato the checked-in AMD64 image receipt from482dd13, with image-source parity verified. Final NemoClaw and OpenShell inventories are empty; gateway registration and temporary Docker credentials were removed. The Pi target is Docker-only and does not require Podman toolchain staging. The Docker regression selections passed on attempt 1: 14 applicable workflow jobs passed, zero failed, and 25 unselected jobs were skipped. All 10 runtime jobs passed, including both architectures, OpenClaw and Hermes lifecycle, both Hermes inference routes, both security profiles, and Deep Agents Code cloud lifecycle. All 10 runtime archives match GitHub digests and bind the candidate commit and dispatch correlation; recorded cleanup has no failures. Required Podman regression coverage remains incomplete because trusted main still uses unavailable toolchain artifacts; #13129 tracks restoration. The merge does not establish this missing qualification.Signed-off-by: Deepak Jain [email protected]
Summary by CodeRabbit
Bug Fixes
Chores