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)
Mon, Apr 22, 4:22 AM
Unknown Object (File)
Sun, Apr 7, 4:17 PM
Unknown Object (File)
Sun, Apr 7, 4:17 PM
Unknown Object (File)
Sun, Apr 7, 4:17 PM
Unknown Object (File)
Sun, Apr 7, 4:17 PM
Unknown Object (File)
Sun, Apr 7, 4:15 PM
Unknown Object (File)
Sun, Apr 7, 3:52 PM
Unknown Object (File)
Mar 21 2024, 12:42 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.