Skip to content

ci: generate SBOMs and sign release artifacts - #60

Merged
bbik52 merged 2 commits into
developfrom
feature/release-sbom-signatures
Nov 19, 2026
Merged

bbik52 merged 2 commits into
developfrom
feature/release-sbom-signatures

Conversation

@bbik52

@bbik52 bbik52 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Published 0.2.x archives have checksums but no release signature or archive SBOM. Generate CycloneDX SBOMs from both built Linux archives and keylessly sign the checksum manifest with Cosign. Explicitly retain Docker v2's existing per-platform BuildKit SPDX SBOMs and sign the multi-platform image index by digest.

Keep release-please's version/changelog/tag flow. The publishing job checks out the actual release tag, requires main ancestry and runs only from main; its exact OIDC identity is release.yml@refs/heads/main, not the checked-out tag. Grant OIDC only to that job and pin GoReleaser 2.20.2, Syft 1.57.2 and Cosign 3.1.4. No persistent signing key, new signing secret or runtime dependency.

After publication, download and verify the checksum bundle, archive/SBOM hashes, ELF architectures, release identity and SBOM-to-binary binding. Verify the GHCR index signature, tagged version/revision and both platform inventories. Fail on signing/verification errors; document partial-publication recovery and keep old releases explicitly unsigned.

Add a read-only, unsigned packaging job to existing CI, nine negative-control/verification tests, and user/maintainer verification instructions. Correct the stale README env-parity status. No agent delivery/runtime code changes.

Validation

  • GoReleaser configuration and real unsigned snapshot builds passed: amd64/arm64 archives, CycloneDX inventories and checksum coverage.
  • All nine artifact tests passed, including changed bytes, swapped architecture SBOMs, wrong binary hashes/release identity, missing standard library/SBOM, unsafe/duplicate manifest entries and fatal signature-check failure.
  • Real multi-platform OCI build with BuildKit SBOMs passed locally. Both inventories include the agent, Go standard library and Debian base packages; image inputs match the final archive binaries. The production inventory predicate passes and rejects an absent platform.
  • Cosign 3 local-key bundle verifies the original checksum manifest and rejects modified bytes. Temporary private key removed. This is a format/integrity probe, not a keyless OIDC test.
  • Local fmt, lint, race tests, coverage (98.6%) and pprof goldens passed. Actionlint, Python compilation, local document links and diff checks passed.
  • Full local make ci was attempted; govulncheck is blocked by HTTP 403 from the environment proxy. Checks are unchanged, not disabled; remote CI must run the scan.
  • Checked all ten changed files, both archive SBOMs and OCI JSON metadata for private-key/token patterns and private workspace paths; none found. The local test private key was outside the checkout and was removed.
  • GitHub Checks, E2E, unsigned release packaging and Codecov patch pass on d94b8b1. The existing non-PR Go matrix job is intentionally skipped on pull_request. Remote govulncheck reports no vulnerabilities; coverage is 98.6%; existing fuzz and mutation gates pass. No review threads are outstanding.

Release limits

No tag, release or GHCR publication was created. Existing 0.2.x downloads remain unsigned. Actual GitHub OIDC/Fulcio/Rekor signing, GHCR signature retrieval and published-asset verification must be confirmed by the first normal release; unsigned PR snapshots cannot establish those results. The running 72h benchmark server was untouched.

Checklist

  • The PR title follows Conventional Commits.
  • The repository's checks pass locally. Applicable checks pass; complete make ci is blocked at the vulnerability database by proxy HTTP 403.
  • Tests cover the change; no test was skipped or deleted to get CI green.
  • Public API changes are documented, and CHANGELOG.md is updated if users will notice. No runtime API change; generated changelog untouched.
  • Nothing in the change can throw into, block, or slow down the host application (fail-open). Build/release tooling only.
  • GitHub CI and Codecov are green on the final revision.

@bbik52
bbik52 merged commit d464fac into develop Nov 19, 2026
5 checks passed
@bbik52
bbik52 deleted the feature/release-sbom-signatures branch November 19, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant