Page MenuHomePhabricator

[native/rust_library] Tunnelbroker client - Adding of the `get_new_session_id` function
AcceptedPublic

Authored by max on Dec 27 2022, 3:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 5:23 AM
Unknown Object (File)
Sun, Nov 10, 5:55 PM
Unknown Object (File)
Sat, Nov 9, 11:13 PM
Unknown Object (File)
Wed, Nov 6, 3:35 PM
Unknown Object (File)
Mon, Nov 4, 1:19 AM
Unknown Object (File)
Sat, Nov 2, 3:32 AM
Unknown Object (File)
Oct 10 2024, 10:58 AM
Unknown Object (File)
Oct 5 2024, 8:36 AM
Subscribers

Details

Reviewers
jon
bartek
Summary

This diff introduces the get_new_session_id internal function which is a gRPC unary request to the Tunnelbroker server to create a new session and obtain a SessionID. The function gets the pointer to the Tonic client, and new session parameters (including signed nonce from the D6039, D5999), and returns the sessionID from the server.

Linear task: ENG-2434

Test Plan

Passing CI gates is enough because the Rust analyzer will catch any disparity between the gRPC request method and the gRPC proto schema.

Diff Detail

Repository
rCOMM Comm
Branch
native-tb-client-add-new-session-request
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
max published this revision for review.Dec 27 2022, 3:51 AM
max edited the summary of this revision. (Show Details)
max edited the test plan for this revision. (Show Details)
max added reviewers: jon, bartek.

Rubber stamping as there's no "smells", would like to eventually see a commtest around this

This revision is now accepted and ready to land.Dec 27 2022, 10:39 AM