1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 14:04:03 +00:00

2202 Commits

Author SHA1 Message Date
Bernd Schoolmann
041e7743f8 Fix private key encryption 2025-03-06 19:25:09 +01:00
Bernd Schoolmann
4aeb20239f Add cose 2025-03-06 15:06:46 +01:00
Bernd Schoolmann
756bc67607 Merge branch 'km/refactor-symmetric-keys-1' into km/cose 2025-03-06 13:08:28 +01:00
Bernd Schoolmann
3db50d3aed Merge branch 'km/pm-17984/remove-cbc128hmac' into km/cose 2025-03-06 13:04:50 +01:00
Bernd Schoolmann
ceb64118c8 Merge remote-tracking branch 'origin/sdk-encrypt-service' into km/cose 2025-03-06 12:04:27 +01:00
Matt Gibson
ad9a37875b Workers handle multiple commands. New command to feature flags 2025-03-05 16:45:08 -08:00
Matt Gibson
5c4c6cdea1 Push decryption to SDK and prep for feature flag control 2025-03-05 16:45:08 -08:00
Matt Gibson
394ed91993 Allow for easy creation of EncArrayBuffer
These are to support SDK processing of `Encrypted` interface items.
2025-03-05 16:45:08 -08:00
Matt Gibson
ebb5584d43 Allow for on-config updated pushes to services
This is an inversion of control for low-level services that cannot depend on ConfigService. Instead, they can register with a subscription to be notified when the server config updates and set their own feature flag states from that.
2025-03-05 16:45:08 -08:00
Matt Gibson
5ade8f69bc Extract feature flag resolution to pure function
This will be used to evaluate feature flag values from ServerConfigs
elsewhere in the application
2025-03-05 16:45:08 -08:00
Matt Gibson
3392d18957 Make Encrypted type strict
This simply matches the existing types, not what we would like `EncString`, `EncArrayBuffer`, and `Encrypted` to represent. We can't throw in construction of EncStrings because that would cause early errors all over the place we aren't ready to deal with, yet.
2025-03-05 16:45:08 -08:00
Shane Melton
a7643ebab0 [PM-18650] [PM-18640] Fix change login password service defects (#13596)
* [PM-18650] Ensure http url is returned if well-known cannot be confirmed

* [PM-18650] Modify getChangePasswordUrl logic to check each cipher URL until a valid well-known url is found
2025-03-05 11:49:54 -08:00
Daniel James Smith
f95ce4e442 [PM-18913] Remove unneeded margin from send search component (#13698)
* Remove unneeded margin

* Made send-search.component ts-strict compliant

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2025-03-05 10:04:46 -05:00
Brandon Treston
6037c583eb remove feature flag (#13677) 2025-03-04 14:53:02 -05:00
Daniel James Smith
2b29bf8c23 Move SendAddEditDialog from web to bitwarden/send-ui (#13679)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2025-03-04 13:24:00 -05:00
Jason Ng
f7642aa0c6 [PM-14423] item view security task (#13485)
* show pending change password tasks for ciphers in extension
2025-03-04 12:18:40 -05:00
Jordan Aasen
13213585b2 [PM-17820] - Browser/Web - update button and label state in username generator (#13189)
* add event handling for username generator

* fix specs. change function name to not be of an event type

* update specs

* rename function

* revert name change

* fix spec

* bubble algorithmSelected up to generator components. add disabled button tests

* add typeSelected event

* revert addition of onType.

* apply same logic in onAlgorithmSelected to web and desktop
2025-03-03 11:44:34 -08:00
✨ Audrey ✨
e10b5af9d3 [PM-16791] introduce generator profile provider (#13588) 2025-03-03 12:43:34 -05:00
Jared Snider
92f027af5e fix(LoginComp + LoginStrategies): [Auth/PM-18654] Refreshed UI - Desktop TDE JIT provisioned user creation errors with missing org SSO id (#13619)
* PM-18654 - State Service & Login Strategy Refactor - move env seeding into login strategy so that new accounts always load w/ the correct environment

* PM-18654 - SSO Comp - just use user id from auth result

* PM-18654 - Config Service - (1) don't allow cascading calls to the renewConfig by using a private promise (2) Replace shareReplay with share configured with manual timer

* PM-18654 - LoginComponents - detail issue and possible fix

* PM-18654 - DesktopLoginV1Comp - use correct destroy hook

* PM-18654 - LoginComp - clean up no longer correct comment

* PM-18654 - New Device Verification Component - Remove unused PasswordLoginStrategy dependency

* PM-18654 - Browser Home Component - fix qParam logic

* PM-18654 - DefaultConfigService - revert changes as they aren't necessary to fix the bug.

* PM-18654 - DefaultConfigService - remove commented code

* PM-18654 - LoginStrategy - add comment

* PM-18654 - Fix login strat tests
2025-03-03 12:09:35 -05:00
Shane Melton
5b215cf193 [PM-18707] Fix desktop live sync (#13624)
* [PM-18707] Remove redundant cipherService subscription

* [PM-18707] Add artificial tick delay to cipherService to allow for ElectronStore storage service to fully save before continuing
2025-03-03 08:33:48 -08:00
Oscar Hinton
325fdc3f3a [PM-18659] Remove console logs from importers unit tests (#13583)
* Remove console logs from importers unit tests

* Add fixme
2025-03-03 15:59:50 +00:00
Oscar Hinton
a7a5a2771e Remove runOnlyPendingTimers (#13581) 2025-03-03 16:51:08 +01:00
Bernd Schoolmann
6a182c1dca Fix build 2025-03-03 13:48:37 +01:00
Bernd Schoolmann
18bf1f5376 Merge main 2025-03-03 13:47:33 +01:00
Matt Gibson
40f7a0d73f Parse web push payload JSON (#13594) 2025-02-28 17:53:43 +00:00
Bernd Schoolmann
b4226cdd94 Remove old symmetric key representations in symmetriccryptokey 2025-02-28 18:00:34 +01:00
Bernd Schoolmann
7ba8dd98e6 Validate parameters in encrypt service tests (#13630) 2025-02-28 17:15:06 +01:00
Bernd Schoolmann
b7e2d28ead Fix ts strict warning 2025-02-28 16:35:31 +01:00
Bernd Schoolmann
c8ab140000 Re-add type 0 encryption 2025-02-28 16:13:32 +01:00
Bernd Schoolmann
8b3fecf510 Merge changes from main 2025-02-28 16:12:41 +01:00
Jake Fink
43f5423e78 [PM-12606] Move Vault Timeout and Vault Timeout Settings to KM (#13405)
* move vault timeout and vault timeout settings to km

* move browser vault timeout service to km

* fix cli import

* fix imports

* fix some relative imports

* use relative imports within common

* fix imports

* fix new imports

* Fix new imports

* fix spec imports
2025-02-28 09:55:03 -05:00
Bernd Schoolmann
ad2e5e7f5c Merge main 2025-02-28 15:32:34 +01:00
Bernd Schoolmann
0ee2e0bf93 [PM-18697] Increase test coverage for encrypt service and symmetric crypto key (#13628)
* Increase coverage for EncryptService and SymmetricCryptoKey

* Re-add missing test
2025-02-28 14:20:31 +01:00
Todd Martin
319a4dd1cc Remove checks of device verification flags on client (#13604) 2025-02-27 13:17:47 -05:00
Jared Snider
e6aaa65563 fix(New-UI-Login-SSO): [Auth/PM-18693] LoginComp - fix form validation not showing up on SSO click (#13601) 2025-02-27 10:53:24 -05:00
Todd Martin
ec488e4f84 [PM-18664] Prevent display of Auth Request notification on triggering device (#13597)
* Send device identifier in header.

* Added null to apiUrl property for strict typing.

* Added null to apiUrl for strict typing.
2025-02-27 10:00:52 -05:00
Todd Martin
182ff6481d Remove early return from redirect initialization. (#13585) 2025-02-26 21:49:48 -05:00
Shane Melton
b9ebf0704a [PM-14426] At-risk password Getting Started Carousel (#13383)
* [PM-14426] Add hideIcon input to simple dialog component

* [PM-14426] Introduce dark-image-source.directive.ts

* [PM-14426] Tweaks to the Vault Carousel component
- Create a Carousel NgModule so that the carousel component and carousel slide component are exported
- Update barrel files
- Adjust min height calculation logic to wait for ;hidden slides to finish rendering before calculating height

* [PM-14426] Introduce at risk password getting started carousel component and images

* [PM-14426] Refactor at-risk-password-page.service.ts to use the same state definition for banner and carousel dismissal

* [PM-14426] Open the getting started carousel on page load

* [PM-14426] Add tests

* [PM-14426] Use booleanAttribute

* [PM-14426] Fix failing type checking
2025-02-26 13:24:35 -08:00
Patrick-Pimentel-Bitwarden
d999d91f19 fix(sso-routing): [Auth/PM-13458] Fixes for routing flow on TDE login (#13479)
* fix(sso-routing): [PM-13458] Fixes for routing flow on TDE login - Fixed routing flow and added comments.

* fix(sso-routing): [PM-13458] Fixes for routing flow on TDE login - Undid the old sso component flow because we determined it's not worth fixing.

* fix(sso-routing): [PM-13458] Fixes for routing flow on TDE login - Removed flow entirely.
2025-02-26 14:54:06 -05:00
rr-bw
359007ab8d fix(auth): [PM-18639] Resend Admin Auth Request After Previous Denial (#13574) 2025-02-26 11:44:41 -08:00
Bernd Schoolmann
8cfe331a00 Refactor symmetric keys and increase test coverage 2025-02-26 15:43:31 +01:00
Bernd Schoolmann
e2af7c625c Merge branch 'main' into km/pm-17984/remove-cbc128hmac 2025-02-26 12:51:16 +01:00
Andreas Coroiu
ce5a5e3649 Improve SDK direct function usage (#13353)
* feat: initalize WASM/SDK directly after load

* fix: default sdk service trying to set log level

* feat: wait for sdk to load in sdk service

* fix: add required disposable polyfills

* feat: update sdk version

* feat: replace rc-specific workaround with global polyfill

* fix: sdk service tests
2025-02-26 09:08:42 +01:00
Jared Snider
44d50a70c2 Auth/PM-5712 - Extension & Desktop Account Switcher - Fix incorrect env showing when adding new accounts (#13362)
* PM-5712 - Refactor env service to require user id instead of having global and active user state fallbacks per working session with Justin.

* PM-5712 - AccountSwitcherService tests - fix tests and add env assertions.
2025-02-25 17:58:26 -05:00
Oscar Hinton
cec117459b [PM-18599] Forbid unknown property and element in tests (#13556)
Fail tests when relying on unknownProperties or unknownElements. Existing instances are whitelist and have tickets created and assigned to the relevant teams.
2025-02-25 14:02:19 -08:00
Danielle Flinn
e6e6058f9e CL-261: update popover styles and fix stories (#13547)
* updated popover styles and fix stories

* fixed alignment of icon button title and added long title story
2025-02-25 13:55:21 -08:00
cyprain-okeke
2bb86631f3 [PM-13127]Breadcrumb event logs (#13386)
* Changes for the dummy event

* Add the request UI changes

* refactoring the code

* swapping out the datasources

* Put the changes behind a feature flag

* Rename the Feature flag to lowercase

* Rename the feature flag to epic

* Changes to resolve the pr comments

* Merge the two tables

* commit changes

* Remove unused code

* Add the suggested of content projection

* Resolve the failing ui issues

* remove unused code

* Resolve the repeated code
2025-02-25 20:49:50 +00:00
cd-bitwarden
a5fe0857ee Fix for the issue where folders do not log when you have two accounts and you lock both then login to the second account (#13273) 2025-02-25 15:15:35 -05:00
Vicki League
6d1914f43d [CL-485] Add small delay for async action loading state (#12835) 2025-02-25 09:56:01 -05:00
Jared Snider
e06a482d6e fix(NewDeviceVerification): [Auth/PM-18580] Fix loading state on submit (#13545) 2025-02-24 17:27:15 -05:00