Page MenuHomePhabricator

[native/rust_library] Tunnelbroker client - Adding of the `get_nonce_to_sign` function
AbandonedPublic

Authored by varun on Dec 27 2022, 3:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 24, 11:01 PM
Unknown Object (File)
Sat, Jun 22, 5:31 AM
Unknown Object (File)
Fri, Jun 21, 7:59 AM
Unknown Object (File)
Fri, Jun 21, 7:31 AM
Unknown Object (File)
Wed, Jun 12, 11:25 AM
Unknown Object (File)
Wed, Jun 12, 3:22 AM
Unknown Object (File)
Sat, Jun 1, 9:43 PM
Unknown Object (File)
Fri, May 31, 1:17 AM
Subscribers

Details

Reviewers
jon
max
Summary

This diff introduces the get_nonce_to_sign internal function which is a gRPC unary request to the Tunnelbroker server to obtain a nonce string to be signed. The function gets the pointer to the Tonic client and deviceID and returns the nonce from the server to be signed with the sign_string_with_private_key function from D5999.

This function also introduced a native_rust_library/src/tunnelbroker_client.rs file which will contain a requests functions.

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-nonce-to-sign-request
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
max edited the test plan for this revision. (Show Details)
max added reviewers: jon, varun.

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
varun abandoned this revision.
varun edited reviewers, added: max; removed: varun.