0168: Tagged plugins install their attested release wheel¶
- Implementation planned
Context and Problem Statement¶
ADR 0137 moves a plugin pinned to a GitHub commit to the commit of its newest release tag. It checks that the tag still names the announced commit and that the installed metadata says the tag's version, but nothing checks who made the tag or the commit: anyone who can push a tag to the plugin repository can publish an update that installs itself. ADR 0137 says nothing about signatures or provenance.
The plugin release workflow (heinzel-plugins release.yml) already builds each release once, verifies
it, and attests its distributions with build provenance (actions/attest-build-provenance). Core already installs
only distributions whose attestation is verified (ADR 0134).
How does a tagged plugin get the same guarantee?
Decision Drivers¶
- The same trust for a plugin update as for a Core update: verified bytes from the official producer, not a tag anyone with push access can move.
- No new key to distribute, rotate or revoke on people's machines.
- What is verified is exactly what is installed; nothing is built on the person's machine from a commit.
- ADR 0094 independence: each plugin releases on its own.
Considered Options¶
- Install the attested release wheel and verify its build provenance as ADR 0134 does for Core (chosen)
- Signed git tags (SSH or GPG): every machine needs the maintainers' public keys, and their distribution, rotation and revocation; a signed tag still says nothing about what was built from it.
- Keep installing from the commit, unsigned (ADR 0137 as is): a moved or forged tag is caught only when it moves after the announcement, never when it was wrong from the start.
Decision Outcome¶
Chosen option: install the attested release wheel, because it reuses the provenance the plugin release workflow already produces and the verifier Core already trusts, and needs no key on any machine.
- An automatic or agreed update of a tagged plugin installs the wheel attached to the plugin's GitHub Release for the
tag
<distribution>/vX.Y.Z, by its sha256 digest, instead ofgit+…@<commit>. - Before anything is installed, the wheel's attestation is verified as ADR 0134 verifies Core: the repository, the
release workflow on protected
main, the source ref of the tag and the commit it named when announced, hosted runners, and the exact digest. A wheel without a verifiable attestation is not installed; the plugin waits, with one line inplugins_held, and hz and other plugins apply (ADR 0137 as amended). - The receipt names the verified wheel, so the plugin stays exactly pinned; the next update moves it the same way.
- Private plugin repositories without attestations stay updated by hand until they attest.
Consequences¶
- Good, because a plugin update carries the same provenance guarantee as a Core update.
- Good, because nothing is built from source on the person's machine during an update.
- Bad, because a plugin release must attach its attested wheel to the GitHub Release; older releases without one are never announced again.
- Bad, because the verifier must run on every machine that updates, with the GitHub API reachable.
Confirmation¶
Unit tests fake the Release assets and attestations: a verified wheel installed by digest, a missing or mismatched attestation refused before anything is installed, a wheel from another workflow or ref refused, and hz and unrelated plugins unaffected by one refused plugin.
More Information¶
Planned after 0.9.59 (design 065, part c). Until it is built, ADR 0137 as amended on 28 Nov applies: tagged plugins install from the tag's commit, aged by their published GitHub Release.