[PM- 21926] Add MasterPasswordSalt to DTOs#7178
Draft
ike-kottlowski wants to merge 8 commits intomainfrom
Draft
Conversation
…sistency in the SQL
…l fallbacks to use GetMasterPasswordSalt
Contributor
|
Fixed Issues (118)Great job! The following issues were fixed in this Pull Request
|
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7178 +/- ##
===========================================
- Coverage 56.88% 14.00% -42.88%
===========================================
Files 2028 1241 -787
Lines 88826 52916 -35910
Branches 7918 4091 -3827
===========================================
- Hits 50528 7412 -43116
- Misses 36468 45372 +8904
+ Partials 1830 132 -1698 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.






🎟️ Tracking
PM-21926
PM-32389
PM-28827
PM-30370
📔 Objective
PM-21926
We need to begin to return the
MasterPasswordSaltcolumn in queries that will expect it in the future. This PR adds theMasterPasswordSaltto theReadKdfByEmailmethod in the User Repository and adds theMasterPasswordSaltto theOrganizationUserResetPasswordDetailsmethod.PM-32289
We add null coalescing to the
User.GetMasterPasswordSalt()method to be the only fallback when aMasterPasswordSaltisnull. The locations that set theSaltto theUser.Email.Lower().Trim()were replaced with theUser.GetMasterPasswordSalt()method to ensure forward compatibility.PM-28827
Accept the
MasterPasswordUnlockData?.Saltfrom theRegisterFinishRequestModel. This does not do any coalescing to match the pattern where the Server only writes what the Client submits and does not try to guess.PM-30370
Return
User.MasterPasswordSalt()in theUserDecryptionResponseModeland theSyncResponseModelinstead of theUser.Email.ToLower().Trim().📸 Screenshots