Repository navigation
fix(security): update managed image Vim - #8940
Conversation
Signed-off-by: Senthil Ravichandran <[email protected]>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughManaged base images now use Vim ChangesVim security package upgrade
Estimated code review effort: 3 (Moderate) | ~25 minutes Mergeability Score: 🟡 Moderate · up to The managed-image workflow can treat a fatal Git comparison error as evidence that a Dockerfile changed, potentially building the wrong image instead of failing safely. This merge-readiness issue should be corrected before merging. Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in commit 677bbf1 in the TypeScript / code-coverage/cliThe overall coverage in commit 677bbf1 in the Show a code coverage summary of the most impacted files.
Updated |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Dockerfile.base`:
- Around line 155-158: Update the snapshot comments in Dockerfile.base lines
155-158, agents/hermes/Dockerfile.base lines 125-129, and
agents/langchain-deepagents-code/Dockerfile.base lines 131-135 so jq is
identified with snapshot 20260724T000000Z and Vim with 20260727T143429Z; leave
the snapshot URL values unchanged.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: b8afcf06-0dc8-41e9-a6bf-2d3225ffa3d5
📒 Files selected for processing (11)
DockerfileDockerfile.baseagents/hermes/Dockerfileagents/hermes/Dockerfile.baseagents/langchain-deepagents-code/Dockerfileagents/langchain-deepagents-code/Dockerfile.basedocs/security/managed-base-vim-9.2.0858-dependency-review.mdsrc/lib/sandbox-base-image/security-inventory.tstest/helpers/base-apt-security-functions.tstest/helpers/onboard-script-mocks.cjstest/sandbox-base-security-packages.test.ts
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported Model lanes
Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests. 2 semantic terminology decisionsTerminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.
E2E guidanceAdvisory only. A maintainer can dispatch the default E2E suite for the commit under review. Recommended E2E: None Manual-only E2E: This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Signed-off-by: Senthil Ravichandran <[email protected]>
Signed-off-by: Senthil Ravichandran <[email protected]>
Signed-off-by: Senthil Ravichandran <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/lib/onboard/dockerfile-remote-dashboard-bind-contract.ts`:
- Line 69: Add a direct one-token mutation test for the canonical
security-inventory RUN instruction digest identified by the checked-in digest in
the remote-bind contract tests. Mutate the canonical DockerfileInstruction.text
itself, invoke remote-bind preparation, and assert that it rejects the mutation
while preserving the existing lifecycle coverage.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 79c7ec03-0d94-4cf2-bc61-a83c1a0dfef0
📒 Files selected for processing (1)
src/lib/onboard/dockerfile-remote-dashboard-bind-contract.ts
Signed-off-by: Senthil Ravichandran <[email protected]>
Signed-off-by: Senthil Ravichandran <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
test/managed-image-publication-workflow.test.ts (1)
535-539: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick winExercise the changed resolver branch through behavior.
The matrix assertion relies on array order, and the resolver checks search source text. In the shown execution,
BASE_SHAandCANDIDATE_SHAare identical, sogit diff --quiettakes the unchanged path. These checks do not prove that the local rebuild uses the correct Dockerfile or emits the local reference.Assert the mapping by
agent. Add a scenario with two valid commits whoseBASE_DOCKERFILEdiffers. Verify the emitted local reference and that registry alias resolution is skipped.As per path instructions: “Review tests for behavioral confidence rather than implementation lock-in. Prefer observable outcomes through the public boundary over source-text, private-shape, or mock-call assertions.”
Also applies to: 554-558, 912-917, 922-922
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@test/managed-image-publication-workflow.test.ts` around lines 535 - 539, Update the workflow tests around the matrix assertions to map results by agent rather than relying on array order. Add a scenario using distinct valid base and candidate commits with different BASE_DOCKERFILE values, then verify through the public workflow result that the local rebuild emits the expected local reference and registry alias resolution is not used. Apply the same behavioral assertions to the related cases at the other referenced sections.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/managed-images.yaml:
- Around line 413-425: Update the git comparison logic around `git diff --quiet`
to capture and inspect its exit status directly: build the local base only for
status 1, continue normally for status 0, and fail the workflow for statuses
greater than 1. Remove the negated condition so fatal comparison errors,
including invalid revisions, cannot be treated as Dockerfile changes.
---
Nitpick comments:
In `@test/managed-image-publication-workflow.test.ts`:
- Around line 535-539: Update the workflow tests around the matrix assertions to
map results by agent rather than relying on array order. Add a scenario using
distinct valid base and candidate commits with different BASE_DOCKERFILE values,
then verify through the public workflow result that the local rebuild emits the
expected local reference and registry alias resolution is not used. Apply the
same behavioral assertions to the related cases at the other referenced
sections.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: b3e21f90-887f-454b-b710-b25cd4af00e0
📒 Files selected for processing (2)
.github/workflows/managed-images.yamltest/managed-image-publication-workflow.test.ts
Signed-off-by: Senthil Ravichandran <[email protected]>
Signed-off-by: Senthil Ravichandran <[email protected]>
Signed-off-by: Senthil Ravichandran <[email protected]>
<!-- markdownlint-disable MD041 --> ## Summary Upgrade Vim in all three managed base images from Debian `2:9.2.0782-1` to checksum-pinned `2:9.2.0858-1`. The new package pair contains the published fixes for `CVE-2026-73070`, `CVE-2026-73072`, `CVE-2026-73074`, `CVE-2026-73076`, `CVE-2026-73077`, and `CVE-2026-73078`. ## Changes - Download the matching `vim-common` and architecture-specific `vim-tiny` packages from Debian Snapshot `20260727T143429Z`. - Verify the reviewed SHA-256 values before installation and reject unsupported architectures. - Assert the exact dpkg identities, Vim patch range `1-858`, completed-image inventory, and clean package state across OpenClaw, Hermes, and Deep Agents Code. - Reject a stale runtime patch range in every base and completed-image path. - Record the artifact identities, security concern, removal condition, and remaining multi-architecture publication gate. - Register the updated completed-image verification instruction in the existing remote-dashboard lifecycle integrity contract. ## Type of Change - [ ] Code change (feature, bug fix, or refactor) - [x] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Quality Gates - [x] Tests added or updated for changed behavior - [ ] Existing tests cover changed behavior — justification: - [ ] Tests not applicable — justification: - [ ] Docs updated for user-facing behavior changes - [x] Docs not applicable — justification: The package update changes no user-facing command, configuration, policy, or workflow; the repository-owned security dependency review is included. - [x] Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging) - [x] Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: Codex Desktop reviewed commit `8abd6e3fa` against all nine security-rubric categories and found no actionable issue. Artifact downloads remain HTTPS-only, checksum-pinned, architecture constrained, and fail before installation on integrity errors. - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## Documentation Writer Review - [x] Documentation writer subagent reviewed the completed changes - Result: `docs-updated` - Evidence: `docs/security/managed-base-vim-9.2.0858-dependency-review.md` records the Vim package identities, security concern, affected image boundaries, removal condition, and remaining publication and rescan gate. The merge from current `main` does not change the PR documentation impact; the lifecycle and managed-image CI contract updates preserve existing documented behavior and need no additional documentation. - Agent: Codex Desktop <!-- docs-review-head-sha: 677bbf1 --> <!-- docs-review-agents-blob-sha: c4923a3 --> ## DGX Station Hardware Evidence - [ ] Tested on DGX Station - Tested commit: Not applicable - Station profile/scenario: Not applicable; `scripts/prepare-dgx-station-host.sh` is unchanged. - Result: Not applicable - Supporting evidence: Not applicable ## Verification - [x] PR description includes a `Signed-off-by:` line and every commit appears as `Verified` in GitHub - [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or `npm run validate:pr` passed after refreshing `origin/main` when hooks were skipped or unavailable - [x] Targeted behavior tests pass for the current change set, or tests are marked not applicable above — the remote-dashboard lifecycle, managed security-package, and managed-image workflow suites pass, 94 tests total; repository checks and the source-shape security contract pass. - [ ] Applicable broad gate passed — GitHub CI remains the authoritative broad and multi-architecture image gate. - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) — the build passed with zero errors and two existing Fern warnings. - [x] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) — this Markdown security review includes the required SPDX header; frontmatter is not used for this directory. --- Signed-off-by: Senthil Ravichandran <[email protected]> --------- Signed-off-by: Senthil Ravichandran <[email protected]> Co-authored-by: Prekshi Vyas <[email protected]> (cherry picked from commit efce512)
Summary
Upgrade Vim in all three managed base images from Debian
2:9.2.0782-1to checksum-pinned2:9.2.0858-1.The new package pair contains the published fixes for
CVE-2026-73070,CVE-2026-73072,CVE-2026-73074,CVE-2026-73076,CVE-2026-73077, andCVE-2026-73078.Changes
vim-commonand architecture-specificvim-tinypackages from Debian Snapshot20260727T143429Z.1-858, completed-image inventory, and clean package state across OpenClaw, Hermes, and Deep Agents Code.Type of Change
Quality Gates
8abd6e3faagainst all nine security-rubric categories and found no actionable issue. Artifact downloads remain HTTPS-only, checksum-pinned, architecture constrained, and fail before installation on integrity errors.Documentation Writer Review
docs-updateddocs/security/managed-base-vim-9.2.0858-dependency-review.mdrecords the Vim package identities, security concern, affected image boundaries, removal condition, and remaining publication and rescan gate. The merge from currentmaindoes not change the PR documentation impact; the lifecycle and managed-image CI contract updates preserve existing documented behavior and need no additional documentation.DGX Station Hardware Evidence
scripts/prepare-dgx-station-host.shis unchanged.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 unavailablenpm run docsbuilds without warnings (doc changes only) — the build passed with zero errors and two existing Fern warnings.Signed-off-by: Senthil Ravichandran [email protected]