Jacob Fink
87bf80a461
add new types to tests
2023-06-20 09:15:15 -04:00
Jacob Fink
a24c49adae
fix linter
2023-06-19 16:34:25 -04:00
Jacob Fink
abd2adb0b6
remove state no longer needed and add JSDOC
2023-06-19 14:36:25 -04:00
Jacob Fink
3e5e45f147
check for ephemeral pin before process reload
2023-06-19 09:49:26 -04:00
Jacob Fink
7f0749ca5c
share disk cache to fix syncing issues between contexts
2023-06-19 09:49:26 -04:00
Jacob Fink
b9de7535ca
improve error strings in crypto service
2023-06-19 09:49:25 -04:00
Jacob Fink
61ba9692bc
migrate native messaging for biometrics to use new key model
...
- support backwards compatibility
- update safari web extension to send user key
- add error handling
2023-06-19 09:49:24 -04:00
Jacob Fink
9c6739f40a
update account model with new keys serialization
2023-06-19 09:49:24 -04:00
Jacob Fink
7110e3cda6
fix EncString serialization issues & various fixes
...
Co-authored-by: Matt Gibson <MGibson1@users.noreply.github.com>
2023-06-19 09:49:24 -04:00
Jacob Fink
8353d67e1f
add org key type and new method to build a data enc key for orgs
2023-06-19 09:49:23 -04:00
Jacob Fink
2789fdc393
move crypto service jsdoc to abstraction
2023-06-19 09:49:22 -04:00
Jacob Fink
92d714ae29
remove clearEncKey from crypto service
2023-06-19 09:46:43 -04:00
Jacob Fink
42db4eb0ac
remove old EncKey methods from crypto service
2023-06-19 09:46:43 -04:00
Jacob Fink
d79f2e24be
update device-crypto service with new crypto service
2023-06-19 09:46:42 -04:00
Jacob Fink
3b7f57fd20
update change password components with new crypto service
2023-06-19 09:46:42 -04:00
Jacob Fink
2aa303d17e
fix crypto calls for key connector and vault timeout settings
2023-06-19 09:46:41 -04:00
Jacob Fink
9a12cb099a
migrate biometrics key
...
- migrate only on retrieval
2023-06-19 09:46:41 -04:00
Jacob Fink
56c750d375
finish migrate auto key if needed
...
- migrate whenever retrieved from storage
- add back the user symmetric key toggle
2023-06-19 09:46:41 -04:00
Jacob Fink
7963d3c996
clean up the old pin keys in more flows
...
- in the case that the app is updated while logged in and the user changes their pin, this will clear the old pin keys
2023-06-19 09:46:40 -04:00
Jacob Fink
62c43794e9
remove additional keys in state service clean
2023-06-19 09:46:40 -04:00
Jacob Fink
c2893bd0a8
migrate auto key
...
- add helper to internal crypto service method to migrate
2023-06-19 09:46:40 -04:00
Jacob Fink
9ce3b4976b
set user symmetric key on lock component
...
- add missed key suffix types to crypto service methods
2023-06-19 09:46:39 -04:00
Jacob Fink
6fc7c406a4
update pin key when the user symmetric key is set
...
- always set the protected pin so we can recreate pin key from user symmetric key
- stop using EncryptionPair in account
- use EncString for both pin key storage
- update migration from old strategy on lock component
2023-06-19 09:46:39 -04:00
Jacob Fink
7837202180
migrate pin to use user's symmetric key instead of master key
...
- set up new state
- migrate on lock component
- use new crypto service methods
2023-06-19 09:46:39 -04:00
Jacob Fink
91ac281da0
migrate login strategies to new key model
...
- decrypt and set user symmetric key if Master Key is available
- rename keys where applicable
- update unit tests
2023-06-19 09:46:06 -04:00
Jacob Fink
82bc7662a1
update collection service to use new crypto service
2023-06-19 09:42:54 -04:00
Jacob Fink
46abba2135
update vault timeout service with new crypto service
2023-06-19 09:42:54 -04:00
Jacob Fink
ffc23bfcdb
update password generation service to use new crypto service
2023-06-19 09:42:54 -04:00
Jacob Fink
7a037724d5
update cipher service to use new crypto service
2023-06-19 09:42:54 -04:00
Jacob Fink
7d8c4a430a
update folder service to use new crypto service methods
2023-06-19 09:42:53 -04:00
Jacob Fink
3452e39b9d
update send service to use new crypto service methods
2023-06-19 09:42:53 -04:00
Jacob Fink
076ab184fd
update sync service to use new crypto service methods
2023-06-19 09:42:53 -04:00
Jacob Fink
f466c91469
update auth service to use new crypto service
2023-06-19 09:42:52 -04:00
Jacob Fink
4772166e83
separate the user key in memory from user keys in storage
2023-06-19 09:42:51 -04:00
Jacob Fink
f0438e5dd2
add setUserSymKeyMasterKey so we can set the encrypted user sym key from server
2023-06-19 09:42:51 -04:00
Jacob Fink
c7feae6238
add type to parameter of setUserKey in abstraction of crypto service
2023-06-19 09:42:50 -04:00
Jacob Fink
820c71d1a1
update makeKeyPair on crypto service to be generic
2023-06-19 09:42:50 -04:00
Jacob Fink
6dc454e5e7
add decryption with MasterKey method to crypto service
2023-06-19 09:42:02 -04:00
Jacob Fink
acd3ef2204
remove provided key from getKeyForUserEncryption
2023-06-19 09:42:01 -04:00
Jacob Fink
4ce2a17ea4
Begin refactor of crypto service to support new key structure
2023-06-19 09:42:01 -04:00
Jacob Fink
bc4b3f3d74
add storage for master key encrypted user symmetric key
2023-06-19 09:35:51 -04:00
Jacob Fink
702dfb7eaf
add new storage to replace MasterKey with UserSymKey
2023-06-19 09:35:50 -04:00
Rui Tomé
d3d17f1496
[AC-1144] Warn admins when removing or revoking users without master password ( #5494 )
...
* [AC-1144] Added new messages for warning removing/revoking user without master password
* [AC-1144] Added property 'hasMasterPassword' to OrganizationUserUserDetailsResponse and OrganizationUserView
* [AC-1144] Added user's name to 'No master password' warning
* [AC-1144] Added property 'hasMasterPassword' to ProviderUserResponse
* [AC-1144] Added alert to bulk "remove/revoke users" action when a selected user has no master password
* [AC-1144] Moved 'noMasterPasswordConfirmationDialog' method to BasePeopleComponent
* [AC-1144] Removed await from noMasterPasswordConfirmationDialog
* [AC-1144] Changed ApiService.getProviderUser to output ProviderUserUserDetailsResponse
* [AC-1144] Added warning on removing a provider user without master password
* [AC-1144] Added "No Master password" warning to provider users
* [AC-1144] Added "no master password" warning when removing/revoking user in modal view
* [AC-1144] Reverted changes made to ProviderUsers
* [AC-1144] Converted showNoMasterPasswordWarning() into a property
* [AC-1144] Fixed issue when opening invite member modal
2023-06-16 16:38:55 +01:00
André Bispo
1052f00b87
[PM-2475][PM-2536] Clicking "US" in region selector sets base URL ( #5604 )
2023-06-16 14:09:16 +01:00
Vincent Salucci
5cd51374d7
[AC-1416] Expose Organization Fingerprint ( #5557 )
...
* refactor: change getFingerprint param to fingerprintMaterial, refs PM-1522
* feat: generate and show fingerprint for organization (WIP), refs AC-1416
* feat: update legacy params subscription to best practice (WIP), refs AC-1461
* refactor: update to use reactive forms, refs AC-1416
* refactor: remove boostrap specific classes and update to component library paradigms, refs AC-1416
* refactor: remove boostrap specific classes and update to component library paradigms, refs AC-1416
* refactor: create shared fingerprint component to redude boilerplate for settings fingerprint views, refs AC-1416
* refactor: use grid to emulate col-6 and remove unnecessary theme extensions, refs AC-1416
* refactor: remove negative margin and clean up extra divs, refs AC-1416
* [AC-1431] Add missing UserVerificationModule import (#5555 )
* [PM-2238] Add nord and solarize themes (#5491 )
* Fix simple configurable dialog stories (#5560 )
* chore(deps): update bitwarden/gh-actions digest to 72594be (#5523 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* refactor: remove extra div leftover from card-body class, refs AC-1416
* refactor: use bitTypography for headers, refs AC-1416
* fix: update crypto service abstraction path, refs AC-1416
* refactor: remove try/catch on handler, remove bootstrap class, update api chaining in observable, refs AC-1416
* fix: replace faulty combineLatest logic, refs AC-1416
* refactor: simplify observable logic again, refs AC-1416
---------
Co-authored-by: Shane Melton <smelton@bitwarden.com>
Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-15 21:03:48 -05:00
Daniel Chateau
9ed59c6fa9
Update request headers sent to AnonAddy API. ( #5565 )
2023-06-14 22:59:29 +02:00
Robyn MacCallum
2b65b3f0f7
[AC-1383] Move collections to Vault ( #5424 )
...
* Move CollectionDialog to Vault
* Fix CollectionDialogModule imports
* Move CollectionAdminService and View to Vault
* Move CollectionService to Vault
* Split GroupService into internal and public facing classes
* Move collection models to vault
* lint spacing fix
* Move collection spec file
* Fix spec import
* Update apps/web/src/app/core/core.module.ts
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
* Remove CoreOrganizationModule from CollectionDialogModule
---------
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2023-06-14 08:38:24 -04:00
Andreas Coroiu
37010a6414
[PM-2642] Fix feature flags not working properly when urls load from storage ( #5598 )
...
* fix: feature flags not working properly
Due to race conditions the api url is not set during the first fetch och server config. This causes the config to be fetched from `api.bitwarden.com`. The config is then supposed to be re-fetched when the api url is set by the environment service, but due to a missing line this is not done when the urls are set from storage.
* feat: change to `Observable<void>`
2023-06-14 14:10:39 +02:00
Daniel James Smith
3b708d9311
Remove try-catch to display proper api-errors ( #5570 )
2023-06-14 11:28:32 +02:00
Daniel James Smith
72a5ba455c
[PM-2367] [BEEEP]: Extract password strength from password-generation-service ( #5502 )
...
* Extract passwordStrength from passwordGenerationService
Extract passwordStrength from password-generation.service.ts
Create new password-strength.service.ts
Create new password-strength.service.abstraction.ts
Register new password-strength service
Fix usages in libs
* Fix usage in web
* Fix usage in desktop
* Fix usage in CLI
* Fix usage in browser
Move password-generation-factory to tools
* Fix tests
* Change dependency in jslib-services.module
2023-06-13 23:22:25 +02:00