clients/apps/cli/src/commands
SmithThe4th ad3121f535
[PM-12423] Migrate Cipher Decryption to Use SDK (#14206)
* Created mappings for client domain object to SDK

* Add abstract decrypt observable

* Added todo for future consideration

* Added implementation to cipher service

* Added adapter and unit tests

* Created cipher encryption abstraction and service

* Register cipher encryption service

* Added tests for the cipher encryption service

* changed signature

* Updated feature flag name

* added new function to be used for decrypting ciphers

* Added new encryptedKey field

* added new function to be used for decrypting ciphers

* Manually set fields

* Added encrypted key in attachment view

* Fixed test

* Updated references to use decrypt with feature flag

* Added dependency

* updated package.json

* lint fix

* fixed tests

* Fixed small mapping issues

* Fixed test

* Added function to decrypt fido2 key value

* Added function to decrypt fido2 key value and updated test

* updated to use sdk function without prociding the key

* updated localdata sdk type change

* decrypt attachment content using sdk

* Fixed dependency issues

* updated package.json

* Refactored service to handle getting decrypted buffer using the legacy and sdk implementations

* updated services and component to use refactored version

* Updated decryptCiphersWithSdk to use decryptManyLegacy for batch decryption, ensuring the SDK is only called once per batch

* Fixed merge conflicts

* Fixed merge conflicts

* Fixed merge conflicts

* Fixed lint issues

* Moved getDecryptedAttachmentBuffer to cipher service

* Moved getDecryptedAttachmentBuffer to cipher service

* ensure CipherView properties are null instead of undefined

* Fixed test

* ensure AttachmentView properties are null instead of undefined

* Linked ticket in comment

* removed unused orgKey
2025-05-14 07:30:01 -07:00
..
completion.command.ts Typescript-strict-plugin (#12235) 2024-12-09 20:58:50 +01:00
download.command.ts [PM-15994] Move encrypt service to km ownership (#13220) 2025-02-05 17:39:11 +01:00
edit.command.ts [PM-12423] Migrate Cipher Decryption to Use SDK (#14206) 2025-05-14 07:30:01 -07:00
encode.command.ts [PS-1884] [TDL-189] [TDL-203] Move libs/node files to CLI and rename per ADR12 (#4069) 2022-11-18 13:20:19 +01:00
get.command.ts [PM-12423] Migrate Cipher Decryption to Use SDK (#14206) 2025-05-14 07:30:01 -07:00
list.command.ts [PM-13323] Move remaining collection code to AC Team (#13731) 2025-03-13 17:18:47 -04:00
restore.command.ts [PM-19746] Add new permission check to browser (#14075) 2025-04-02 12:49:08 -04:00
serve.command.ts [BEEEP: PM-10190] Use strict TS checks in CLI service container (#10298) 2024-08-05 11:39:08 -04:00
status.command.ts Typescript-strict-plugin (#12235) 2024-12-09 20:58:50 +01:00
update.command.ts Add support for using a proxy when running bw update (#7347) 2024-12-10 09:36:14 -05:00