Repository navigation
#3359 Classify rejected PGP signatures as bad signatures - #3360
Conversation
|
Hi @DenBond7 @sosnovsky - This one is ready for a review. Thank you! |
|
This PR's tests only cover tampered content, but #3359 also names expired and revoked signing keys. I checked locally with a throwaway test, using the same processMimeMessage path:
So the fix already handles these cases. Let's pin that with unit tests in ProcessMimeMessageTest: generate a key, sign inline, then revoke or expire the key and verify against the updated cert. Without such tests, a future pgpainless update could start reporting these cases as "Missing verification key", which would quietly turn the red badge into "cannot verify". For a separate PR. |
DenBond7
left a comment
There was a problem hiding this comment.
Approving. The fix closes #3359: every rejected signature except a missing key is now reported as a bad signature, so a tampered message, or one signed with a revoked or expired key, no longer gets the green "signed" badge.
|
No androidTest checks |
|
After this PR, any rejection other than "Missing verification key" shows Proposal (needs agreement on the behaviour first): when the rejection is caused by key validity (expired, revoked), fetch the sender's current key and verify again, showing "verifying" in the meantime. A tampered body still stays red. If the refreshed key is still expired or revoked, keep |
This PR classifies rejected PGP signatures as bad signatures so an invalid signature is not shown as signed.
close #3359
Tests (delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):