List the Rust crates in release SBOMs; check GHCR signatures (K-S7) #493

Merged
jcoffey-dev merged 1 commits from feat/sbom-crates into main 2026-11-19 23:08:25 +00:00
Owner

Follow-up to #492, from signing 27.1-rc.33 by hand.

The rc.33 SBOMs list 103 Debian packages for the server and nothing but the image for Relay (built FROM scratch). syft can't see the crates in a Rust binary unless the build records them.

  • Both Dockerfiles build with cargo auditable build (cargo-auditable 0.7.7, installed --locked in the builder stage). It adds the crate list to the binary as a small ELF section; syft, Trivy and Grype read it. Cached dependency builds are unaffected: it wraps only the workspace's own crates.
  • SBOM attestations move to actions/attest v4.2.2 (pinned by commit); actions/attest-sbom is deprecated.
  • The GHCR copies are verified after signing, as the Gitea ones are.

Images only build at tag time, so the first real test is rc.34: its SBOMs should list the crates, and gh attestation verify should pass as it did for rc.33.

Follow-up to #492, from signing 27.1-rc.33 by hand. The rc.33 SBOMs list 103 Debian packages for the server and nothing but the image for Relay (built `FROM scratch`). syft can't see the crates in a Rust binary unless the build records them. - Both Dockerfiles build with `cargo auditable build` (cargo-auditable 0.7.7, installed `--locked` in the builder stage). It adds the crate list to the binary as a small ELF section; syft, Trivy and Grype read it. Cached dependency builds are unaffected: it wraps only the workspace's own crates. - SBOM attestations move to `actions/attest` v4.2.2 (pinned by commit); `actions/attest-sbom` is deprecated. - The GHCR copies are verified after signing, as the Gitea ones are. Images only build at tag time, so the first real test is rc.34: its SBOMs should list the crates, and `gh attestation verify` should pass as it did for rc.33.
jcoffey-dev added 1 commit 2026-11-19 22:55:03 +00:00
List the Rust crates in release SBOMs; check GHCR signatures (K-S7)
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 13m6s
9161706b79
The first signed release (27.1-rc.33, signed by hand) showed the SBOMs
list only the Debian packages in the server image, and nothing but the
image itself for Relay, which is built from scratch: syft cannot see the
crates in a Rust binary unless the build records them.

- Both images build with cargo-auditable 0.7.7, which puts the crate list
  in the binary, where syft (and Trivy, Grype) read it.
- SBOM attestations use actions/attest v4.2.2; actions/attest-sbom is
  deprecated.
- The GHCR copies are verified after signing, as the Gitea ones are.
jcoffey-dev merged commit 3b971a44e1 into main 2026-11-19 23:08:25 +00:00
jcoffey-dev deleted branch feat/sbom-crates 2026-11-19 23:08:25 +00:00
jcoffey-dev referenced this issue from a commit 2026-11-20 01:59:38 +00:00
Sign in to join this conversation.