Sign release images keyless, with SBOMs and build provenance (K-A2) #256

Merged
jcoffey-dev merged 1 commits from feat/sign-images into main 2026-11-19 23:15:52 +00:00
Owner

Closes #234. The same signing inbuxa-server has (K-S7, server #492/#493), for this repository's one image.

.github/workflows/sign.yml:

  • signs the multi-arch index keyless with cosign, in the registry and on GHCR, and checks both with cosign verify;
  • SPDX SBOMs (syft): one per architecture of the image as shipped, attested against that architecture's digest, and one of the app from package-lock.json at the tagged commit, attested against the index. The image is nginx serving a bundle, so an image scan sees nginx's Alpine packages and none of the app's.
  • build provenance, only from the release's own run;
  • attaches the SBOMs to the Gitea release.

ci.yml calls it on a release tag once publish has run (and after the GHCR copy, signed too when it's there). It's in the report, so a signing failure fails the tag's check; the announcement has gone out by then, and the fix is running sign.yml by hand with the tag.

Same pinned cosign v3.1.4 / syft 1.55.0 (sha256-checked) and actions/attest / attest-build-provenance pinned by commit.

Test after merge: run sign.yml by hand on GitHub for v27.1-rc.22 and check with cosign verify and gh attestation verify, as was done for server rc.33.

Closes #234. The same signing inbuxa-server has (K-S7, server #492/#493), for this repository's one image. `.github/workflows/sign.yml`: - signs the multi-arch index keyless with cosign, in the registry and on GHCR, and checks both with `cosign verify`; - SPDX SBOMs (syft): one per architecture of the image as shipped, attested against that architecture's digest, and one of the app from `package-lock.json` at the tagged commit, attested against the index. The image is nginx serving a bundle, so an image scan sees nginx's Alpine packages and none of the app's. - build provenance, only from the release's own run; - attaches the SBOMs to the Gitea release. `ci.yml` calls it on a release tag once `publish` has run (and after the GHCR copy, signed too when it's there). It's in the report, so a signing failure fails the tag's check; the announcement has gone out by then, and the fix is running `sign.yml` by hand with the tag. Same pinned cosign v3.1.4 / syft 1.55.0 (sha256-checked) and `actions/attest` / `attest-build-provenance` pinned by commit. Test after merge: run `sign.yml` by hand on GitHub for `v27.1-rc.22` and check with `cosign verify` and `gh attestation verify`, as was done for server rc.33.
jcoffey-dev added 1 commit 2026-11-19 23:11:51 +00:00
Sign release images keyless, with SBOMs and build provenance (K-A2)
ci / build (pull_request) Skipped
ci / notices (pull_request) Successful in 1m3s
ci / publish (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m2s
4147e406b9
sign.yml, as inbuxa-server has (K-S7), for this repository's one image:
signs the index keyless with cosign in the registry and on GHCR and
checks both; attests an SPDX SBOM per architecture, and one of the app
from package-lock.json at the tag, since the image is nginx serving a bundle, so an image scan sees only nginx's Alpine packages; attests the
build from the release's own run; attaches the SBOMs to the Gitea
release. ci.yml calls it on a release tag once publish has run; it can be
run by hand for a release made before it existed.
jcoffey-dev merged commit a3ba01cb31 into main 2026-11-19 23:15:52 +00:00
jcoffey-dev deleted branch feat/sign-images 2026-11-19 23:15:52 +00:00
Sign in to join this conversation.