Skip to content

[PM-33215] Revert MasterPasswordPolicyRequirement implementation#7232

Open
eliykat wants to merge 1 commit intomainfrom
ac/pm-33215/revert-implementation-masterpassword
Open

[PM-33215] Revert MasterPasswordPolicyRequirement implementation#7232
eliykat wants to merge 1 commit intomainfrom
ac/pm-33215/revert-implementation-masterpassword

Conversation

@eliykat
Copy link
Member

@eliykat eliykat commented Mar 17, 2026

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-33215

📔 Objective

Revert the MasterPasswordPolicyRequirement implementation. This code will be removed, so there is no need to transition to the new implementation. (Although I did add unit tests in the meantime - maybe unnecessary - but while we have it it's worth having tests around it.)

Context: this was being used to combine MP policies before sending them to the client for enforcement. However, we expect to have signed policies in the not-too-distant future, which will require the original policy object to be sent to the client for verification before being combined. Further, the client already has similar code, so this is just duplicating the client implementation. In the future this endpoint will just serve the policy objects without any preprocessing.

📸 Screenshots

This was being used to combine policies before sending them
to the client. Instead, the server just send the policies and
the client should process/combine them. Revert this to save
unnecessary QA (etc) and we will refactor this away in the
future.
@eliykat eliykat requested a review from a team as a code owner March 17, 2026 03:42
@eliykat eliykat requested a review from JimmyVo16 March 17, 2026 03:42
@eliykat eliykat changed the title Revert MasterPasswordPolicyRequirement implementation [PM-33215] Revert MasterPasswordPolicyRequirement implementation Mar 17, 2026
@sonarqubecloud
Copy link

@github-actions
Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Detailsacfdbc9a-0aa4-4121-9303-c050f5ff1716

Great job! No new security vulnerabilities introduced in this pull request

@codecov
Copy link

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.51%. Comparing base (c118f23) to head (f7f11da).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7232      +/-   ##
==========================================
- Coverage   57.53%   57.51%   -0.03%     
==========================================
  Files        2032     2031       -1     
  Lines       89486    89507      +21     
  Branches     7957     7958       +1     
==========================================
- Hits        51487    51479       -8     
- Misses      36154    36187      +33     
+ Partials     1845     1841       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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