Commit Graph

722 Commits

Author SHA1 Message Date
Jackson Engstrom
39021a4225
Updates attachment file write to use path.basename (#20790) 2026-06-03 13:46:25 -07:00
adudek-bw
f9c569379c
Add new SendApiServer that uses the SDK (#20170)
* Add new SendApiServer that uses the SDK
2026-06-02 14:19:45 -04:00
Thomas Rittson
007b5d9335
[PM-34157] Wire up SDK to NewPolicyService (#20377)
* Add shim in PolicyService to NewPolicyService
* Wire up NewPoilcyService to SDK
* Use SDK enum
2026-05-28 07:14:53 +10:00
renovate[bot]
37db9d091c
[deps] Vault: Update @koa/router to v15.5.0 (#20580)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-27 09:04:25 -07:00
Bernd Schoolmann
cf914e86e4
Remove unlock-via-sdk-flag (#20832) 2026-05-27 15:04:07 +09:00
renovate[bot]
6e4fcd74b8
[deps] Vault: Update https-proxy-agent to v9 (#20124)
* [deps] Vault: Update https-proxy-agent to v9

* Inline https-proxy-agent for pkg ESM compatibility

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: SmithThe4th <gsmith@bitwarden.com>
Co-authored-by: gbubemismith <gsmithwalter@gmail.com>
2026-05-21 18:44:22 -04:00
github-actions[bot]
87aa085375
Bumped client version(s) (#20690)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Addison Beck <github@addisonbeck.com>
2026-05-18 17:06:15 +00:00
Nick Krantz
7caeab7de5
[PM-34114] Add Passport item type to the CLI (#20621)
* Add Passport item type to the CLI

* formatting
2026-05-18 10:46:13 -05:00
Bernd Schoolmann
ab941afa89
[PM-31061] Implement biometrics migration (#20506)
* Revert "Revert "[PM-31061] Implement biometrics migration (#20127)" (#20455)"

This reverts commit 7ddfddc695.

* Update sdk

* Clean up lock file

* Restore package lock

* Package lock

* Fix tests

* Remove unused mocks

* Cleanup

* Remove imports

* Revert changes to main.ts

* Deduplicate setting of key id

* Cleanup

* Prettier

* Update libs/common/src/key-management/encrypted-migrator/default-encrypted-migrator.spec.ts

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Update apps/browser/src/key-management/biometrics/foreground-browser-biometrics.ts

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

---------

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
2026-05-15 12:22:41 +09:00
Nick Krantz
7f25ac0aba
Add Driver's License item type to the CLI (#20620) 2026-05-14 09:30:59 -05:00
Alex Dragovich
e6088fe618
[PM-36973] lazy-loading jsdom (#20568) 2026-05-13 11:21:16 -07:00
Alex Dragovich
4909b2a0aa
Revert "[deps] Tools: Update jsdom to v29 [PM-34333] (#19850)" (#20565)
This reverts commit 2b0de61fc2.
2026-05-08 14:07:59 -07:00
renovate[bot]
2b0de61fc2
[deps] Tools: Update jsdom to v29 [PM-34333] (#19850)
* [deps] Tools: Update jsdom to v29

* [PM-34333] fixing CLI test failures

* [PM-34333] adding missing mock file and fixing dependency error

* [PM-34333] reverting intial changes

* [PM-34333] lazy-load jsdom lib in cli client

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Dragovich <adragovich@bitwarden.com>
Co-authored-by: Alex Dragovich <46065570+itsadrago@users.noreply.github.com>
2026-05-07 13:50:00 -07:00
bmbitwarden
36960ede07
PM-29781 removed feature flag and corresponding code (#20487) 2026-05-07 16:41:34 -04:00
SmithThe4th
c966e74b96
Return no success when user does not have edit permission (#20370) 2026-05-07 10:24:30 -04:00
Maciej Zieniuk
dfb5734664
[PM-31112] Decouple local tools crypto from user key (#19433)
* sdk managed state init

* tools user key encryptor using SDK crypto local user data key for encryption

* eslint

* sdk managed state init excluding CLI

* update sdk

* client managed state

* sdk upgrade

* broken browser extension build
2026-05-07 09:10:41 -04:00
SmithThe4th
3635f5a794
[PM-28346] Use SDK for attachment delete operations (#20361)
* Added delete attachment from sdk to cipher sdk service

* Added to cipher service

* Added feature flag

* Updated dependencies and used delete attachment sdk on upload service

* Added response for the admin delete attachment operation
2026-05-06 23:22:50 -04:00
renovate[bot]
8524764d98
[deps] KM: Update node-forge to v1.4.0 [SECURITY] (#19795)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eli Grubb <eli@eligrubb.com>
2026-05-06 13:43:25 -06:00
SmithThe4th
afd36d290c
[PM-34036] Skip corrupted attachments during zip vault export (#19976)
* Removed unused error

* Added skipped attachment callout to browser extension

* Pause on desktop dialog when attachment is skipped

* reverted change

* Revert package-lock.json to match main

* Pluralize warning message

* Add error

* Updated description message
2026-05-05 12:56:32 -04:00
Jared
7f895d62fe
[PM-34155] Enhance policy service with accepted policies retrieval and update sync response structure for new sync response (#20336)
* Enhance policy service with accepted policies retrieval and update sync response structure

- Added `acceptedPolicies$` method to `PolicyService` for fetching policies from organizations where the user has an Accepted membership status.
- Updated `DefaultPolicyService` to implement the new `acceptedPolicies$` method.
- Modified `DefaultSyncService` to handle a new `policiesNew` property in the sync response, ensuring backward compatibility with existing `policies`.
- Updated `SyncResponse` class to include the new `policiesNew` property and its mapping logic.

* Add DefaultNewPolicyService and integrate into MainBackground and ServiceContainer

- Introduced DefaultNewPolicyService for managing new policy formats.
- Updated MainBackground and ServiceContainer to include newPolicyService.
- Adjusted sync logic in DefaultSyncService to handle new policies.
- Refactored policy service abstractions to accommodate new policy management.
- Added tests for new policy service integration.

* Add unit tests for DefaultNewPolicyService and enhance policy handling in DefaultPolicyService

- Introduced comprehensive tests for DefaultNewPolicyService, covering upsert and replace functionalities.
- Added tests to ensure correct filtering of policies based on organization status in DefaultPolicyService.
- Enhanced policy synchronization logic in DefaultSyncService to handle new policies effectively.

* Refactor NewPolicyService initialization and remove organization dependency

- Updated the instantiation of DefaultNewPolicyService in both MainBackground and ServiceContainer to only require StateProvider.
- Removed organizationService dependency from DefaultNewPolicyService and its related tests, simplifying the service's interface.
- Cleaned up unused code and tests related to organization policies, ensuring the service focuses solely on state management.

* Adds use of InternalNewPolicyService to same places InternalPolicyService syncs

* Refactor server notifications tests to include InternalNewPolicyService mock and update sync service to handle empty policy sources correctly.

* Refactor server notifications tests to import InternalNewPolicyService and InternalPolicyService from their respective paths, improving code clarity and organization.

* Update MainBackground and ServiceContainer to use InternalNewPolicyService, enhancing consistency in policy service implementation across the application.
2026-05-04 11:11:01 -04:00
Daniel James Smith
7d6cb1680a
Fix boolean parsing when using serve command (#20302)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2026-05-01 14:13:34 -07:00
John Harrington
f1f0376beb
Revert "[PM-14820] CLI: Replace legacy generator service with credential gene…" (#20465)
This reverts commit 73dfc861de.
2026-04-30 18:17:10 -07:00
maksimtech
4257ccb177
[PM-33597] fix: add try/catch for malformed JSON input in parseEmail (#19573)
* fix: add try/catch for malformed JSON input in parseEmail

* fix formatting and extra closing brace

---------

Co-authored-by: John Harrington <84741727+harr1424@users.noreply.github.com>
2026-04-30 16:10:14 -07:00
Jared Snider
4d3d999eea
Auth/PM-36080 (#20452)
* PM-36080 - Adjust logout behavior

* PM-36080 - On init, reconcile tokens with active sessions

* PM-36080 - TokenSvc - document determineStorageLocation
2026-04-30 17:30:55 -04:00
Jared
4f1fe27e60
[PM-34918] use sdk for collection decryption (#20136)
* Add Collection Encryption Service and integrate into collection handling

- Introduced `CollectionEncryptionService` and its default implementation `DefaultCollectionEncryptionService` for handling collection encryption and decryption.
- Updated `DefaultCollectionService` to utilize the new encryption service based on feature flags.
- Refactored collection-related classes to support SDK-based encryption operations.
- Added necessary imports and updated service providers in Angular module for dependency injection.
- Enhanced collection models to support SDK format conversions for encryption tasks.

* Implement encryption functionality in CollectionEncryptionService

- Added `encrypt` method to `CollectionEncryptionService` for encrypting collection views.
- Updated `DefaultCollectionEncryptionService` to include the new `encrypt` method, ensuring proper handling of SDK encryption.
- Modified `DefaultCollectionService` to utilize the encryption service based on feature flags.
- Enhanced collection and collection view models to support SDK format conversions for encryption tasks.

* refactor(collections): Update collection decryption methods and handle encryption support

- Modified `fromSdkCollectionView` to include `sourceCollection` for preserving `defaultUserCollectionEmail`.
- Updated decryption methods in `DefaultCollectionEncryptionService` to pass the original collection.
- Marked `encrypt` method as unsupported in the SDK, directing users to the legacy key-service path.
- Removed SDK feature flag checks from `DefaultCollectionService`'s `encrypt` method.

* refactor(collections): Update feature flag for collection decryption to PM35153

- Changed references from PM34918CollectionEncryptionService to PM35153CollectionSdkDecryption in both service and test files.
- Adjusted the feature flag checks to align with the new decryption implementation.

* Implement collection encryption using SDK in DefaultCollectionEncryptionService

* Refactor collection decryption in DefaultCollectionEncryptionService to handle errors individually and improve logging

* Add polyfills for Symbol.dispose and Symbol.asyncDispose in test setup; add unit tests for DefaultCollectionEncryptionService and collection SDK mapping

* Refactor error handling in DefaultCollectionEncryptionService to throw errors instead of returning EMPTY, improving error propagation and logging consistency.

* Refactor collection decryption and enhance type mapping

- Updated the `decrypt` method in `default-collection-encryption.service.ts` to utilize `decryptMany` for improved error handling.
- Added exhaustive bidirectional mapping for `CollectionType` and `SdkCollectionType` in `collection.ts`.
- Enhanced tests in `collection-sdk-mapping.spec.ts` to verify roundtrip conversions for `CollectionTypes`.
- Adjusted `Collection` and `CollectionView` classes to use the new type mappings for SDK interactions.

* Refactor DefaultCollectionEncryptionService to use a more concise method for encrypting collections. Update collection-sdk-mapping tests to utilize SdkEncString for better type safety. Simplify NewItemNudgeComponent's logic for showing nudge spotlight based on cipher type, ensuring null checks are handled appropriately.

* Refactor NewItemNudgeComponent to use strict null checks for cipher type comparison, enhancing code clarity and consistency.
2026-04-30 14:25:23 -05:00
Bernd Schoolmann
7ddfddc695
Revert "[PM-31061] Implement biometrics migration (#20127)" (#20455)
This reverts commit c10e581a63.
2026-04-30 12:21:59 -05:00
Bernd Schoolmann
c10e581a63
[PM-31061] Implement biometrics migration (#20127)
* Implement biometrics migration

* Cleanup

* Cleanup and disable on non-desktop

* Clean up tests

* Clean up tests

* Cleanup tests

* Update sdk-internal to 0.2.0-main.689

* Fix test

* Cleanup

* Remove abstract default impl

* Add test

* tmp

* tmp

* tmp

* tmp

* tmp

* tmp

* tmp

* Fix build

* Fix types

---------

Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com>
2026-04-30 12:27:58 +09:00
John Harrington
73dfc861de
[PM-14820] CLI: Replace legacy generator service with credential generator service (#19607)
* refactor to use CGS with test coverage

* respond to AI review

* implement strategy to resolve PM-10699

* return early when hardLimits violated

* Address PR comments

* More PR comment fixes

* remove force flag

---------

Co-authored-by: Mike Amirault <mamirault@bitwarden.com>
2026-04-28 15:04:22 -07:00
SmithThe4th
264bca0a2e
[PM-32686] Add bank account item type (#19302)
* Add devclarity commands

* added doc and skills

* Added cipher type skill

* Refined the cipher type skills a bit

* core models and enum

* Wire BankAccount into cipher container classes

* Add BankAccount icon(incomplete), vault filters, and shared UI components

* Localization keys

* Add BankAccount into web vault UI

* Add BankAccount into browser extension UI

* Add BankAccount into desktop vault UI

* Add BankAccount support to CLI

* copy actions

* Remove .claude/commands files from branch

* Updated to match vault/PM-32687-cipher-type-skill

* update bank account copy options on web

* add copy options for bank account on browser

* update bank account copy fields for both versions of the vault

* update `hasBankAccount` logic to consider all fields

* add PIN and Account Number to protected fields for reprompt service

* update bank account section to have readonly properties

* localize bank account view - account type

* remove duplicate import

* add events for bank account

* migrate form field to use content children to allow for OnPush consumers to update fields

* fix strict typings

* fix failing tests from bank account changes

* display all bank account details for the cli

* add bank icon

* add copy option for iban

* remove bank account from cipher menu

* update bank account implementation based on main

* address local claude feedback

* address the fixme

* local code review changes

* update SDK and fix BankAccount adjacent typings

* make IBAN and SWIFT fields hidden by default

* clean up encrypted string tests

* add IBAN and Swift to protected fields

* fix test

* add BankAccount to cipher-types.md

* remove filtering for cli commands

---------

Co-authored-by: Patrick Honkonen <phonkonen@bitwarden.com>
Co-authored-by: Nick Krantz <nick@livefront.com>
Co-authored-by: Nick Krantz <125900171+nick-livefront@users.noreply.github.com>
2026-04-28 13:04:34 -05:00
bitwarden-devops-bot
b6715c0c4e
Bumped client version(s) 2026-04-23 14:09:42 +00:00
renovate[bot]
e6ab6b5c3e
[deps] Autofill: Update tldts to v7.0.28 (#20268)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-21 16:34:39 -04:00
Bernd Schoolmann
7eb6fdc4a0
[PM-32784] Increase search service search performance by 50x and defer indexing (#19251)
* Make basic search fast

* Defer indexing

* Fix tests

* Handle admin console

* Clean up comment

* Add tests

* Always clear cipher index on edit

* Improve timeout behavior

* Extract lunr indexing and untangle logic

* Fix tests

* Undo change

* Cleanup

* Cleanup and typing issues

* Fix

* Fix build

* Prettier and eslint

* Fix

* Fix type errors and tests

* Rewrite lunr search index

* Fix tests

* Fix issues

* Add comment

* Cleanup

* Fix old usage

* Cleanup

* Apply feedback

* Prettier

* Fix typos

* Break lock in case lock was not released

* Move is archived and is trash to callers

* Prettier

* Apply cli archive and trash filter

---------

Co-authored-by: JaredScar <thewolfbadger@gmail.com>
2026-04-21 23:27:01 +09:00
Bernd Schoolmann
5126b62ee8
[PM-35330] Fix state not being updated on change kdf (#20259)
* Fix state not being updated on change kdf

* Add one more missing state

* Fix DI

* Update tests

* Fix cli DI

* Prettier

* Prettier

* Eslint
2026-04-21 11:30:05 +09:00
renovate[bot]
1b88e5ac91
[deps] AC: Update core-js to v3.49.0 (#19842)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-20 15:20:48 -04:00
bitwarden-devops-bot
afd9dd7068
Bumped client version(s) 2026-04-20 13:25:39 +00:00
Jared Snider
77a0341f2e
Auth/PM-34506 - LoginStrategyService - Refactor cache and timeout out into own services (#20108)
* PM-34506 - Extract LoginStrategyCacheService as single owner of mid-auth cache state

* PM-34506 - Refactor LoginStrategySessionTimeoutService: inject cache service, add MessageListener, expose abstraction

* PM-34506 - Remove cache state and timer logic from LoginStrategyService, delegate to collaborating services

* PM-34506 - Register LoginStrategyCacheService and LoginStrategySessionTimeoutService in all client DI contexts

* PM-34506 - Components read loginSessionTimeout$ from LoginStrategySessionTimeoutServiceAbstraction

* PM-34506 - Add tests for null cache, and non-API error cache-clear paths in LoginStrategyService

* PM-34506 - Add sessionTimeout test for logInNewDeviceVerification with no cached session

* PM-34506 - Rename abstractions to follow Default prefix convention (no Abstraction suffix)

* PM-34506 - Use fake timers in startSessionTimeout test to eliminate flaky date assertion

* PM-34506 - Move registerTaskHandler into DefaultLoginStrategySessionTimeoutService constructor, remove registerSessionTimeoutTask

* PM-34506 - PR feedback - DefaultLoginStrategySessionTimeoutService - make cache clear more resilient.

* PM-34506 - 2FA Auth Comp - fix tests

* PM-34506 - rename login strategy default service files to include default- prefix

Aligns file names with class names and the established codebase convention where
default implementations are prefixed with `default-` (e.g. default-logout.service.ts).

* PM-34506 - TEMP - Default Login Strategy Session Timeout - adjust to 30 seconds to make QA's life easier.

* PM-34506 - DefaultLoginStrategySessionTimeoutService - revert temp change and set LOGIN_SESSION_TIMEOUT_LENGTH back to 5 min
2026-04-17 12:47:12 -04:00
renovate[bot]
3e672a8b5d
[deps] Vault: Update koa to v3.1.2 [SECURITY] (#19294)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: SmithThe4th <gsmith@bitwarden.com>
2026-04-15 12:03:13 -04:00
Jordan Aasen
7f0785430d
[PM-34003] - block creation of collections without a name in the CLI (#19724)
* block creation of collections without a name in the CLI

* fix type errors
2026-04-14 15:31:16 -07:00
renovate[bot]
778355b8b1
[deps] Vault: Update multer to v2.1.1 [SECURITY] (#19312)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-14 13:28:25 -07:00
vlad-trofimov
d27a132995
[PM-33526] honor hidden password permission in bw list items and bw get item (#19537)
* honor hidden password permission in bw list items and bw get item

* move redaction logic into LoginResponse

---------

Co-authored-by: vlad-trofimov <vlad@Vlads-MacBook-Pro.local>
Co-authored-by: SmithThe4th <gsmith@bitwarden.com>
2026-04-14 10:41:20 -04:00
Bernd Schoolmann
8730a27b9e
[PM-30584] Add unlock for key connector with SDK (#19367)
Some checks failed
Scan / Check PR run (push) Has been cancelled
Testing / Run typechecking (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-browser junit:junit-browser.xml name:Browser paths:apps/browser bitwarden_license/bit-browser]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-cli junit:junit-cli.xml name:CLI paths:apps/cli bitwarden_license/bit-cli]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-desktop junit:junit-desktop.xml name:Desktop paths:apps/desktop]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-libs junit:junit-libs.xml name:Libs paths:libs bitwarden_license/bit-common]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-web junit:junit-web.xml name:Web paths:apps/web bitwarden_license/bit-web]) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (macos-14) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (ubuntu-22.04) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (windows-2022) (push) Has been cancelled
Testing / Rust Coverage (push) Has been cancelled
Scan / Checkmarx (push) Has been cancelled
Scan / Sonar (push) Has been cancelled
Testing / Upload to Codecov (push) Has been cancelled
Testing / Run tests (push) Has been cancelled
* Add unlock for key connector with SDK

* Cleanup merge conflicts

* Cleanup

* Eslint error

* Fix tests

* Fix tests

* Eslint fix

* Fix comment

* Prettier

* Remove setting masterkeyencrypteduserkey to state

* Remove unused enlint directive

* Rename feature flag

* Fix order of setting state

* Fix test build

* Fix cli

* Eslint

* Fix build error

* Fix build error

* Undo changes to development.json

* Prevent unflagged changes

* Apply feedback around flag caching

* Apply feedback

* Cleanup
2026-04-14 11:08:02 +09:00
Jonathan Prusik
2c2067388a
[PM-33139] Targeting Rules initial implementation (#19693)
* create the FillAssistTargetingRules feature flag

* create TargetingRulesService

* move TargetingRulesService functionality into DomainSettingsService

* use targeting rules to qualify relevant fields

* add user autofill settings toggle for Fill Assist feature

* add feature flag check to getTargetingRulesForUrl

* add TargetingRulesDataService to update local state from data source

* enable the server to specify an override URI for targeting rules data

* add working data shape

* update data shape

* update logic to match new data shape expectations

* switch from hostname to host to support port inclusions

* add resource cache-buster

* do not update meta timestamp on resource fetch failure

* consolidate email and password update category to account update

* update targeting rules maps consumer logic

* add tests

* add support for host unicode key lookup

* cleanup

* address missing www-prefixed punycode URI case handling

* reduce targeting rules data fetching interval to 6 hours

* add punycode overflow guard and other edges

* cleanup

* add state handling for environment switching

* move constants

* update logic to match provider changes

* codify targeting rules form category requirement

* remove targeting rules totp implementation

* refactor targeting rules storage to key off resource domain

* use constants instead of string literals in cipher to field mapping

* add some basic schema validation
2026-04-13 16:35:20 -05:00
Bernd Schoolmann
a942e21b22
[PM-31119] Run side-effects in sdk unlock service (#20004)
* Run side-effects in sdk unlock service

* Revert feature flag

* Tests and fix cli

* Set user ever had user key and add comment

* Update sdk

* Prettier

* Cleanup

* Only set biometric unlock when biometric enabled

* Clean up tests

* Fix DI

* Cleanup

* Cleanup

* Prettier

* Add test coverage and rename

* Cleanup tests

* Prettier

* Cleanup
2026-04-10 12:08:48 +02:00
renovate[bot]
0cdcd347dd
[deps] Vault: Update @koa/router to v15.4.0 (#19845)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-09 15:04:29 -07:00
Nick Krantz
14cd2ad341
[PM-26713] Refactor Attachment Uploads to use XMLHTTPRequest (#19634)
* allow consumers of upload service to input block size

* implement progress bar for cipher attachment uploads

* refactor to use a constant for available block sizes

* rework tests to use AzureUploadBlockSize

* update cipher attachments to ensure 100% is shown for all attachments

* do not allocate real memory in test

* update file uploads to use `XMLHttpRequest` when possible to track progress

* remove unused block size

* update tests + make options optional

* fix unit tests to align with single block approach

* add optional chaining for optional parameter

* remove duplicate import

* catch error from xhr send

* remove redundant try/catch block

* use if/else syntax in attachment template

* add `applyPlatformHeaders` to consolidate header creations between methods.

* add feature flag for file upload changes for progress

* update constructor parameters

* only pass object when feature flag is enabled
2026-04-09 13:23:33 -05:00
Bernd Schoolmann
c9352c01d9
[PM-32864] Remove local masterkey hash (#19277)
* Remove local masterkey hash

* Remove more instances of local master key hash

* remove dependence on service

* Fix failing build

* Fix failing build

* Fix tests

* Fix test

* Fix

* Prettier

* Fix merge conflicts

* Fix cli

* Remove master key from uv service (#19278)

* Revert "Remove master key from uv service (#19278)" (#19697)

This reverts commit 8e53fe6a11.

* Cleanup local master key hash

* Fix test
2026-04-09 10:34:03 -04:00
Mike Amirault
c755016915
[PM-33993] Fix CLI bug that allowed File Send downloads to save at arbitrary paths (#19890) 2026-04-06 09:57:19 -04:00
rr-bw
4a196a533b
fix(sso-callback-server-host) [Auth/PM-32604] Specify argument in listen method (#19766)
Specifies localhost in the `callbackServer.listen()` method in `LoginCommand` (CLI) and `SSOLocalhostCallbackService` (Desktop)
2026-04-03 10:56:08 -07:00
Bernd Schoolmann
97329383a1
[PM-33173] Use unlock service for password login strategy (#19371)
Some checks failed
Scan / Check PR run (push) Has been cancelled
Testing / Run typechecking (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-browser junit:junit-browser.xml name:Browser paths:apps/browser bitwarden_license/bit-browser]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-cli junit:junit-cli.xml name:CLI paths:apps/cli bitwarden_license/bit-cli]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-desktop junit:junit-desktop.xml name:Desktop paths:apps/desktop]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-libs junit:junit-libs.xml name:Libs paths:libs bitwarden_license/bit-common]) (push) Has been cancelled
Testing / Run tests - ${{ matrix.test-group.name }} (map[artifact:jest-coverage-web junit:junit-web.xml name:Web paths:apps/web bitwarden_license/bit-web]) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (macos-14) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (ubuntu-22.04) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (windows-2022) (push) Has been cancelled
Testing / Rust Coverage (push) Has been cancelled
Scan / Checkmarx (push) Has been cancelled
Scan / Sonar (push) Has been cancelled
Testing / Upload to Codecov (push) Has been cancelled
Testing / Run tests (push) Has been cancelled
* Use unlock service for login

* Fix build

* Apply feedback to move more logic behind feature flag, and use newer unlock service

* Fix types

* Fix type

* Fix test

* Fix dependencies on cli

* Cleanup

* Fix types

* Fix imports

* Fix eslint

* Prettier

* Address feedback

* Eslint

* Move unlockServiceForPasswordLogin to passwordloginstrategydata

* Eslint
2026-04-03 12:42:17 +09:00
Nick Krantz
30ab005da5
[PM-19168] Remove Archive Feature Flag (#19829)
* remove archive feature flag

* fix dependency within services module
2026-03-30 10:23:38 -05:00