Repository navigation
Conversation
gpg also prints a VALIDSIG status line, and exits with 0, for a signature made by a revoked or expired key, which it reports as REVKEYSIG or EXPKEYSIG instead of GOODSIG. checkSign only looked for VALIDSIG with the release key fingerprint, so start.sh installed a jar signed by a revoked or expired release key. Require GOODSIG for the release key as well, and log when the release key is revoked or expired.
SeriousCoding789
requested review from
bladehan1
and removed request for
317787106
November 6, 2026 06:43
halibobo1205
approved these changes
Nov 9, 2026
bladehan1
approved these changes
Nov 9, 2026
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.
What does this PR do?
start.shnow rejects a release jar whose signature was made by a revoked or expired release key.checkSignrequires gpg to report the release key's signature good (GOODSIG) in addition to aVALIDSIGline with the release key fingerprint, and logsthe release key has been revokedorthe release key has expiredbefore removing the download.start.sh:checkSignreads the gpg status lines once and checksREVKEYSIG,EXPKEYSIGandGOODSIGfor the release key.shell.md: a signature made by a revoked or expired release key fails verification.Why are these changes required?
Since #7003,
checkSignaccepts a signature when aVALIDSIGstatus line carries the release key fingerprint. gpg also printsVALIDSIG, and exits with 0, for a signature made by a revoked or expired key, which it reports asREVKEYSIGorEXPKEYSIGinstead ofGOODSIG. So--download,--upgrade,--releaseand the archive tool download installed a jar signed by a release key that had been revoked or had expired, and revoking the key did not stop it from being trusted.This PR has been tested by:
checkSigntaken unchanged fromstart.shbefore and after this change, run with real gpg 2.5.20 under macOS bash 3.2. The key server and the downloads are replaced by local fixtures, and the fixture key is structured like the release key (a certify-only primary key with a signing subkey).bash -n start.sh;shellcheckreports nothing new.Follow up
The release signing subkey
F859BCB44A28290Bexpires on 2027-01-03. With this change,start.shrejects its signatures from that date unless the subkey's expiry is extended and published to keys.openpgp.org and keyserver.ubuntu.com, from whichstart.shfetches the key for every download.Extra details
.sigfile, for example by a new key during a key rotation, does not affect the result.GOODSIG,REVKEYSIGandEXPKEYSIGby its long key id, the last 16 digits of the fingerprint; the full fingerprint is accepted as well.