Skip to content

Scan v1 release images for known vulnerabilities - #13615

Closed
Adr1an04 wants to merge 6 commits into
NVIDIA:pull-request/13590from
Adr1an04:release-image-vulnerability-assessment
Closed

Adr1an04 wants to merge 6 commits into
NVIDIA:pull-request/13590from
Adr1an04:release-image-vulnerability-assessment

Conversation

@Adr1an04

@Adr1an04 Adr1an04 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Outcome

Add SBOM-based vulnerability assessment to the v1 release workflow. Controlled publication requires a fresh, complete assessment with no blocking High or Critical findings outside reviewed, expiring upstream exceptions.

A scheduled workflow rescans explicitly supported releases and reports findings through GitHub code scanning.

Reason

The v1 images contain OS packages, Fabric Python environments, Node.js packages, runtime bases, and Rust dependencies that the v0 scanning work does not cover.

Release decisions need to account for those contents and distinguish findings that NemoClaw can fix directly from upstream findings requiring a tracked pin update.

I also wanted the reports to make it easier for people to help out. Users and contributors can see what was scanned, understand any exceptions, and follow the issues tracking fixes.

Related issues

Refs #13523.

Depends on #13590 and its per-platform SBOM producer, on top of the release-image workflow from #13516. This PR targets pull-request/13590 while the parent remains open; retarget to v1 after it merges. The upstream SBOM commit and its authorship are preserved.

Changes

  • Validate image inventories, platform coverage, immutable digests, and saved SPDX checksums before scanning.
  • Add Grype assessment with text, JSON, and SARIF reports, including scanner/database identities and actionable failure context.
  • Block High and Critical findings unless an exact upstream exception has reviewed origin evidence, a tracking issue, and a valid expiry.
  • Bind release decisions to the assessed inputs, policy, and controller revision. Recheck registry digests and run another fresh assessment immediately before publication.
  • Add scheduled rescanning for explicitly supported releases, with fresh advisory data and SARIF upload verification.
  • Add representative package qualification and document release approvals, monitoring setup, and evidence limits.

Why I added the docs check

I added this because people following the docs should be pointed at a release that has passed the image checks. The docs job now checks for a published release and a passing assessment before publishing.

If the job runs while release approval is still pending, a maintainer will need to rerun it after publication.

Verification

Hands-on use

I ran release-assess locally on macOS against saved Syft-generated SPDX inventories from public OpenShell gateway images for linux/amd64 and linux/arm64, using Syft 1.55.0 and Grype 0.121.0. I inspected the terminal report for the assessed image digest, scanner and database identity, affected packages, advisory sources, and available fixes. The screenshot below shows that run.

The assessment reported 33 findings per platform. The release gate returned exit 2 with 22 blocking High-severity findings in total and publication_authorized: false. JSON and SARIF retained the same findings.

A separate smoke run exercised a fresh local NemoClaw instance with Pi and a local Qwen model: after targeted follow-up prompts, the agent created, edited, and executed a TypeScript file, returning {"total":38}. The file and execution output were independently checked. This was a runtime smoke check; the release-assessment results are documented above.

GitHub Code Scanning

The SARIF report uploaded successfully to my fork. GitHub processed all 66 findings without errors or warnings. The screenshot below shows one of those alerts.

Additional checks

Check Observed result
Registry digest verification Reobserved original index and platform digests verified. Substituted index or platform digests were rejected.
Incomplete evidence and scanner failure Changed SBOM checksums, missing platforms, and scanner timeouts produced incomplete assessments. The timeout check left no scanner child process.
Package detection across ecosystems A separate acceptance check used metadata-only OCI fixtures on both architectures. Syft and Grype detected targeted OS, Python, npm, and Rust advisories; replacing affected versions removed those specific advisories. A separate clean fixture passed assessment.
Exception and supported-release rules Development tests covered expiry, exact subject matching, upstream origin evidence, unrelated blocking findings, supported-release selection, substituted release evidence, and protected-review checks.

Ran cargo ci --full on macOS at 48553b7e; all steps passed, including the bundle build and contract/lifecycle tests. The Syft/Grype acceptance check passed too. The CLI gate blocked on 22 High findings in the public gateway images. All three changed workflows passed Actionlint.

Screenshots

Local assessment of the public OpenShell gateway image: the report identifies the scanner and database, binds findings to the platform digest, and blocks on High-severity findings.

release-assessment

GitHub Code Scanning showing an ingested finding from the public gateway image.

code-scanning-alert-66-cropped

Review notes

  • Publication remains disabled until maintainer activation, and the supported-release list starts empty.
  • Maintainers must configure protected approvals and install the monitoring dispatcher on the default branch with a reviewed controller revision.

As an outside contributor, I don’t have access to NVIDIA’s internal staged images or protected release environment. Local checks and SARIF ingestion in my fork passed; before enabling publication, if a maintainer can please run the full staged inventory through approvals, publication blocking, and scheduled rescanning we can make sure it all looks good.


Signed-off-by: Adrian Osorio Blanchard [email protected]

cv and others added 6 commits October 21, 2026 15:22
## Failure

Two small Python scripts ran in the agent image's build stage:
`image/fabric/wheel_lock.py` hashed the locally compiled wheels for a
strict install, and `image/fabric/provenance.py` recorded the image's
retained inputs in `provenance.json`. A third, `test_build.py`, tested
the first. `AGENTS.md` keeps Python to images whose workload runs on it,
and these only hash files.

## Decision

Replace them with one POSIX shell script, `image/fabric/inputs.sh`:

