ci(security): SLSA provenance + keyless cosign signing for releases (T7)#68
Merged
Conversation
Sign and attest every released artifact with keyless Sigstore (Fulcio certs from the GitHub Actions OIDC token, recorded in Rekor — no managed key). Closes the outbound supply-chain gap left by ADR-014/015 and the Scorecard Signed-Releases check. Images (shieldoo-gate, scanner-bridge): - build-push-action with provenance: mode=max + sbom: true (BuildKit attaches SLSA provenance + CycloneDX SBOM as OCI referrers) - actions/attest-build-provenance (GitHub-hosted, push-to-registry) - cosign sign by digest (never by tag) shdg binaries: one attest-build-provenance over all 5 archives. Dogfooded SBOMs: persisted via `shdg scan --sbom-output`, attached to the release (*.cdx.json), folded into SHA256SUMS, and signed with cosign sign-blob --bundle. Same bytes the gate ingested. Permissions reduced to least-privilege: top-level contents: read, each job widens only what it needs. New actions SHA-pinned (ADR-015). Fail-closed guards reject an incomplete SHA256SUMS or an empty SBOM. Security-reviewed (no blockers; two should-fix integrity guards applied). The workflow only runs on a vX.Y.Z tag, so the first real exercise is the next release tag. ADR-018 records the decision; docs/development/ci.md documents the flow. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second half of T7 (build provenance / signing) — completes the security-hardening plan. Builds on #67 (
shdg --sbom-output, already merged).Signs and attests every released artifact with keyless Sigstore (Fulcio certs from the GitHub Actions OIDC token, recorded in Rekor — no managed signing key). Closes the outbound supply-chain gap left by ADR-014/015 and the OpenSSF Scorecard Signed-Releases check.
What
Images (
shieldoo-gate,scanner-bridge)build-push-actionwithprovenance: mode=max+sbom: true→ BuildKit attaches SLSA provenance + CycloneDX SBOM as OCI referrersactions/attest-build-provenance(GitHub-hosted SLSA provenance, pushed to the registry)cosign signby digest, never by tagshdgbinaries — oneattest-build-provenanceattestation over all 5 archives.Dogfooded SBOMs — persisted via
shdg scan --sbom-output, attached (*.cdx.json), folded intoSHA256SUMS, and signed withcosign sign-blob --bundle. The signed bytes are the same ones uploaded to the production gate.Security posture
contents: read, each job widens only what it needs.attest-build-provenance@v4.1.0,cosign-installer@v4.1.2) per ADR-015.SHA256SUMSor an empty SBOM aborts the release.Validation
actionlintclean (only pre-existing SC2129/SC2035 style nits).vX.Y.Ztag, so it cannot be exercised by PR CI — the first real run is the next release tag. Review is the safety net.Docs
docs/development/ci.md— new "Release signing & provenance" section.cosign verify/gh attestation verifycommands per tag.Follow-up (not blocking)
Bind the dogfooded SBOM to the image digest (OCI referrer / in-predicate) so SBOM↔image correspondence is verifiable. The BuildKit
sbom: truereferrer is already digest-bound.🤖 Generated with Claude Code