Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redwood: Relax requirements for decrypting messages
Even if a source key is no longer valid per policy, we still want them to be able to decrypt a previously valid message for them. We can also drop the revocation/expiry filters, which were mostly theoretical in the SecureDrop context anyways. We first try validating the key with the StandardPolicy before trying again with a NullPolicy to avoid downgrade attacks. Since we now have another type of policy being used, the constant has been renamed to STANDARD_POLICY to be clearer what kind it is. Fixes #6991.
- Loading branch information
Showing
3 changed files
with
41 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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