Page MenuHomePhabricator

[keyserver] add removeReservedUsername method to rust-node-addon
ClosedPublic

Authored by varun on Jun 13 2023, 10:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 9:00 AM
Unknown Object (File)
Wed, Apr 24, 9:00 AM
Unknown Object (File)
Wed, Apr 24, 9:00 AM
Unknown Object (File)
Wed, Apr 24, 9:00 AM
Unknown Object (File)
Wed, Apr 24, 8:59 AM
Unknown Object (File)
Wed, Apr 24, 8:56 AM
Unknown Object (File)
Wed, Apr 24, 4:40 AM
Unknown Object (File)
Mar 4 2024, 3:18 AM
Subscribers

Details

Summary

Added an identity client method to call the removeReservedUsername RPC.
We will need to call this when an account is deleted on Ashoat's keyserver to keep the Identity service aware of which usernames should be reserved.

Depends on D8201

Test Plan

called this client method from keyserver.js with a signed message (signed by a hardcoded ed25519 key) and an existing reserved username and saw that the DDB table was updated

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jon added inline comments.
keyserver/addons/rust-node-addon/src/identity_client/remove_reserved_username.rs
21 ↗(On Diff #27712)

Still not a fan of using such a gneeric error. Really makes debugging difficult when things start failing.

Guess I'm okay with this since this is meant to be a transitional workflow

This revision is now accepted and ready to land.Jun 14 2023, 7:40 AM

rebase (properly, this time)