Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Require the committed release key before signing

546b225e4937afda050879ef5dc8cb4b3f4ca87b · Keenan Nemetz · 15d ago · parent a755e48a

Require the committed release key before signing

The secret must match packaging/keys/vole-release.asc, and that file must exist: a signature that no committed key verifies is the failure the fingerprint check exists to prevent. Local --key-file tests skip the check.

scripts/sign-release.py +8−4

@@ -36,9 +36,10 @@ is also the value both signing tools are given, including `rpmsign` through its
36 36 `%_gpg_sign_cmd_extra_args` macro. A key that has expired at that time is an
37 37 error: rotate the key rather than sign with it.
38 38
39 If the repository has a committed public key at `packaging/keys/vole-release.asc`,
40 the secret must produce the same fingerprint. A rotated key and a stale committed
41 key fail here instead of publishing a key that does not match the signatures.
39 The public key must be committed at `packaging/keys/vole-release.asc`, and the
40 secret must produce the same fingerprint. A missing key, a rotated key, or a
41 stale committed key fails here instead of publishing signatures that no
42 documented key verifies.
42 43 """
43 44
44 45 import argparse
@@ -146,7 +147,10 @@ def verify(home: Path, signature: Path, data: Path | None = None) -> None:
146 147
147 148 def check_committed_key(home: Path, fingerprint: str) -> None:
148 149 if not COMMITTED_KEY.is_file():
149 return
150 sys.exit(
151 f"{COMMITTED_KEY.relative_to(ROOT)} is missing: commit the public release key "
152 "before signing, so clients can compare the fingerprint through Git"
153 )
150 154 out = gpg(
151 155 home,
152 156 "--with-colons",