feat(release): sign checksums and publish an SBOM #132

Merged
Sebi merged 1 commits from feat/release-signing into main 2026-11-23 18:27:04 +00:00
Owner

Signatures — internal/signing, minisign format, so anyone can verify with the standard minisign tool:

  • prehashed Ed25519 (ED, BLAKE2b-512) only; the release tag is the signed trusted comment, so a signature cannot be reused for another release;
  • trusted keys in internal/signing/release.pub (embedded; several lines allowed so agents can update across a key rotation). The launcher of the self-updating images (#129) will verify downloads with signing.ReleaseKeys().

tools/release gains keygen <file> (0600, refuses to overwrite), sign <file> <tag> (key from RELEASE_SIGNING_KEY, must be listed in release.pub), verify <file>, sbom <tag> <binaries>.

SBOM — SPDX 2.3 JSON: Go modules and toolchain read from the binaries' build info, plus exactly the npm packages the build scripts copy from node_modules/ (axios, swagger-ui-dist, fonts — Tailwind stays out), versions from package-lock. No third-party tooling in CI.

Release workflow — sbom.spdx.json added and included in SHA256SUMS; SHA256SUMS.minisig when the RELEASE_SIGNING_KEY secret exists (otherwise a warning, release unsigned). README documents verification and rotation.

Simulated locally in a clean worktree with a temporary tag: tarballs, SBOM, checksums, signature, verify OK; a tampered file is rejected. Not cross-checked against the minisign binary itself (not installed here).

Image digests move to #128 (comment there).

Closes #34

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

**Signatures** — `internal/signing`, minisign format, so anyone can verify with the standard `minisign` tool: - prehashed Ed25519 (`ED`, BLAKE2b-512) only; the release tag is the signed *trusted comment*, so a signature cannot be reused for another release; - trusted keys in `internal/signing/release.pub` (embedded; several lines allowed so agents can update across a key rotation). The launcher of the self-updating images (#129) will verify downloads with `signing.ReleaseKeys()`. **tools/release** gains `keygen <file>` (0600, refuses to overwrite), `sign <file> <tag>` (key from `RELEASE_SIGNING_KEY`, must be listed in release.pub), `verify <file>`, `sbom <tag> <binaries>`. **SBOM** — SPDX 2.3 JSON: Go modules and toolchain read from the binaries' build info, plus exactly the npm packages the build scripts copy from `node_modules/` (axios, swagger-ui-dist, fonts — Tailwind stays out), versions from package-lock. No third-party tooling in CI. **Release workflow** — `sbom.spdx.json` added and included in `SHA256SUMS`; `SHA256SUMS.minisig` when the `RELEASE_SIGNING_KEY` secret exists (otherwise a warning, release unsigned). README documents verification and rotation. Simulated locally in a clean worktree with a temporary tag: tarballs, SBOM, checksums, signature, `verify` OK; a tampered file is rejected. Not cross-checked against the minisign binary itself (not installed here). Image digests move to #128 (comment there). Closes #34 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added 1 commit 2026-11-23 17:20:18 +00:00
feat(release): sign checksums and publish an SBOM
ci / image (pull_request) Successful in 4m1s
ci / build (pull_request) Successful in 8m59s
ci / lint (pull_request) Successful in 10m34s
ci / test (pull_request) Successful in 12m29s
b1ca8eb19f
Releases carry SHA256SUMS signed in the minisign format (prehashed
Ed25519, the release tag as trusted comment) and an SPDX SBOM of the Go
modules and the npm packages the frontend build bundles. internal/signing
signs and verifies; the release keys are committed in release.pub and
compiled in, so the self-updating agents can check their downloads.
Without the RELEASE_SIGNING_KEY secret a release is published unsigned
with a warning.

Closes #34

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit 841e61751e into main 2026-11-23 18:27:04 +00:00
Sebi deleted branch feat/release-signing 2026-11-23 18:27:06 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#132