Skip to content

[PM-39455] Let the organization rotate the account recovery key - #8174

Open
mzieniukbw wants to merge 1 commit into
km/pm-39455-set-upgrade-tokens-for-organizationsfrom
km/pm-39455-account-recovery-skip-upgrade-tokens-for-organizations
Open

[PM-39455] Let the organization rotate the account recovery key#8174
mzieniukbw wants to merge 1 commit into
km/pm-39455-set-upgrade-tokens-for-organizationsfrom
km/pm-39455-account-recovery-skip-upgrade-tokens-for-organizations

Conversation

@mzieniukbw

@mzieniukbw mzieniukbw commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-39455
Depends on #8158

📔 Objective

The organization holds the existing account recovery key and its own private key, so it can derive the new one from the V2 upgrade token without the member's client involved (covered in later PRs). Sending a new account recovery key during user key rotation would expose it, so the server leaves the stored value in place for the organization to replace.
(Since malicious server could send public key of it's own choice to the user.)

📸 Screenshots

The organization holds the existing account recovery key and its own private key, so it can derive the new one from the V2 upgrade token without the member's client involved. Sending a new account recovery key during user key rotation would expose it, so the server leaves the stored value in place for the organization to replace.
@mzieniukbw
mzieniukbw requested review from a team as code owners August 8, 2026 16:05
@mzieniukbw
mzieniukbw requested review from BTreston and eligrubb and removed request for a team August 8, 2026 16:05
@mzieniukbw mzieniukbw added the t:feature Change Type - Feature Development label Aug 8, 2026
@codecov

codecov Bot commented Aug 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.53%. Comparing base (5bbd357) to head (4c3cf74).

Additional details and impacted files
@@                                Coverage Diff                                @@
##           km/pm-39455-set-upgrade-tokens-for-organizations    #8174   +/-   ##
=================================================================================
  Coverage                                             67.53%   67.53%           
=================================================================================
  Files                                                  2315     2317    +2     
  Lines                                                100520   100536   +16     
  Branches                                               9044     9047    +3     
=================================================================================
+ Hits                                                  67885    67902   +17     
+ Misses                                                30350    30349    -1     
  Partials                                               2285     2285           

☔ View full report in Codecov by Harness.
📢 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

t:feature Change Type - Feature Development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant