-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[PM-30920] Server changes to encrypt send access email list #6867
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
base: main
Are you sure you want to change the base?
[PM-30920] Server changes to encrypt send access email list #6867
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6867 +/- ##
==========================================
+ Coverage 56.08% 59.97% +3.88%
==========================================
Files 1968 1968
Lines 86974 87042 +68
Branches 7748 7756 +8
==========================================
+ Hits 48783 52200 +3417
+ Misses 36385 32948 -3437
- Partials 1806 1894 +88 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
New Issues (1)Checkmarx found the following issues in this Pull Request
|
|
Claude finished @harr1424's task in 2m 51s —— View job Re-Review: PM-30920 - Server changes to encrypt send access email listSummaryAll previous findings have been addressed. The author responded to the review feedback in commit Previous Findings - Now Resolved
Changes Since Last Review
Verdict✅ Approved - All findings addressed, tests are comprehensive. 🤖 Review generated by Claude Code |
Co-authored-by: mkincaid-bw <mkincaid@bitwarden.com>


🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-30920
📔 Objective
In order to better align with our Security Principles we need to make use of encryption and hashing functionality to protect the email address list associated with a Send as a part of the Email Verification feature.
Necessary server changes:
Emails (contains an encrypted list of email addresses)
EmailHashes (new column, contains an encrypted list of email address hashes)
SendAuthenticationQuery.cs will need changes so that it compares against the hashes from the EmailHashes column instead of the current comma-separated plain-text list
Adapt model files to account for the new EmailsHashes field / value
Add methods to the SendRepository.cs files for both Dapper and EntityFramework so that these repositories can encrypt (upon write) and decrypt (upon read) the value in the EmailHashes column
Acceptance criteria
Expect send access to fail to auth until the client code changes that provide a value for the EmailHashescolumn are completed if the pm-19051-send-email-verification feature flag is enabled
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes