[PB-6431]: feat/email encryption#56
Merged
jzunigax2 merged 0 commit intoMay 27, 2026
Merged
Conversation
2f4efb7 to
90badcb
Compare
7b4f50d
into
feat/fetch-recipient-public-keys
1 of 3 checks passed
90badcb to
1df2887
Compare
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.
Adds end-to-end encryption for mail. On send, the body and a short list-preview snippet are sealed with a hybrid scheme; on read, the body and previews are decrypted client-side.
services/mail-encryption): encrypts body + preview under one symmetric key, wrapped per-recipient. Wrapped keys ship as a de-identified, order-randomized array carrying no addresses, so the recipient set (Bcc included) stays hidden; recipients find their entry by trial decryption. Subject stays cleartext so the backend can index/search it.services/recipient-keys,store/api/mail): resolves recipients' public keys before an encrypted send; falls back to a cleartext send if any recipient has no key.compose-message): wires lookup + encryption into the send flow.useDecryptedMaildecrypts the opened message;useDecryptedPreviewsdecrypts list/search row previews (encrypted rows show a blank snippet until decrypted, never ciphertext).SendEmailError,FetchRecipientKeysError,FetchActiveDomainsError) and i18n keys across all locales.