1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-25 16:59:17 +01:00
bitwarden-browser/apps/browser
Matt Gibson 300b17aaeb
[PM-7653] Do not store disk-backed sessions as single blobs (#8852)
* Implement a lazy value class

This will be used as a source for composing key-protected storage from a single key source.

* Simplify local-backed-session-storage

The new implementation stores each value to a unique location, prefixed with `session_` to help indicate the purpose.

I've also removed the complexity around session keys, favoring passing in a pre-defined value that is determined lazily once for the service worker. This is more in line with how I expect a key-protected storage would work.

* Remove decrypted session flag

This has been nothing but an annoyance. If it's ever added back, it needs to have some way to determine if the session key matches the one it was written with

* Remove unnecessary string interpolation

* Remove sync Lazy

This is better done as a separate class.

* Handle async through type

* prefer two factory calls to incorrect value on races.

* Fix type

* Remove log

* Update libs/common/src/platform/misc/lazy.ts

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-04-22 10:14:38 -04:00
..
.vscode Multi root workspace tweaks (#2858) 2022-06-13 21:39:36 -05:00
config [PM-7653] Do not store disk-backed sessions as single blobs (#8852) 2024-04-22 10:14:38 -04:00
spec Rework derived state (#7290) 2024-01-04 14:47:49 -05:00
src [PM-7653] Do not store disk-backed sessions as single blobs (#8852) 2024-04-22 10:14:38 -04:00
store Autosync the updated translations (#8838) 2024-04-19 19:40:56 +00:00
.eslintrc.json [PM-5743] Implement eslint rule for usage of window object in background script (#7849) 2024-03-29 15:55:23 +00:00
.gitignore Ps/pm 2910/browser header component (#6641) 2023-10-25 18:27:32 +00:00
crowdin.yml Fix Crowdin Pull workflow (#2667) 2022-05-10 10:20:32 -04:00
gulpfile.js [DEVOPS-1719] Update Desktop certificates and provisioning profiles (#7777) 2024-02-05 08:22:07 -07:00
jest.config.js Ps/pm 5533/migrate decrypted user key (#7970) 2024-02-22 15:07:26 -05:00
package.json Bumped browser,desktop version to (#8684) 2024-04-10 21:45:31 +00:00
postcss.config.js [PM-2237] Add tailwind to desktop & browser (#5326) 2023-07-14 15:03:42 -04:00
README.md [PM-5632] Update Bitwarden extension review URLs (#7470) 2024-01-08 21:08:18 +01:00
tailwind.config.js [PM-2237] Add tailwind to desktop & browser (#5326) 2023-07-14 15:03:42 -04:00
test.setup.ts [PM-5744] Adjust Fido2 Content Script Injection to Meet mv3 Requirements (#8222) 2024-04-18 16:05:16 +00:00
tsconfig.json [PM-5744] Adjust Fido2 Content Script Injection to Meet mv3 Requirements (#8222) 2024-04-18 16:05:16 +00:00
tsconfig.spec.json [PM-3285] Autofill v2 Feature Branch (#5939) 2023-09-07 15:33:04 -05:00
webpack.config.js [PM-5744] Adjust Fido2 Content Script Injection to Meet mv3 Requirements (#8222) 2024-04-18 16:05:16 +00:00

Github Workflow build browser on master Crowdin Join the chat at https://gitter.im/bitwarden/Lobby

Bitwarden Browser Extension

The Bitwarden browser extension is written using the Web Extension API and Angular.

My Vault

Documentation

Please refer to the Browser section of the Contributing Documentation for build instructions, recommended tooling, code style tips, and lots of other great information to get you started.