PM-40295: bug: Add MP Policy checks on vault unlock#7165
PM-40295: bug: Add MP Policy checks on vault unlock#7165david-livefront wants to merge 1 commit into
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR extracts master password policy logic out of Code Review Details
|
| * The password that needs to be checked against any organization policies before | ||
| * the user can complete the login flow. This value is stored using the user ID. | ||
| */ | ||
| private val mutablePasswordsToCheckFlow = MutableStateFlow(value = mapOf<String, String>()) |
There was a problem hiding this comment.
@vvolkgang Once the KeystoreManager is ready, I would like to encrypt this data.
b5a621e to
b29e1e3
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7165 +/- ##
===========================================
- Coverage 86.19% 69.93% -16.26%
===========================================
Files 884 990 +106
Lines 64674 66712 +2038
Branches 9681 9709 +28
===========================================
- Hits 55745 46656 -9089
- Misses 5456 17035 +11579
+ Partials 3473 3021 -452
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
1391fde to
68addd6
Compare
68addd6 to
bd2e4c2
Compare
🎟️ Tracking
PM-40295
📔 Objective
This PR moves all the MasterPassword Policy logic into a new class and adds the policy check on vault unlock as well as login.