Page MenuHomePhabricator

[keyserver] update registerUser function
ClosedPublic

Authored by varun on Apr 7 2023, 10:47 AM.
Tags
None
Referenced Files
F2191863: D7356.id24825.diff
Thu, Jul 4, 5:53 PM
Unknown Object (File)
Wed, Jul 3, 7:03 AM
Unknown Object (File)
Wed, Jul 3, 12:54 AM
Unknown Object (File)
Sun, Jun 30, 2:35 PM
Unknown Object (File)
Sun, Jun 30, 5:19 AM
Unknown Object (File)
Sun, Jun 30, 1:25 AM
Unknown Object (File)
Sat, Jun 29, 6:57 PM
Unknown Object (File)
Sat, Jun 29, 2:59 PM
Subscribers

Details

Summary

this function now uses comm-opaque2 to handle OPAQUE registration and follows the new API spec defined in identity_client.proto

this function can be deprecated once we've successfully double-written all users from ashoat's keyserver to the identity service

Depends on D7355

Test Plan

TBD, will rebase on jon's stack to test this later

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Apr 7 2023, 10:58 AM
Harbormaster failed remote builds in B18120: Diff 24822!
Harbormaster returned this revision to the author for changes because remote builds failed.Apr 7 2023, 11:16 AM
Harbormaster failed remote builds in B18123: Diff 24825!
varun requested review of this revision.Apr 7 2023, 11:37 AM
keyserver/src/responders/user-responders.js
452–457 ↗(On Diff #24829)

I think it's fine to supply empty strings/arrays for these values for now since this is just for double-writing existing users. Later, when these users are on devices that talk directly to the identity service, they can provide the missing info

@ashoat let me know if i've missed something here

refactor registerUser to use existing type

jon added inline comments.
keyserver/addons/rust-node-addon/src/identity_client/register_user.rs
27–28 ↗(On Diff #24834)
41 ↗(On Diff #24834)

We will need some way for the user to reconcile these later, not entirely sure how to handle the transition of missing X3DH items. But I don't think there's a current linear task for this.

This revision is now accepted and ready to land.Apr 7 2023, 1:30 PM
This revision now requires review to proceed.Apr 7 2023, 1:30 PM

JS seems to follow from Rust changes. Docker changes make sense

This revision is now accepted and ready to land.Apr 7 2023, 6:13 PM
keyserver/addons/rust-node-addon/src/identity_client/register_user.rs
27–28 ↗(On Diff #24834)

this is an NAPI Status type, not Tonic. but error handling could definitely be improved. i'll tackle this after implementing the remaining APIs

41 ↗(On Diff #24834)

created one

This revision was automatically updated to reflect the committed changes.