Skip to content

feat(release): attach per-platform SBOMs to v1 images - #13590

Merged
cv merged 5 commits into
NVIDIA:v1from
deepujain:codex/13522-image-sboms
Oct 23, 2026
Merged

cv merged 5 commits into
NVIDIA:v1from
deepujain:codex/13522-image-sboms

Conversation

@deepujain

@deepujain deepujain commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Narrowed by maintainers

This PR now keeps SBOMs as private draft assets and leaves attestation to final releases:

  • Staging generates one SPDX 2.3 document per platform digest with pinned Syft (a short shell loop) and attaches them to the draft with sboms.json, plus an SBOM table in the release notes.
  • The release-sboms command 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.
  • The v1-release-attestations approval 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.
  • Kept: retaining Cargo.lock in the supervisor and proxy images.

Validation: cargo ci, docker buildx bake check, actionlint and fern check pass. 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

  • Derive platform coverage from the indexes staged by the existing release inventory, including reused agent and proxy images. Pinned Syft generates SPDX JSON from immutable platform references. The Rust integration checks the scanner's source digest and platform, rejects incomplete or invalid evidence, and exposes assets only after every scan succeeds. Fixture tests cover substitution, missing platforms, scanner failures, oversized documents, and reruns; a CLI test checks the saved asset mapping and checksums.
  • Keep digest-named SPDX assets and sboms.json beside 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.
  • Require the v1-release-attestations environment'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 pinned actions/attest attaches the SPDX predicate through OCI referrers. Document verification and partial-failure recovery.

Verification

  • NEXTEST_TEST_THREADS=4 cargo ci passed 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 -- --check and focused Clippy with -D warnings also passed.
  • actionlint .github/workflows/release.yml passed 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-proxy passed 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's sbom-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@64b8aa7f32cc0bcaa2a5672ecb1d6d92a46a7a4f covered .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]

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]>
@copy-pr-bot

copy-pr-bot Bot commented Oct 21, 2026

Copy link
Copy Markdown

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
deepujain marked this pull request as ready for review October 21, 2026 14:07
@deepujain
deepujain requested a review from cv October 21, 2026 14:57
@deepujain

Copy link
Copy Markdown
Collaborator Author

Ready for review at 64b8aa7, fixing #13522, #13516.

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.

@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 platform: container Affects Docker, containerd, Podman, or images labels Oct 22, 2026
cv added 4 commits October 23, 2026 00:09
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
cv enabled auto-merge (squash) October 23, 2026 07:17
@cv
cv merged commit 5e0e842 into NVIDIA:v1 Oct 23, 2026
57 checks passed
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]>
@wscurran wscurran added the v1 NemoClaw v1 branch label Oct 27, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 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: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants