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

Fix isForwardingKey to support keys without valid encryption subkeys #206

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

larabr
Copy link
Collaborator

@larabr larabr commented Jan 24, 2025

No description provided.

The function used to mistakenly check only for the absence of valid encryption keys.
This would work in practice as forwarding subkeys are not valid for encryption, and
standard private address keys are expected to have valid encryption subkeys.
However, it caused issues in a specific account setup where the user imported
an expiring key, which was then wrongly considered to be a forwarding key,
which prevented the user from generating a valid SKL as a result (the FE filtered out
the key on SKL generation, while the BE expected the key to be included).
@larabr larabr requested a review from twiss January 24, 2025 17:39
lib/key/forwarding.ts Outdated Show resolved Hide resolved
@larabr larabr merged commit 3597751 into ProtonMail:main Jan 27, 2025
2 checks passed
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.

2 participants