Repository navigation
feat(release): attach per-platform SBOMs to v1 images - #13590
Merged
Merged
Conversation
Generate SPDX assets for every staged platform digest and require explicit approval before issuing public SBOM attestations. Preserve image digests and existing Kubernetes metadata bundles. Refs NVIDIA#13522. Signed-off-by: Deepak Jain <[email protected]>
|
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. |
deepujain
marked this pull request as ready for review
October 21, 2026 14:07
Collaborator
Author
|
Ready for review at The v1 release workflow generates an SPDX package inventory for every Linux ARM64 and AMD64 image and keeps each inventory as a draft-release asset. CI, the container images and E2E are green on this head, all commits are verified and no review threads are open. |
Drop the release-sboms command: Syft scans the exact platform reference it is given and writes SPDX itself, and the staging workflow already enforces the release's images and platforms. Signed-off-by: Carlos Villela <[email protected]>
Generate one SPDX document per platform with a short Syft loop, and drop the approval environment and attest jobs: release candidates and internal packages publish nothing, and final releases attest SBOMs together with provenance (NVIDIA#13521). Signed-off-by: Carlos Villela <[email protected]>
Match the narrowed workflow: staging keeps SBOMs as private draft assets, and only final releases attest them, with provenance (NVIDIA#13521). Signed-off-by: Carlos Villela <[email protected]>
cv
enabled auto-merge (squash)
October 23, 2026 07:17
cv
added a commit
that referenced
this pull request
Oct 23, 2026
…digest (#13664) ## Failure Staging `v0.1.0-rc3` took 41 minutes, 30 of them in the stage job, because #13590 scans every release platform image with Syft from the registry, one after another. That's 28 images, including about 10 GB per vLLM platform, downloaded by a runner that built none of them. Before SBOMs the stage job took about 2.5 minutes. ## Decision Scan each image where it is built, and keep the result by digest. - **`.github/scripts/image-sbom.sh`**: given a pushed image, finds its platform manifest digest. If `v1-ci` has no `sbom-DIGEST` yet, it scans the image with the pinned Syft (locally if Docker has it, otherwise from the registry) and pushes the SPDX document there as a tiny `FROM scratch` image. - **Image workflow**: on image-affecting `v1` pushes, it records each agent and proxy image's SBOM right after pushing it. Local scans take about 10–30 seconds per image. - **Staging's runtime jobs**: record the vLLM and Ollama images' SBOMs after building them. Runtime images build reproducibly, so an unchanged image's SBOM is already there and isn't rescanned. vLLM's scan (about 3–6 minutes) is paid only when its inputs change. - **Staging**: copies each release platform's document from `v1-ci` with `docker create` and `docker cp`, and falls back to the registry scan only for an image without one, such as images pushed before this change. - The `sbom-` tags age out with the per-commit images under #13574's pruning. Why not BuildKit's own SBOM attestations: tried on the proxy image, BuildKit's scanner found 1 package where the pinned Syft with the Cargo lockfile cataloger finds 79, including hyper, serde and tokio. It also uses a moving tag, `docker/buildkit-syft-scanner:stable-1`. ## Validation - Against the real `v1-ci` package, on a DGX Spark: - recording an Ollama proxy image's SBOM took 11 s; - a second run found it and skipped scanning (4 s); - copying it out the way staging does gave an SPDX 2.3 document with 79 packages, including the Rust dependencies. - The package stayed internal. - Local scan times with the same Syft: OpenClaw (4.35 GB) in 30 s, vLLM (35.4 GB) in 200 s. - `shellcheck` and `actionlint` are clean, and `fern check` reports 0 errors. - The workflows themselves run at the next image-affecting `v1` push and the next staging. Until then, staging's registry fallback covers images without a stored SBOM.
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 was referenced Nov 20, 2026
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.
Narrowed by maintainers
This PR now keeps SBOMs as private draft assets and leaves attestation to final releases:
sboms.json, plus an SBOM table in the release notes.release-sbomscommand and its Rust checks are removed: Syft scans the exact reference it is given and writes SPDX itself, and the staging workflow already enforces the release's images and platforms.v1-release-attestationsapproval environment and the attest jobs are removed. Release candidates and internal packages publish nothing about their images; final releases will attest SBOMs together with provenance, recorded in Attest build provenance for the published v1 images #13521.Cargo.lockin the supervisor and proxy images.Validation:
cargo ci,docker buildx bake check,actionlintandfern checkpass. A proxy image built from this branch carries/usr/share/doc/nemoclaw-ollama-proxy/Cargo.lock, and the workflow's Syft command finds 79 packages in it, including hyper, serde and tokio.The author's original description follows.
Outcome
The v1 release workflow generates an SPDX package inventory for every Linux ARM64 and AMD64 image and keeps each inventory as a draft-release asset. After explicit approval to disclose the inventories, separate jobs attach and verify SBOM attestations against the same platform digests without rebuilding the images.
Reason
Released images currently have no package inventory for users to inspect or for the vulnerability-scanning follow-up to consume. This builds on the checked-image publishing in #13533, release staging in #13534, and Kubernetes metadata assets in #13566.
Related issues
Refs #13522. Part of #13516. Provenance (#13521), vulnerability policy (#13523), and license review (#13524) remain separate.
Changes
sboms.jsonbeside the existing metadata bundles, and list their mappings in the release notes. Retain the supervisor and proxy package lockfiles in their images so Syft can catalog Rust dependencies without relying on stripped binary metadata.v1-release-attestationsenvironment's approval before jobs with OIDC, attestation-write, or registry-write credentials can issue public evidence. The approval check refuses an environment without required reviewers; its shell policy is exercised against protected and unprotected fixtures. The workflow checks the downloaded asset checksum before pinnedactions/attestattaches the SPDX predicate through OCI referrers. Document verification and partial-failure recovery.Verification
NEXTEST_TEST_THREADS=4 cargo cipassed formatting, Clippy, the workspace build, 1,556 tests, doctests, schema checks, native bundle construction, and 151 lifecycle tests. The first run hit cache contention in an unchanged dependency test; the rerun passed without changing test budgets.cargo test --locked -p nemoclaw-build --no-default-features --test integration release_sboms::passed all six tests on the final fixtures.cargo fmt --all -- --checkand focused Clippy with-D warningsalso passed.actionlint .github/workflows/release.ymlpassed with actionlint 1.7.12. Fern validation passed on the final documentation with Node.js 24.22.0, reporting zero errors and one warning per version.AGENT_PLATFORM=linux/arm64 docker buildx bake --check ollama-proxypassed without warnings. Cargo packaging generated the proxy-specific lockfile, and pinned Syft catalogued 79 packages from it, including Hyper, Serde, and Tokio. This checks metadata discovery, not complete image contents.Live Docker qualification was not run because the local Colima context does not provide the harness's required Docker socket. Runtime recipe checks could not evaluate Bake target contexts with this builder. Actual OS, Python, Node, and Rust coverage in the released images, protected approval, attestation verification (including a mismatched digest), unchanged registry digests, and internal package visibility remain unverified until a separately authorized release validation run.
The diff contains no secrets, API keys, or credentials.
Review notes
Decision: use SPDX JSON with pinned Syft and
actions/attest'ssbom-path, and keep staging assets private until protected approval authorizes public attestation metadata.Reason: users and #13523 need inventories bound to exact image manifests. Attestations from a public repository use public Sigstore infrastructure even when registry packages are internal.
Placement: the release workflow owns generation, draft assets, and approved attachment; the Rust build tool owns complete platform coverage and scanner-result binding. Upstream tools own package discovery, SPDX serialization, and attestation generation.
Validation plan: use fixture and CLI tests for release coverage, denial, and recovery; verify real image contents, environment approval, OCI referrers, digest preservation, and registry visibility in a separately authorized release run. Before that run, an administrator must configure required reviewers and release-tag restrictions on
v1-release-attestations. The initiating maintainer accepted this boundary for the change.Self-review of
deepujain/NemoClaw@64b8aa7f32cc0bcaa2a5672ecb1d6d92a46a7a4fcovered.github/workflows/release.yml, the SBOM integration, and the image metadata recipes. The release workflow is a sensitive path. Review covered input validation, credential scope, approval ordering, digest binding, and partial failures. No independent approval is claimed; independent review and hosted CI remain required. Rust lockfile entries include retained build dependencies and do not claim that every dependency is linked into the executable.Signed-off-by: Deepak Jain [email protected]