Repository navigation
docs: record the release process for security notes and the deployment gate - #439
Merged
Merged
Conversation
Security releases in this repository lead with a hand-written summary and a GHSA link (v0.23.7, v0.23.6, v0.23.2), but the rule existed only in practice: v0.23.8 shipped the generated goreleaser header, so its changelog named the fix commit without telling an operator that a security upgrade was needed or which advisory it closed. Record the convention: replace the generated header with a summary, the operator action, and the advisory link; publish the advisory first so the link resolves; keep the generated changelog below it; and edit the published release rather than the header template, which cannot know the advisory id.
The `release` environment no longer requires a reviewer, so pushing a `v*` tag starts goreleaser immediately and there is nothing to approve. Record the gate that remains: `verify` checks the tagged commit is an ancestor of main and that `build / test / lint` plus `docker build` passed on that exact commit, and the environment still only deploys `v*` tags.
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.
Summary
The release process existed only in practice. This records it in
AGENTS.md:Security release notes. v0.23.7, v0.23.6 and v0.23.2 open with a hand-written summary and link their advisory. v0.23.8 shipped the generated goreleaser header instead, so its changelog named
fix(authz): authorize host delete inside the delete transactionwithout saying a security upgrade was needed or which advisory it closed. The rule now says: replace the generated header with a summary, the operator action and**Security advisory:** [GHSA-…](…); publish the advisory first so the link resolves; keep the generated changelog and compare link below it; edit the published release rather than theheader:template, which cannot know the advisory id.Deployment gate. The
releaseenvironment no longer requires a reviewer, so pushing av*tag starts the release immediately and a future session must not wait for an approval that never comes. The document records what still gates a release: theverifyjob refuses a tag whose commit is not an ancestor oforigin/main, or whosebuild / test / lintanddocker buildchecks did not pass on that exact commit (a green PR is not enough, because a rebase merge creates a new commit), and the environment only deploysv*tags.Docs only, no code or workflow change.
v0.23.8notes were corrected with this rule already (edited in place, tag unchanged), and thereleaseenvironment was updated in repository settings.