Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.7.0] Backport "redwood: Relax requirements for decrypting messages" #7048

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

zenmonkeykstop
Copy link
Contributor

@zenmonkeykstop zenmonkeykstop commented Oct 27, 2023

Ready for review

Description of Changes

Backport of #7000.

Testing

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.

(cherry picked from commit 3596bb0)
@zenmonkeykstop zenmonkeykstop requested a review from a team as a code owner October 27, 2023 20:18
@zenmonkeykstop zenmonkeykstop changed the title redwood: Relax requirements for decrypting messages [2.7.0] Backport "redwood: Relax requirements for decrypting messages" Oct 27, 2023
Copy link
Member

@legoktm legoktm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving pending CI

@zenmonkeykstop zenmonkeykstop merged commit f62f210 into release/2.7.0 Oct 27, 2023
12 checks passed
@zenmonkeykstop zenmonkeykstop deleted the backport-7000 branch October 27, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants