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, Nov 27, 12:53 AM
Unknown Object (File)
Wed, Nov 27, 12:25 AM
Unknown Object (File)
Sat, Nov 16, 1:16 PM
Unknown Object (File)
Sat, Nov 2, 1:01 AM
Unknown Object (File)
Sat, Nov 2, 1:01 AM
Unknown Object (File)
Sat, Nov 2, 1:01 AM
Unknown Object (File)
Sat, Nov 2, 1:01 AM
Unknown Object (File)
Sat, Nov 2, 1:01 AM
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
Branch
land-db
Lint
No Lint Coverage
Unit
No Test Coverage

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.