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)
Sat, Dec 21, 7:22 PM
Unknown Object (File)
Fri, Dec 20, 12:40 AM
Unknown Object (File)
Sat, Dec 14, 4:28 PM
Unknown Object (File)
Sat, Dec 14, 4:28 PM
Unknown Object (File)
Sat, Dec 14, 4:28 PM
Unknown Object (File)
Sat, Dec 14, 4:28 PM
Unknown Object (File)
Sat, Dec 14, 4:28 PM
Unknown Object (File)
Sat, Dec 14, 4:28 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.