ci(gitea): warn before the Gitea release key stops verifying releases
The gitea role accepts a release only when it carries a valid signature by gitea_gpg_key_id or one of its subkeys, so an expired, revoked or replaced Gitea release key makes every install and update fail closed, without warning, on the day it happens. scripts/check_gitea_release_key.py reads the pins from the role defaults, fetches the release key into a throwaway keyring and only the .asc of the pinned release (never the binary), and fails when the primary key or a signing subkey expires within 60 days, is revoked or expired, or when a signature in the .asc is not by a valid signing key of the pinned key. Its docstring says what to do on a failure. The Gitea release key workflow runs it weekly, by hand, and on pull requests that change the role defaults or the check, so a gitea_version bump is checked against the new release's signature. It runs in the ci image at the pin of lint.yml; that image has gpgv but not gpg, so the job installs gpg and gpg-agent from the Ubuntu archive per run instead of making the check an image input. The tests that make keys skip without gpg, so the Lint job's unittest run (no gpg) still covers the parsing and rendering tests. The workflow pins the ci image, so it joins the pin consumers of check_image_versions.py and check_bot_pr_diff.py: Renovate's pin follow-up edits every workflow, and the bot-diff gate would otherwise refuse that pull request. The new workflow and script are on the molecule selector's IGNORED list, since no scenario reads them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
aefbc24e88
commit
0837cc387f
14 files changed
+868
-9
No files matched your search
@@ -18,7 +18,7 @@ When <head-ref> starts with `renovate/`, the diff of <base-ref>...HEAD may only
|
||||
the `uv==<version>` token of a line that holds one;
|
||||
* .gitea/workflows/image.yml: the matrix `version:` lines, and the tag and digest of the
|
||||
job containers' `job_image: ubuntu:...@sha256:...` lines (the name stays);
|
||||
* .gitea/workflows/{lint,build,molecule}.yml: the version and digest of a
|
||||
* .gitea/workflows/{lint,build,molecule,gitea-release-key}.yml: the version and digest of a
|
||||
`git.rkdr.net/mortis/<name>:<version>@sha256:<digest>` pin (the name stays), including
|
||||
the MOLECULE_IMAGE value.
|
||||
|
||||
@@ -72,6 +72,7 @@ CONSUMERS = {
|
||||
".gitea/workflows/lint.yml",
|
||||
".gitea/workflows/build.yml",
|
||||
".gitea/workflows/molecule.yml",
|
||||
".gitea/workflows/gitea-release-key.yml",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user