- **`inputs.sh lock DIRECTORY`** writes the same `name==version
--hash=sha256:...` requirement for each local wheel. It still fails when
there are no wheels, or two versions of one package.
- **`inputs.sh provenance DIRECTORY`** writes the same JSON keys
(`harness`, `fabric_revision`, `source_sha256`, `requirements_sha256`,
`local_sources`), which `catalog.py` and `cargo images qualify` read.

The Dockerfile calls it in their place, and `test_build.py` goes. The
Python the images run (`catalog.py`, `runtime_metadata.py`, the
reference test adapter, and their tests) stays. A Fabric command that
prints the installed adapters' descriptors would let most of the catalog
code go; I'm filing that with Fabric separately.

## Validation

- `shellcheck` is clean.
- Run directly, the script printed the expected lock line, failed on an
empty directory and on an ambiguous package, and wrote provenance JSON
that parses, including dotfiles and nested files.
- On a DGX Spark, `cargo images build --platform linux/arm64 dummy
deepagents pi` built, and `cargo images qualify` passed for all three,
checking each retained source against the new `provenance.json`.
- `docker buildx bake check` and `cargo ci` passed, including the bundle
and lifecycle steps.
@copy-pr-bot

copy-pr-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance needs: unblock Blocked item needs dependency or decision resolved platform: container Affects Docker, containerd, Podman, or images labels Oct 22, 2026
@copy-pr-bot
copy-pr-bot Bot deleted the branch NVIDIA:pull-request/13590 October 23, 2026 07:29
@copy-pr-bot copy-pr-bot Bot closed this Oct 23, 2026
cv added a commit that referenced this pull request Oct 25, 2026
## Outcome

Add SBOM-based vulnerability scanning to the v1 release workflow, using
the per-platform inventories produced during staging.

Release candidates get a report attached to the private draft. For final
releases, the controlled publisher requires approval and a fresh passing
assessment. High and Critical findings with a published fix block unless
covered by a reviewed, expiring upstream exception. Findings without a
fix remain in the report.

Refs #13523.

#13615 closed automatically when #13590 merged and its temporary branch
was deleted. This continues the same work against `v1`.

## Changes

- Check image digests, platform coverage, and SBOM checksums before
scanning with Grype.
- Produce text and JSON reports, with High and Critical findings
included in SARIF.
- Count unidentified packages and Grype’s built-in suppressed matches
per platform. Report Unknown severities without blocking.
- Support SBOMs up to 256 MiB each and 1 GiB combined. The release
workflow accepts advisory databases up to 72 hours old.
- Require upstream exceptions to identify the affected image and
package, include origin evidence and a tracking issue, and expire.
- Bind the assessment to the release inputs, exception policy, and
controller revision. Recheck registry digests and scan again before
controlled publication.
- Rescan explicitly supported releases on a schedule and report findings
through GitHub Code Scanning.
- Share the download and assessment steps across the release jobs. Stage
metadata bundles from the tagged source.

The qualification helper and docs publication check have been removed.

## Verification

### Full release inventory

Carlos ran `release-gate` against the unmodified `v0.1.0-rc7` inventory:
14 images and 28 SBOMs. That exposed input-size, package-identity,
database-age, and scanner-output assumptions in the original
implementation, which he corrected in `fe5780c`.

After those fixes, the scan completed in 70 seconds and returned
blocked, with 408 blocking findings and 1,834 SARIF results.

His commit also records passing `nemoclaw-build` tests, Clippy, `cargo
ci`, and Actionlint.

### Local checks

Before those changes, I ran the CLI against both platform inventories of
the public OpenShell gateway image and inspected the findings and
blocked result. Altered SBOM checksums and missing platform evidence
were rejected.

I also tested a fresh local NemoClaw deployment with Pi and a local Qwen
model. The agent created, edited, and ran TypeScript; I checked the
files and output from the sandbox. This was a runtime smoke check,
separate from release scanning.

`cargo ci --full`, the Syft/Grype acceptance check, Fern validation, and
workflow linting passed on `5f981e3c`. An earlier SARIF upload from
`48553b7e` was processed successfully in my fork, retaining all 66
findings without errors or warnings. These results predate Carlos’s
fixes.

## Screenshots

Earlier local gateway assessment, before the changes in `fe5780c`.

<img width="1137" height="452" alt="release-assessment"
src="https://github.com/user-attachments/assets/5d679bdb-fbf6-458c-a4d2-e58d094a1965"
/>

An alert from the earlier SARIF upload to my fork.

<img width="1940" height="1000" alt="code-scanning-alert-66-cropped"
src="https://github.com/user-attachments/assets/9c86bd77-6acc-4f89-a006-3f30496d7d1e"
/>

## Remaining validation and setup

Approval, controlled publication, SARIF upload, and scheduled rescanning
have not been exercised in NVIDIA’s environments.

Controlled publication defaults off, and the supported-release list
starts empty. Activation requires protected approvals, supported-release
entries, and the monitoring dispatcher on the default branch with a
reviewed controller revision.

---

Signed-off-by: Adrian Osorio Blanchard <[email protected]>

---------

Signed-off-by: Deepak Jain <[email protected]>
Signed-off-by: Adrian Osorio Blanchard <[email protected]>
Signed-off-by: Carlos Villela <[email protected]>
Co-authored-by: Deepak Jain <[email protected]>
Co-authored-by: Carlos Villela <[email protected]>
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: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance needs: unblock Blocked item needs dependency or decision resolved platform: container Affects Docker, containerd, Podman, or images

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants