Skip to content

fix(security): update managed image Vim - #8940

Merged
senthilr-nv merged 10 commits into
mainfrom
codex/security-vim-9-2-0858
Aug 13, 2026
Merged

senthilr-nv merged 10 commits into
mainfrom
codex/security-vim-9-2-0858

Conversation

@senthilr-nv

@senthilr-nv senthilr-nv commented Aug 13, 2026 •

Copy link
Copy Markdown
Collaborator

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)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification: The package update changes no user-facing command, configuration, policy, or workflow; the repository-owned security dependency review is included.
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • 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

  • 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

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

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub
  • 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
  • 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.
  • Quality Gates section completed with required justifications or waivers
  • 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.
  • Doc pages follow the style guide (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]>
@senthilr-nv senthilr-nv self-assigned this Aug 13, 2026
@coderabbitai

coderabbitai Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Managed base images now use Vim 9.2.0858-1. Dockerfiles, inventories, tests, checksums, snapshot URLs, runtime patch checks, architecture rejection, dependency documentation, Dockerfile attestation, and managed-image base resolution were updated.

Changes

Vim security package upgrade

Layer / File(s) Summary
Package acquisition
Dockerfile.base, agents/*/Dockerfile.base
Base images use dedicated Debian Snapshots, updated checksums, and Vim 9.2.0858-1 package paths.
Image verification and inventory
Dockerfile, agents/*/Dockerfile, src/lib/sandbox-base-image/security-inventory.ts
Managed images require Vim version 2:9.2.0858-1, patches 1-858, and updated inventory records.
Security test coverage
test/helpers/*, test/sandbox-base-security-packages.test.ts
Tests validate package versions, URLs, checksums, runtime patch output, checksum rejection, stale patch ranges, and unsupported riscv64 architectures.
Dependency review record
docs/security/managed-base-vim-9.2.0858-dependency-review.md
The review records package provenance, verification requirements, vulnerability disposition, rollback conditions, and required build evidence.
Dockerfile security attestation
src/lib/onboard/dockerfile-remote-dashboard-bind-contract.ts, ci/source-shape-test-budget.json, test/dashboard-remote-bind-lifecycle.test.ts
The canonical digest allowlist and lifecycle test cover rejection of mutated checked-in security inventory instructions.
Managed-image base resolution
.github/workflows/managed-images.yaml, test/managed-image-publication-workflow.test.ts
PR matrix entries identify agent-specific base Dockerfiles. The resolver builds a local base image when the base Dockerfile changes and otherwise uses registry digest resolution.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Mergeability Score: 🟡 Moderate · up to cd5d4

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: area: security, bug-fix

Suggested reviewers: apurvvkumaria, prekshivyas, cv

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely identifies the security fix to update Vim in managed images.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/security-vim-9-2-0858

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in commit 677bbf1 in the codex/security-vim-9... branch remains at 96%, unchanged from commit a44610a in the main branch.

TypeScript / code-coverage/cli

The overall coverage in commit 677bbf1 in the codex/security-vim-9... branch remains at 82%, unchanged from commit a44610a in the main branch.

Show a code coverage summary of the most impacted files.
File main a44610a codex/security-vim-9... 677bbf1 +/-
src/lib/onboard...ixed-forward.ts 100% 77% -23%
src/lib/inferen...ollama/proxy.ts 36% 33% -3%
src/lib/onboard...ind-contract.ts 96% 93% -3%
src/lib/adapter...ateway-drift.ts 61% 60% -1%
src/lib/onboard...eway-process.ts 90% 90% 0%
src/lib/sandbox...rce-identity.ts 86% 86% 0%
src/lib/sandbox...rsion-scheme.ts 100% 100% 0%
src/lib/actions...ence-gateway.ts 82% 91% +9%
src/lib/actions...ocker-health.ts 61% 78% +17%

Updated August 13, 2026 03:04 UTC

@github-actions

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between a504d67 and af2a73f.

📒 Files selected for processing (11)
  • Dockerfile
  • Dockerfile.base
  • agents/hermes/Dockerfile
  • agents/hermes/Dockerfile.base
  • agents/langchain-deepagents-code/Dockerfile
  • agents/langchain-deepagents-code/Dockerfile.base
  • docs/security/managed-base-vim-9.2.0858-dependency-review.md
  • src/lib/sandbox-base-image/security-inventory.ts
  • test/helpers/base-apt-security-functions.ts
  • test/helpers/onboard-script-mocks.cjs
  • test/sandbox-base-security-packages.test.ts

Comment thread Dockerfile.base Resolved
@github-actions

github-actions Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings reported

Advisor assessment: No blocking advisor findings reported
Next action: No advisor follow-up needed.
Findings: 0 blockers · 0 warnings · 0 suggestions

Model lanes

  • GPT-5.6 Terra (primary): Completed · medium confidence · 0 blockers · 0 warnings · 0 suggestions
  • Nemotron 3 Ultra (second opinion): Failed after a partial review · low confidence · 1 blocker · 1 warning · 0 suggestions

Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests.

2 semantic terminology decisions

Terminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.

  • justified — Vim patch range at test/sandbox-base-security-packages.test.ts:266: Keep `Vim patch range` for the runtime assertion and its stale-range regression tests.
  • justified — completed-image security inventory at test/dashboard-remote-bind-lifecycle.test.ts:144: Keep `completed-image security inventory` where the final-image instruction must be distinguished from base-image inventory creation.

E2E guidance

Advisory only. A maintainer can dispatch the default E2E suite for the commit under review.

Recommended E2E: None

Manual-only E2E: cloud-inference, cloud-onboard, full-e2e, hermes-e2e, hermes-inference-switch, managed-image-multiarch-startup, security-posture, onboard-repair, onboard-resume, ubuntu-repo-cloud-langchain-deepagents-code
The manual PR workflow does not run these selectors for the commit under review. Run them from reviewed code on main.

Workflow run details

This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 43e7ac4 and 983e7ea.

📒 Files selected for processing (1)
  • src/lib/onboard/dockerfile-remote-dashboard-bind-contract.ts

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
test/managed-image-publication-workflow.test.ts (1)

535-539: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Exercise 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_SHA and CANDIDATE_SHA are identical, so git diff --quiet takes 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 whose BASE_DOCKERFILE differs. 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

📥 Commits

Reviewing files that changed from the base of the PR and between a6d7989 and cd5d47d.

📒 Files selected for processing (2)
  • .github/workflows/managed-images.yaml
  • test/managed-image-publication-workflow.test.ts

Comment thread .github/workflows/managed-images.yaml Resolved
@senthilr-nv
senthilr-nv merged commit efce512 into main Aug 13, 2026
72 of 76 checks passed
@senthilr-nv
senthilr-nv deleted the codex/security-vim-9-2-0858 branch August 13, 2026 03:07
prekshivyas added a commit to HOYALIM/NemoClaw that referenced this pull request Aug 13, 2026
<!-- 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)
@wscurran wscurran added the bug-fix PR fixes a bug or regression label Aug 25, 2026
@wscurran wscurran added the area: ci CI workflows, checks, release automation, or GitHub Actions label Nov 5, 2026
@wscurran wscurran added area: packaging Packages, images, registries, installers, or distribution area: security Security controls, permissions, secrets, or hardening platform: container Affects Docker, containerd, Podman, or images labels Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: packaging Packages, images, registries, installers, or distribution area: security Security controls, permissions, secrets, or hardening bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants