Bernd Schoolmann
fa584f76b4
[PM-24683] Move change kdf service to SDK implementation ( #16001 )
...
* Add new mp service api
* Fix tests
* Add test coverage
* Add newline
* Fix type
* Rename to "unwrapUserKeyFromMasterPasswordUnlockData"
* Fix build
* Fix build on cli
* Fix linting
* Re-sort spec
* Add tests
* Fix test and build issues
* Fix build
* Clean up
* Remove introduced function
* Clean up comments
* Fix abstract class types
* Fix comments
* Cleanup
* Cleanup
* Update libs/common/src/key-management/master-password/types/master-password.types.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Update libs/common/src/key-management/master-password/services/master-password.service.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Update libs/common/src/key-management/master-password/abstractions/master-password.service.abstraction.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Update libs/common/src/key-management/master-password/types/master-password.types.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Update libs/common/src/key-management/master-password/abstractions/master-password.service.abstraction.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Add comments
* Fix build
* Add arg null check
* Cleanup
* Fix build
* Fix build on browser
* Implement KDF change service
* Deprecate encryptUserKeyWithMasterKey
* Update libs/common/src/key-management/master-password/abstractions/master-password.service.abstraction.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Update libs/common/src/key-management/master-password/abstractions/master-password.service.abstraction.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Update libs/common/src/key-management/master-password/abstractions/master-password.service.abstraction.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Add tests for null params
* Fix builds
* Cleanup and deprecate more functions
* Fix formatting
* Prettier
* Clean up
* Update libs/key-management/src/abstractions/key.service.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Make emailToSalt private and expose abstract saltForUser
* Add tests
* Add docs
* Fix build
* Fix tests
* Fix tests
* Address feedback and fix primitive obsession
* Consolidate active account checks in change kdf confirmation component
* Update libs/common/src/key-management/kdf/services/change-kdf-service.spec.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Add defensive parameter checks
* Add tests
* Add comment for follow-up epic
* Move change kdf service, remove abstraction and add api service
* Fix test
* Drop redundant null check
* Address feedback
* Add throw on empty password
* Fix tests
* Mark change kdf service as internal
* Add abstract classes
* Switch to abstraction
* Move change kdf to sdk
* Update tests
* Fix tests
* Clean up sdk mapping
* Clean up tests
* Check the argument to make_update_kdf
* Fix mock data
* Fix tests
* Fix relative imports
---------
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
2025-10-20 10:37:19 +00:00
Bernd Schoolmann
1c44640ea5
[PM-16541] Key rotation & enrollment trust for emergency access & organizations ( #12655 )
...
* Implement key rotation v2
* Pass through masterpassword hint
* Properly split old and new code
* Mark legacy rotation as deprecated
* Throw when data is null
* Cleanup
* Add tests
* Fix build
* Update libs/key-management/src/key.service.spec.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Update apps/web/src/app/auth/settings/change-password.component.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Add documentation
* Centralize loading logic
* Implement trust dialogs
* Fix build and clean up
* Add tests for accept organization component
* Fix enrollment
* Update apps/web/src/app/admin-console/organizations/manage/organization-trust.component.html
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Cleanup according to feedback
* Change div to ng-container
* Init uninited strings
* Fix type errors on dialog config
* Fix typing
* Fix build
* Fix build
* Update libs/key-management-ui/src/key-rotation/key-rotation-trust-info.component.ts
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
* Fix linting
* Undo legacy component import change
* Simplify dialog text
---------
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com >
2025-04-07 13:41:19 +02:00
Jordan Aasen
2c118d9f01
[PM-16925] - fix all restricted imports in vault ( #13236 )
...
* fix all restricted imports in vault
* fix spec
* remove export
2025-02-04 14:26:03 -08:00
Bernd Schoolmann
72121cda94
[PM-10741] Refactor biometrics interface & add dynamic status ( #10973 )
2025-01-08 10:46:00 +01:00
Thomas Avery
971c157f56
[PM-12700] Add private key regeneration process ( #11829 )
...
* add user asymmetric key api service
* Add user asymmetric key regen service
* add feature flag
* Add LoginSuccessHandlerService
* add loginSuccessHandlerService to BaseLoginViaWebAuthnComponent
* Only run loginSuccessHandlerService if webAuthn is used for vault decryption.
* Updates for TS strict
* bump SDK version
* swap to combineLatest
* Update abstractions
2024-12-16 12:00:17 -06:00
Bernd Schoolmann
38c4eeb27d
[PM-14542] Move kdf to km ownership ( #11877 )
...
* Move kdf to km ownership
* Fix duplicate import
* Remove whitespace
* Fix double imports
* Fix desktop build
* Fix test error
* Fix imports
* Move ownership of kdftype to km
* Fix imports
---------
Co-authored-by: Matt Bishop <mbishop@bitwarden.com >
2024-11-21 13:45:28 +01:00
Bernd Schoolmann
e83dca529b
[PM-12607] Move key rotation to km ownership ( #11709 )
...
* Move key rotation to km ownership
* Fix build
* Move userkey rotation data provider abstraction to km ownership
* Move userkey rotation data provider abstraction to km ownership
* Fix linting
* Fix CODEOWNERS for key-management web
* Remove incorrect export
* Fix import error
2024-10-26 13:47:40 +02:00
Bernd Schoolmann
b486fcc689
[Pm-13097] Rename cryptoservice to keyservice and move it to km ownership ( #11358 )
...
* Rename cryptoservice to keyservice
* Rename cryptoservice to keyservice
* Move key service to key management ownership
* Remove accidentally added file
* Fix cli build
* Fix browser build
* Run prettier
* Fix builds
* Fix cli build
* Fix tests
* Fix incorrect renames
* Rename webauthn-login-crypto-service
* Fix build errors due to merge conflicts
* Fix linting
2024-10-24 19:41:30 +02:00
Bernd Schoolmann
19f547e638
[PM-8836] Move ownership of biometrics to key-management ( #10818 )
...
* Move ownership of biometrics to key-management
* Move biometrics ipc ownership to km
* Move further files to km; split off preload / ipc to km
* Fix linting
* Fix linting
* Fix tests
* Fix tests
* Update .github/CODEOWNERS
Co-authored-by: Maciej Zieniuk <167752252+mzieniukbw@users.noreply.github.com >
* Update .github/CODEOWNERS
Co-authored-by: Maciej Zieniuk <167752252+mzieniukbw@users.noreply.github.com >
* Change ownership of native messaging to key-management
* Move biometrics to libs/key-management
* Add README to capital whitelist
* Update package-lock.json
* Move km to key-management
* Move km to key-management
* Fix build for cli
* Import fixes
* Apply prettier fix
* Fix test
* Import fixes
* Import fixes
* Update libs/key-management/README.md
Co-authored-by: Maciej Zieniuk <167752252+mzieniukbw@users.noreply.github.com >
* Update libs/key-management/package.json
Co-authored-by: Maciej Zieniuk <167752252+mzieniukbw@users.noreply.github.com >
* Update lock file
* Change imports to top level km package
---------
Co-authored-by: Maciej Zieniuk <167752252+mzieniukbw@users.noreply.github.com >
2024-09-30 18:14:32 +02:00