Skip to content

[PM-24683] Add updateKdf function #383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 18 commits into
base: km/pm-24051-add-master-password-unlock-decryption-options-to-identity-sync-response
Choose a base branch
from

Conversation

quexten
Copy link
Contributor

@quexten quexten commented Aug 13, 2025

๐ŸŽŸ๏ธ Tracking

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

๐Ÿ“” Objective

Exposes functionality to update the KDF, with the new masterpassword unlock data, and masterpassword authentication data models. These can be directly passed to the server models.

โฐ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation
    team

๐Ÿฆฎ Reviewer guidelines

  • ๐Ÿ‘ (:+1:) or similar for great changes
  • ๐Ÿ“ (:memo:) or โ„น๏ธ (:information_source:) for notes or general info
  • โ“ (:question:) for questions
  • ๐Ÿค” (:thinking:) or ๐Ÿ’ญ (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • ๐ŸŽจ (:art:) for suggestions / improvements
  • โŒ (:x:) or โš ๏ธ (:warning:) for more significant problems or concerns needing attention
  • ๐ŸŒฑ (:seedling:) or โ™ป๏ธ (:recycle:) for future improvements or indications of technical debt
  • โ› (:pick:) for minor or nitpick changes

@quexten quexten changed the title Add updateKdf function [PM-24683] Add updateKdf function Aug 13, 2025
Copy link
Contributor

github-actions bot commented Aug 13, 2025

Logo
Checkmarx One โ€“ Scan Summary & Details โ€“ 2dd7bf25-6b9e-4b8b-853e-ab5525ce07fc

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

Copy link

codecov bot commented Aug 13, 2025

Codecov Report

โŒ Patch coverage is 90.22222% with 22 lines in your changes missing coverage. Please review.
โœ… Project coverage is 74.55%. Comparing base (2591773) to head (ed3be99).

Files with missing lines Patch % Lines
crates/bitwarden-uniffi/src/crypto.rs 0.00% 10 Missing โš ๏ธ
...bitwarden-core/src/key_management/crypto_client.rs 0.00% 7 Missing โš ๏ธ
...es/bitwarden-core/src/platform/get_user_api_key.rs 0.00% 3 Missing โš ๏ธ
crates/bitwarden-core/src/auth/login/password.rs 0.00% 1 Missing โš ๏ธ
crates/bitwarden-core/src/key_management/crypto.rs 99.21% 1 Missing โš ๏ธ
Additional details and impacted files
@@                                                   Coverage Diff                                                   @@
##           km/pm-24051-add-master-password-unlock-decryption-options-to-identity-sync-response     #383      +/-   ##
=======================================================================================================================
+ Coverage                                                                                74.35%   74.55%   +0.19%     
=======================================================================================================================
  Files                                                                                      255      255              
  Lines                                                                                    22120    22332     +212     
=======================================================================================================================
+ Hits                                                                                     16448    16650     +202     
- Misses                                                                                    5672     5682      +10     

โ˜” 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.

quexten added a commit that referenced this pull request Aug 14, 2025
## ๐ŸŽŸ๏ธ Tracking

https://bitwarden.slack.com/archives/C054ZQSBS49/p1755188403409309

## ๐Ÿ“” Objective

It seems #279 accidentally
required wasm in all uniffi builds via `bitwarden-vault` ->
`bitwarden-collections` -> `bitwarden-core`. Since it is only required
on core, this leads to build issues on anything where an impl is tagged
with wasm-bindgen, but uses a struct from a third package - such as
`bitwarden-crypto` that does not have the wasm feature enabled.

Attempts to fix the build errors of:
#383

Note: This flags out a function from the collections client. This has to
be fixed by the owning team and updated, this PR just unblocks builds
and fixes the imports.

## โฐ Reminders before review

- Contributor guidelines followed
- All formatters and local linters executed and passed
- Written new unit and / or integration tests where applicable
- Protected functional changes with optionality (feature flags)
- Used internationalization (i18n) for all UI strings
- CI builds passed
- Communicated to DevOps any deployment requirements
- Updated any necessary documentation (Confluence, contributing docs) or
informed the documentation
  team

## ๐Ÿฆฎ Reviewer guidelines

<!-- Suggested interactions but feel free to use (or not) as you desire!
-->

- ๐Ÿ‘ (`:+1:`) or similar for great changes
- ๐Ÿ“ (`:memo:`) or โ„น๏ธ (`:information_source:`) for notes or general info
- โ“ (`:question:`) for questions
- ๐Ÿค” (`:thinking:`) or ๐Ÿ’ญ (`:thought_balloon:`) for more open inquiry
that's not quite a confirmed
  issue and could potentially benefit from discussion
- ๐ŸŽจ (`:art:`) for suggestions / improvements
- โŒ (`:x:`) or โš ๏ธ (`:warning:`) for more significant problems or
concerns needing attention
- ๐ŸŒฑ (`:seedling:`) or โ™ป๏ธ (`:recycle:`) for future improvements or
indications of technical debt
- โ› (`:pick:`) for minor or nitpick changes

---------

Co-authored-by: Oscar Hinton <[email protected]>
Copy link

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.

1 participant