Page MenuHomePhabricator

[keyserver] Adding metadata to the Tunnelbroker client constructor
ClosedPublic

Authored by max on Feb 20 2023, 2:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 8:07 PM
Unknown Object (File)
Sun, Nov 10, 7:39 AM
Unknown Object (File)
Fri, Nov 8, 4:51 PM
Unknown Object (File)
Thu, Nov 7, 9:45 PM
Unknown Object (File)
Sun, Oct 27, 6:17 PM
Unknown Object (File)
Sat, Oct 19, 9:23 PM
Unknown Object (File)
Sat, Oct 19, 2:15 AM
Unknown Object (File)
Sat, Oct 19, 2:15 AM
Subscribers

Details

Summary

This diff adds passing of the deviceID as metadata to the bidirectional stream when connecting to the Tunnelbroker through the Rust shared client library. Passing the metadata implemented by ejecting using the metadata_mut() practice.

Linear tasks:

Test Plan
  • Connecting to the running Tunnelbroker instance will result in a successful authentication in a reduced state (redis-replacement) mode.
  • When connecting without deviceID provided in the metadata the Tunnelbroker will return a following error: "Expected 'deviceID' value in metadata is not provided".

Diff Detail

Repository
rCOMM Comm
Branch
tb-client-add-metadata
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
max published this revision for review.Feb 20 2023, 2:54 AM
max edited the summary of this revision. (Show Details)
max edited the test plan for this revision. (Show Details)
max added reviewers: varun, bartek.

what is device ID in the context of tunnelbroker? just curious because we're replacing the concept of a device ID with a device public key in the Identity service

In D6771#202707, @varun wrote:

what is device ID in the context of tunnelbroker? just curious because we're replacing the concept of a device ID with a device public key in the Identity service

At the moment Tunnelbroker uses deviceID concept. I've created a follow-up task for the 0.6.
Thanks for pointing out this @varun !

Rebasing on master to fix build.

This revision is now accepted and ready to land.Feb 24 2023, 1:13 AM

Fixing commit and rebasing on master.