1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

Add consistent and contextual logging around decryption failure (#10404)

* Added more context to logging messages around decryption failure

* Added missing period.
This commit is contained in:
Todd Martin
2024-08-06 18:23:38 -04:00
committed by GitHub
parent 7cd6fcf265
commit e4ed4a3858
2 changed files with 10 additions and 4 deletions

View File

@@ -452,6 +452,9 @@ export default class MainBackground {
return new ForegroundMemoryStorageService();
}
// For local backed session storage, we expect that the encrypted data on disk will persist longer than the encryption key in memory
// and failures to decrypt because of that are completely expected. For this reason, we pass in `false` to the `EncryptServiceImplementation`
// so that MAC failures are not logged.
return new LocalBackedSessionStorageService(
sessionKey,
this.storageService,