Skip to content

Conversation

mzieniukbw
Copy link
Contributor

@mzieniukbw mzieniukbw commented Aug 5, 2025

🎟️ Tracking

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

📔 Objective

Adds MasterPasswordUnlockData model with MasterPasswordUnlockResponseModel mapping. This wi
Adds UserDecryptionOptionsResponseModel into the identity success token response. This model includes the master password unlock field.
The /sync response model is autogenerated by OpenApi and already includes user decryption option and the master password unlock fields.
Includes Uniffi and WASM bindings for MasterPasswordUnlock.

In further PR's we plan to use the MasterPasswordUnlock in InitUserCryptoMethod enum - this is still in discussion.

⏰ 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

Copy link
Contributor

github-actions bot commented Aug 5, 2025

Logo
Checkmarx One – Scan Summary & Details4010f713-a4e0-4f3f-b693-3269a3aac793

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

Copy link

codecov bot commented Aug 5, 2025

Codecov Report

❌ Patch coverage is 90.36697% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.53%. Comparing base (e05ba6e) to head (4a00571).

Files with missing lines Patch % Lines
...twarden-core/src/key_management/user_decryption.rs 0.00% 18 Missing ⚠️
...twarden-core/src/key_management/master_password.rs 98.49% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #376      +/-   ##
==========================================
+ Coverage   76.41%   76.53%   +0.12%     
==========================================
  Files         265      267       +2     
  Lines       24433    24651     +218     
==========================================
+ Hits        18670    18867     +197     
- Misses       5763     5784      +21     

☔ 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.

@mzieniukbw mzieniukbw requested review from a team and quexten and removed request for a team August 5, 2025 11:08
@mzieniukbw mzieniukbw marked this pull request as ready for review August 5, 2025 14:51
@mzieniukbw mzieniukbw requested a review from a team as a code owner August 5, 2025 14:51
@mzieniukbw mzieniukbw requested a review from justindbaur August 5, 2025 14:51
Copy link
Contributor

@quexten quexten left a comment

Choose a reason for hiding this comment

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

Some initial comments, some of these are required, some are idiomatic (but probably required since the quality bar for SDK seems to be set much higher).

I'd like a review from someone with more rust experience such as @Hinton or @dani-garcia too. I believe specifically the request parsing is something that has not existed in the SDK so far, and there may be a better way to do this that we're unaware of.

@mzieniukbw mzieniukbw requested a review from quexten August 8, 2025 09:42
@mzieniukbw
Copy link
Contributor Author

@Hinton reduced the visibility with 70dee0c

@mzieniukbw mzieniukbw requested review from Hinton and quexten August 25, 2025 17:28
quexten
quexten previously approved these changes Aug 26, 2025
quexten
quexten previously approved these changes Aug 27, 2025
@mzieniukbw mzieniukbw requested review from Hinton and quexten September 1, 2025 10:22
Copy link

sonarqubecloud bot commented Sep 1, 2025

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