Skip to content

fix(images): publish compatible llama.cpp signatures - #13667

Merged
ericksoa merged 4 commits into
mainfrom
fix/12206-llama-signature-compat
Oct 23, 2026
Merged

ericksoa merged 4 commits into
mainfrom
fix/12206-llama-signature-compat

Conversation

@ericksoa

@ericksoa ericksoa commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Outcome

Future llama.cpp publications include both Sigstore bundles and a legacy image signature. Publication receipts require existing modern verification and anonymous verification with Cosign 2.6.1's default mode.

Reason

Cosign 2.6.1's default discovery reports no signatures found for the current recipe image, although bundle-aware verification finds a valid signature, provenance, and two SBOMs. The report's expected main signer also differs from that image's immutable branch-publisher identity. This changes future publication while preserving signer acceptance.

Related issues

Part of #12206. A main publication, image qualification, and qualified recipe-pin update are required after merge to repair released installations.

Changes

  • Keep modern signing unchanged. Add a legacy signature on the same digest using existing Cosign 3.1.2 with --new-bundle-format=false --use-signing-config=false --tlog-upload=true. Legacy signing uses built-in service defaults and retains trusted-root verification and required transparency logging. Either signing failure stops publication.
  • Gate receipts on a separate, permission-free job using an immutable Cosign 2.6.1 image. Verify the existing certificate identity, issuer, and candidate digest. Retain stdout and diagnostic logs for maintainers investigating compatibility failures; these artifacts have a human diagnostic consumer.
  • Refresh only the build/runtime ca-certificates package to 20260816ubuntu0.24.04.1, synchronizing Dockerfile, declarative manifest, and exact-version validator. The previous pin is unavailable and fails both native builds. Other package pins are unchanged.
  • Remove only the expired PR fix(llama-cpp): cancel owned native requests without the Go guard #12664 publisher caller, which prevented GitHub from parsing the image workflow. Update its existing dispatch-description regression.
  • Execute production workflow shell commands in five permanent regressions covering both formats, either signing failure, and compatibility-verification success and failure. Retain publication-boundary coverage.

Verification

  • Final focused image, workflow, signature, publication-evidence, and growth suites: 119 tests passed after temporary test retirement.
  • Actionlint, focused lint, formatting, source-shape checks, and secret scanning passed during local validation. Normal commit/publication hooks use the retained credential-isolation boundary, with Git transport authentication outside it.
  • Live signature test 39958004418 passed on 55860ff5a1b458a077962bfd02bf3767b2e4ad3b: real Cosign 3.1.2 keyless signing, anonymous pinned Cosign 2.6.1 verification of legacy and bundle signatures, and wrong-identity rejection all succeeded. Verification JSON and diagnostic logs are retained in that run. The temporary PR-specific workflow and its six dedicated test cases are retired before merge; production signing and verification commands are unchanged. The public test artifact remains retained as evidence, and no registry-deletion permission is introduced.
  • Ubuntu security and updates indexes confirm the CA version and every unchanged package pin are available for both amd64 and arm64.
  • Final main CI 39966345713 passed on 98e931b047712184d34ded509895a4c3c57dd036 on its first attempt, including all twelve test shards. No formatter test code or timeout was changed.
  • Final native CI 39966346169 and managed-image CI 39966345456 passed on 98e931b047712184d34ded509895a4c3c57dd036. This includes both native architectures and real-Docker cancellation proofs, managed-image build/startup checks, and all-agent activation on Docker amd64/arm64 and rootless Podman. All 57 PR CI checks passed; 31 expected jobs skipped; none failed or remained pending. The additional ready-state qualification checks passed in run 39973033475, and CodeRabbit completed review of the final commit with no actionable findings.
  • No secrets, API keys, credentials, or image-pin placeholders are included in the diff.

Review notes

