Attest build provenance, which needs no key of ours at all - #9
Merged
Conversation
A Developer ID signature says Reachpad signed this. It says nothing about what was signed or where it came from, and it rests on a private key somebody could steal — which is the failure mode the whole signing setup is built to survive rather than prevent. Build provenance is the other half, and it is the half Apple cannot give us: a signed statement that these exact bytes came out of this workflow, at this commit, in this repo, with the signing identity a short-lived OIDC credential minted for the run and the record in a public transparency log. There is no long-lived secret to steal, so there is nothing to rotate and nothing to revoke. It also covers the Linux tarballs, which have no Gatekeeper and would therefore never have been signed by anything. gh attestation verify reachpad-<target>.tar.gz --repo Reachpad/reachpad-cli Free on public repositories. The release body and the README both say how to run it, because a verification nobody is told about is one nobody performs. Greentree-Change-Id: 0346a742daa0ff4ff23182aa1f152686
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.
The industry-standard half of this problem that we were leaving on the table, and it is free.
Why this and not more signing
A Developer ID signature says Reachpad signed this. It says nothing about what was signed or where it came from, and it rests on a private key somebody could steal — which is the failure the environment gating in #8 is designed to survive rather than prevent.
Build provenance is the complement, and it is the half Apple cannot give us: a signed statement that these exact bytes came out of this workflow, at this commit, in this repository. The signing identity is a short-lived OIDC credential GitHub mints for that one run, and the record goes into a public transparency log. There is no long-lived secret, so there is nothing to steal, rotate, or revoke.
It also covers the Linux tarballs, which have no Gatekeeper and would therefore never have been signed by anything at all.
What changed
publishjob gainsid-token: writeandattestations: write, and runsactions/attest-build-provenance@v4over*.tar.gz.Free on public repositories.
Note
We already do the equivalent on the npm side — Trusted Publishing over OIDC, no token in the repository, provenance attached automatically. This brings the GitHub release assets up to the same standard, so the two distribution channels make the same promise.