Repository navigation
Conversation
## 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.
Signed-off-by: Adrian Osorio Blanchard <[email protected]>
Signed-off-by: Adrian Osorio Blanchard <[email protected]>
Signed-off-by: Adrian Osorio Blanchard <[email protected]>
Signed-off-by: Adrian Osorio Blanchard <[email protected]>
Signed-off-by: Adrian Osorio Blanchard <[email protected]>
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]>
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.
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/13590while the parent remains open; retarget tov1after it merges. The upstream SBOM commit and its authorship are preserved.Changes
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-assesslocally on macOS against saved Syft-generated SPDX inventories from public OpenShell gateway images forlinux/amd64andlinux/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
2with 22 blocking High-severity findings in total andpublication_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
Ran
cargo ci --fullon macOS at48553b7e; 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.
GitHub Code Scanning showing an ingested finding from the public gateway image.
Review notes
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]