Sensitive paths include the image/signature workflows, image Dockerfile and manifest, and image-config validator in NVIDIA/NemoClaw. Self-review checked digest and identity binding, failure propagation, and credential-free verification. All nine final Advisor specialist reviews were collected from run 39969376051. The remaining findings share a false claim that the historical branch can still publish. The maintainer explicitly accepted and recorded this Advisor exception. Require no Advisor blockers remains failed; admin merge is authorized only after every PR CI check passes. The recorded exception includes the closed-PR evidence, passing rejection tests, and #12206 release follow-up. No policy or signer-acceptance change is made for these false positives. All normal commit and publication hooks passed, and a direct comparison confirms production signing commands and the entire production verification workflow are unchanged from the successful live-test commit.

The caller removal preserves historical admission guards and the non-executable template. Both gates require PR #12664 to remain open at its matching head; that PR is merged, so the old route rejects publication. No active branch caller remains.

After merge, publish through the existing main workflow, require both verification paths and existing image qualification to pass, then update the three recipes to the qualified digest. Existing releases are not repaired automatically. The retained live test proves signature interoperability; it does not qualify a production serving image or issue a production publication receipt.


Signed-off-by: Aaron Erickson aerickson@nvidia.com

Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Oct 23, 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.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between e0e0afa and 98e931b.

📒 Files selected for processing: 7
  • .github/workflows/llama-cpp-image-attest.yaml
  • .github/workflows/llama-cpp-image.yaml
  • managed-inference/images/llama-cpp/Dockerfile
  • managed-inference/images/llama-cpp/image.yaml
  • scripts/checks/export-llama-cpp-image-config.mts
  • test/inference/llama/llama-cpp-image-signatures.test.ts
  • test/inference/llama/llama-cpp-image-workflow.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

📝 Walkthrough

The llama.cpp image workflow now creates default-format and legacy-format Cosign signatures, verifies the candidate with Cosign 2, and removes the approved-branch publishing caller. The image definitions and export checks also update the pinned ca-certificates version.

Changes: Image signing and verification

Layer / File(s) Summary
Add legacy-format signing
.github/workflows/llama-cpp-image-attest.yaml, test/inference/llama/llama-cpp-image-signatures.test.ts
The attestation workflow signs the same image digest in default and legacy bundle formats. Tests cover both calls and confirm that signing failures return status 23.
Verify legacy candidate signatures
.github/workflows/llama-cpp-image.yaml, test/inference/llama/llama-cpp-image-workflow.test.ts
A permissionless job verifies the candidate with Cosign 2 and the configured certificate identity and OIDC issuer. verify-candidate depends on this job. The workflow removes the approved-branch publishing caller and updates the manual publish description.

ca-certificates package pin

Layer / File(s) Summary
Update image package pins
managed-inference/images/llama-cpp/Dockerfile, managed-inference/images/llama-cpp/image.yaml, scripts/checks/export-llama-cpp-image-config.mts
The build and runtime package pins and their export-check expectations change to 20260816ubuntu0.24.04.1.

Priority: ➖ Normal

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

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant AttestationWorkflow
  participant Cosign
  participant VerifyLegacyCandidate
  participant VerifyCandidate
  AttestationWorkflow->>Cosign: Sign image digest in default bundle format
  AttestationWorkflow->>Cosign: Sign same image digest in legacy bundle format
  VerifyLegacyCandidate->>Cosign: Verify candidate with certificate identity and OIDC issuer
  VerifyLegacyCandidate-->>VerifyCandidate: Return verification result
Loading

Possibly related issues

  • NVIDIA/NemoClaw#8231 — The PR adds legacy-format image signing and verification, which relates to the issue’s signature requirement. It does not add the issue’s SBOM, provenance, or anonymous exact-digest pull evidence.

Suggested labels: bug-fix

Suggested reviewers: cv, prekshivyas

Merge Risk: ⚪ Minimal · up to 98e93

No actionable issue is established by this review. Merge still depends on the stated CI requirement; production image qualification and recipe updates remain post-merge work.

Pre-merge checks: Passed 4 · Failed 1

