Page MenuHomePhabricator

[web-db] generate `CryptoKey` and persist
ClosedPublic

Authored by kamil on Mar 7 2023, 9:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 20, 5:24 PM
Unknown Object (File)
Feb 21 2024, 4:06 AM
Unknown Object (File)
Feb 21 2024, 1:57 AM
Unknown Object (File)
Feb 20 2024, 11:40 PM
Unknown Object (File)
Feb 13 2024, 2:37 AM
Unknown Object (File)
Feb 13 2024, 1:02 AM
Unknown Object (File)
Feb 13 2024, 12:24 AM
Unknown Object (File)
Feb 12 2024, 10:51 PM
Subscribers

Details

Summary

Generating crypto key for user and persist in indexedDB.

Depends on D6995, D6993

Test Plan

Run this code:

await webDBWorker.scheduleOnWorker({
  type: workerRequestMessageTypes.GENERATE_CRYPTO_KEY,
});

in check in indexedDB devtools if crypto key is properly persisted

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Mar 7 2023, 10:10 AM
web/types/worker-types.js
7 ↗(On Diff #23514)

Can we make this more explicit and tell that it is database encryption key? I guess there might be some other crypto keys in the future.

rebase, update const

web/types/worker-types.js
7 ↗(On Diff #23514)

Sure, good call

This revision is now accepted and ready to land.Mar 15 2023, 10:53 AM
This revision was automatically updated to reflect the committed changes.