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
F3508483: D6040.id20151.diff
Fri, Dec 20, 10:24 PM
F3508084: D6040.id20302.diff
Fri, Dec 20, 9:47 PM
F3507215: D6040.diff
Fri, Dec 20, 7:45 PM
F3500253: D6040.id20302.diff
Fri, Dec 20, 1:07 AM
Unknown Object (File)
Wed, Dec 18, 6:17 PM
Unknown Object (File)
Wed, Dec 18, 6:17 PM
Unknown Object (File)
Wed, Dec 18, 10:59 AM
Unknown Object (File)
Fri, Dec 6, 10:35 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