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)
Tue, Dec 17, 10:57 PM
Unknown Object (File)
Fri, Nov 29, 7:31 PM
Unknown Object (File)
Nov 13 2024, 8:07 PM
Unknown Object (File)
Nov 10 2024, 7:39 AM
Unknown Object (File)
Nov 8 2024, 4:51 PM
Unknown Object (File)
Nov 7 2024, 9:45 PM
Unknown Object (File)
Oct 27 2024, 6:17 PM
Unknown Object (File)
Oct 19 2024, 9:23 PM
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.