docs(adr): record releases by generated pull request and the release bot as the only automated tag credential #177
Notifications
Due Date
No due date set.
Depends on
#143 docs(adr): record the threat model as ADR 0001
Mortis/Kamino
Reference: Mortis/Kamino#177
Reference in new issue
Block a user
Spec: Release automation (resolution comment). Takes the next free ADR number when the pull request is opened, and renumbers on rebase if another ADR merged first.
ADR content
v*tags; the maintainer keeps tag permission as an override. Publishing is two API calls (create the release with its annotated tag, then upload the tarball) and the publish job converges: each push tomaindoes whichever step is missing, so a rerun repairs a failed publish. The annotated tag message carries the sha256 of the release'sMANIFEST.json, which is the same for every build of one tree. A failed publish is repaired by rebuilding from the tagged commit, and the rebuild must match the tag message.galaxy.ymlor the changelog): check this against the CODEOWNERS patterns when writing the ADR.SECURITY.md, which the ADR links: anyone with write access can read the release bot's token and push a release tag, and theMANIFEST.jsonhash does not cover file modes (the unhashed exec bit). These entries are entered in the register by the threat model ADR issue (#143), not by this issue.ADR rules: status
accepted, set on the maintainer's approval of the pull request (docs/adr/is code-owned, so that approval is a control); one screen; no infrastructure detail.Also
Add to
GLOSSARY.md(under Language, a new group if it fits better):Review of the map (2026-11-15): corrections to this issue.
Waiting on another decision: the ADR's decision and residual-risk text on publish recovery and tarball integrity waits on Release path: fragment check, failed publish and tarball integrity.
Review of the map (2026-11-15): one more correction to this issue.
galaxy.ymlor the changelog). Check that against the CODEOWNERS patterns when writing the ADR; how those patterns end up is open in Code-owner approval against Renovate automerge, and where secrets live.Correction from Release path: fragment check, failed publish and tarball integrity: publishing is two API calls (create release with its annotated tag, then upload the tarball) and the publish job converges: each push to
maindoes whichever step is missing, so a rerun repairs a failed publish. The tarball-integrity residual risk goes in ADR 0001, not here.From What the tarball checksum in the tag message proves when a publish is repaired (2026-11-20)
Add one sentence to the Decision: the annotated tag message carries the sha256 of the release's
MANIFEST.json, which is the same for every build of one tree. A failed publish is repaired by rebuilding from the tagged commit, and the rebuild must match the tag message.