Skip to content

[PM-32833] Remove Input Password Feature Flag#20306

Open
rr-bw wants to merge 13 commits intomainfrom
auth/pm-32833/remove-input-password-flag-base
Open

[PM-32833] Remove Input Password Feature Flag#20306
rr-bw wants to merge 13 commits intomainfrom
auth/pm-32833/remove-input-password-flag-base

Conversation

@rr-bw
Copy link
Copy Markdown
Contributor

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

🎟️ Tracking

PM-32833

📔 Objective

This PR removes the pm-27086-update-authentication-apis-for-input-password feature flag.

Important

This is the base branch for the feature flag removal work. This branch accumulates all the changes on the sub-PRs, each of which has already been reviewed individually.

PR Status:

Local smoke testing shows consistent functionality.

@rr-bw rr-bw requested a review from a team as a code owner April 21, 2026 16:33
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2026

Codecov Report

❌ Patch coverage is 67.69231% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.02%. Comparing base (72f082b) to head (72ece52).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...initial-password/set-initial-password.component.ts 0.00% 11 Missing ⚠️
...ement/change-password/change-password.component.ts 0.00% 5 Missing ⚠️
...ls/request/registration/register-finish.request.ts 0.00% 2 Missing ⚠️
...angular/input-password/input-password.component.ts 0.00% 1 Missing ⚠️
...c/angular/input-password/input-password.stories.ts 0.00% 1 Missing ⚠️
...tion-finish/default-registration-finish.service.ts 91.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #20306      +/-   ##
==========================================
- Coverage   47.02%   47.02%   -0.01%     
==========================================
  Files        3951     3950       -1     
  Lines      119648   119467     -181     
  Branches    18325    18287      -38     
==========================================
- Hits        56265    56179      -86     
+ Misses      59141    59048      -93     
+ Partials     4242     4240       -2     

☔ 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 21, 2026

Logo
Checkmarx One – Scan Summary & Detailsaf3cacac-d888-484d-bd27-6dca44a5f69f

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

@rr-bw rr-bw marked this pull request as draft April 21, 2026 16:48
rr-bw added 7 commits April 24, 2026 10:11
…ce (#20291)

This PR removes `pm-27086-update-authentication-apis-for-input-password` feature flag usage from the Emergency Access takeover flow.
…Change Password (#20308)

This PR removes `pm-27086-update-authentication-apis-for-input-password` feature flag usage from the `ChangePasswordComponent` and related files.
…ganizationUserResetPasswordService) (#20292)

This PR removes `pm-27086-update-authentication-apis-for-input-password` feature flag usage from the `OrganizationUserResetPasswordService` and related files.
…RegistrationFinishService (#20244)

This PR removes `pm-27086-update-authentication-apis-for-input-password` feature flag usage from the `DefaultRegistrationFinishService` and related files.
@rr-bw rr-bw closed this May 1, 2026
@rr-bw rr-bw reopened this May 1, 2026
@rr-bw rr-bw added ai-review Request a Claude code review and removed ai-review Request a Claude code review labels May 1, 2026
rr-bw added 2 commits May 4, 2026 08:38
…InputPasswordComponent (#20475)

This PR removes `pm-27086-update-authentication-apis-for-input-password` feature flag usage from the `InputPasswordComponent` and related files.
@rr-bw rr-bw added the ai-review Request a Claude code review label May 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR removes the pm-27086-update-authentication-apis-for-input-password feature flag and consolidates 6 already-reviewed sub-PRs. The off-flag code paths are deleted across the registration, change-password, set-initial-password, emergency access takeover, and organization user reset flows. RegisterFinishRequest is restructured to carry MasterPasswordAuthenticationData and MasterPasswordUnlockData directly (replacing the now-deleted RegisterFinishRequestWithAuthUnlockDataTypes), and tests are rewritten to drop flag-based describe blocks. Verified that syncService.fullSync(true) is still invoked inside WebChangePasswordService.changePasswordAndRotateUserKey() after its removal from ChangePasswordComponent, and that all previously-deleted symbols (PM27086_UpdateAuthenticationApisForInputPassword, RegisterFinishRequestWithAuthUnlockDataTypes, setInitialPasswordTdeOffboardingOld, SetInitialPasswordTdeOffboardingCredentialsOld, newApisWithInputPasswordFlagEnabled) have no remaining references.

Code Review Details

No findings.

The deprecated PasswordInputResult.newMasterKey / newServerMasterKeyHash fields and the JIT_PROVISIONED_MP_ORG_USER master-key derivation in SetInitialPasswordComponent are intentionally retained per the inline comment referencing PM-32526.

@rr-bw rr-bw removed the ai-review Request a Claude code review label May 5, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2026

@rr-bw rr-bw marked this pull request as ready for review May 6, 2026 13:28
@rr-bw rr-bw requested review from a team as code owners May 6, 2026 13:28
@rr-bw rr-bw requested review from dereknance and r-tome May 6, 2026 13:28
Copy link
Copy Markdown
Contributor

@r-tome r-tome left a comment

Choose a reason for hiding this comment

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

AC changes look good

Copy link
Copy Markdown
Contributor

@dereknance dereknance left a comment

Choose a reason for hiding this comment

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

✅ Platform

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.

3 participants