Failed 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%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. (4 skipped: 4 … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix(images): publish compatible llama.cpp signatures" matches the main change. The PR adds a legacy Cosign signature next to the existing Sigstore bundle for llama.cpp image publications, a…
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.
Full details: Title check

Explanation

The title "fix(images): publish compatible llama.cpp signatures" matches the main change. The PR adds a legacy Cosign signature next to the existing Sigstore bundle for llama.cpp image publications, and adds a permissionless verification job for that legacy signature. The title is short, specific, and in conventional-commit form. The ca-certificates pin update and the removal of the expired publisher caller are secondary changes that the title does not need to cover.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. (4 skipped: 4 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-code-quality

github-code-quality Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/plugin

main 63002cd fix/12206-llama-sign... 98e931b +/-
96% 97% +1%
View coverage of the 10 most impacted files.
File main 63002cd fix/12206-llama-sign... 98e931b +/-
nemoclaw/src/onboard/config.ts 98% 96% -2%
nemoclaw/src/index.ts 94% 93% -1%
nemoclaw/src/bl...print/runner.ts 95% 95% 0%
nemoclaw/src/bl...ime-identity.ts 97% 97% 0%
nemoclaw/src/bl...t-management.ts 100% 100% 0%
nemoclaw/src/co.../config-show.ts 100% 100% 0%
nemoclaw/src/commands/slash.ts 100% 100% 0%
nemoclaw/src/ru...time-context.ts 100% 100% 0%
nemoclaw/src/sh...er-boundary.cts 100% 100% 0%
nemoclaw/src/on...native-route.ts 0% 100% +100%

TypeScript / code-coverage/cli

main 63002cd fix/12206-llama-sign... 98e931b +/-
84% 86% +2%
View coverage of the 10 most impacted files.
File main 63002cd fix/12206-llama-sign... 98e931b +/-
src/lib/onboard.ts 62% 50% -12%
src/lib/actions...ess-recovery.ts 65% 81% +16%
src/lib/state/l...diness-lease.ts 66% 83% +17%
src/lib/inferen...ollama/proxy.ts 41% 61% +20%
src/lib/onboard.../application.ts 55% 84% +29%
src/lib/domain/...y/dimensions.ts 0% 71% +71%
src/lib/inferen...er/lifecycle.ts 0% 73% +73%
src/lib/actions...ry/operation.ts 0% 76% +76%
src/lib/actions...try/snapshot.ts 0% 78% +78%
src/lib/inferen...ovider/index.ts 0% 88% +88%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated October 23, 2026 14:24 UTC

Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit 98e931b. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

Request review only when Require no Advisor blockers is green.

All previous runs

@ericksoa

Copy link
Copy Markdown
Member Author

Maintainer disposition for commit 98e931b047712184d34ded509895a4c3c57dd036, recorded by Codex under the human maintainer's explicit instruction:

Record the false-positive exception; merge after PR CI passes.

Accept the inherited branch-admission findings in Advisor run 39969376051 as false positives. The separate Require no Advisor blockers job remains failed; this disposition does not claim it passed. Admin merge is authorized after all PR CI checks pass.

The findings share one incorrect premise: that the retired branch can still publish. PR #12664 is merged and closed. Both the publication gate and the attestation gate require that PR to be open at its matching head before any write. The executable branch caller was removed. Ordinary non-main manual dispatch also fails the config job condition.

The existing publication and attestation rejection tests for a closed PR both pass. They were rechecked directly on this commit, and the complete main CI and both native image builds passed. Retain the historical guards and non-executable template within the approved narrow repair; no additional policy removal or signer-acceptance change is authorized here.

The live signature proof remains run 39958004418, bound to commit 55860ff; production signing commands and the entire verification workflow are unchanged in the final commit. The temporary test workflow was retired after that proof.

Follow-up remains #12206: publish and qualify a main-signed image, then update the three recipe pins. This review exception does not waive those release requirements or any PR CI check.

@ericksoa
ericksoa marked this pull request as ready for review October 23, 2026 14:50
@ericksoa
ericksoa merged commit e07dd48 into main Oct 23, 2026
198 of 199 checks passed
@ericksoa
ericksoa deleted the fix/12206-llama-signature-compat branch October 23, 2026 15:04
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance security area: security Security controls, permissions, secrets, or hardening and removed security labels Oct 28, 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 chore Build, CI, dependency, or tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants