Skip to content

[PM-32833] Remove Input Password Flag from RegistrationFinishService#20244

Merged
rr-bw merged 6 commits intoauth/pm-32833/remove-input-password-flag-basefrom
auth/pm-32833/registration-finish
May 1, 2026
Merged

[PM-32833] Remove Input Password Flag from RegistrationFinishService#20244
rr-bw merged 6 commits intoauth/pm-32833/remove-input-password-flag-basefrom
auth/pm-32833/registration-finish

Conversation

@rr-bw
Copy link
Copy Markdown
Contributor

@rr-bw rr-bw commented Apr 17, 2026

🎟️ Tracking

PM-32833

📔 Objective

This PR removes pm-27086-update-authentication-apis-for-input-password feature flag usage from the DefaultRegistrationFinishService and related files.


Note

This PR is part of a larger group of PRs (split up for easier review) that will each get merged into a base branch for this flag removal work: auth/pm-32833/remove-input-password-flag-base (base PR). That base branch is the one that will get merged to main.

Breakdown of branching structure:

main
 └── auth/pm-32833/remove-input-password-flag-base  ← targets main; accumulates sub-PRs
     ├── auth/pm-32833/registration-finish            ← targets base [THIS PR 🟢]
     ├── auth/pm-32833/set-initial-password           ← targets base
     ├── auth/pm-32833/change-password                ← targets base
     ├── auth/pm-32833/emergency-access               ← targets base
     ├── auth/pm-32833/account-recovery               ← targets base
     └── auth/pm-32833/input-password-component       ← targets base; reviewed LAST

@rr-bw rr-bw changed the base branch from main to auth/pm-32833/remove-input-password-flag-base April 17, 2026 20:11
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

❌ Patch coverage is 80.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.08%. Comparing base (71967ef) to head (b172ab9).
⚠️ Report is 1 commits behind head on auth/pm-32833/remove-input-password-flag-base.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ls/request/registration/register-finish.request.ts 0.00% 2 Missing ⚠️
...tion-finish/default-registration-finish.service.ts 91.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                                Coverage Diff                                @@
##           auth/pm-32833/remove-input-password-flag-base   #20244      +/-   ##
=================================================================================
- Coverage                                          47.08%   47.08%   -0.01%     
=================================================================================
  Files                                               3938     3937       -1     
  Lines                                             119473   119444      -29     
  Branches                                           18321    18317       -4     
=================================================================================
- Hits                                               56255    56241      -14     
+ Misses                                             58955    58940      -15     
  Partials                                            4263     4263              

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 17, 2026

Logo
Checkmarx One – Scan Summary & Details7d373117-1daf-42fc-8607-6813a92d0853

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

@rr-bw rr-bw added the ai-review Request a Claude code review label Apr 21, 2026
@rr-bw rr-bw force-pushed the auth/pm-32833/registration-finish branch from 6906903 to d3e8500 Compare April 21, 2026 23:58
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 22, 2026

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

Removes the pm-27086-update-authentication-apis-for-input-password feature flag from DefaultRegistrationFinishService and WebRegistrationFinishService, consolidating the registration request into a single RegisterFinishRequest shape that carries MasterPasswordAuthenticationData and MasterPasswordUnlockData. The legacy RegisterFinishRequestWithAuthUnlockDataTypes model is deleted, the now-unused ConfigService and EncryptedString dependencies are dropped, and DI providers in both core.module.ts and jslib-services.module.ts are updated to match the new constructor shapes. Tests, snapshots, and assertions for newPassword, salt, and kdfConfig are updated accordingly, and the flow remains compatible with the upstream InputPasswordComponent regardless of the still-flagged emission path (which is scheduled for removal in PM-28143 per the PR's branching plan).

Code Review Details

No findings.

@rr-bw rr-bw force-pushed the auth/pm-32833/registration-finish branch from d3e8500 to 930a61a Compare April 24, 2026 17:26
@rr-bw rr-bw marked this pull request as ready for review April 27, 2026 16:05
@rr-bw rr-bw requested review from a team as code owners April 27, 2026 16:05
Copy link
Copy Markdown
Contributor

@coroiu coroiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving removal of ConfigService as dependency for RegistrationFinishServiceAbstraction in core.module.ts

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@JaredSnider-Bitwarden JaredSnider-Bitwarden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@rr-bw rr-bw merged commit dabe5ba into auth/pm-32833/remove-input-password-flag-base May 1, 2026
137 of 138 checks passed
@rr-bw rr-bw deleted the auth/pm-32833/registration-finish branch May 1, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants