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)
Wed, Nov 13, 5:23 AM
Unknown Object (File)
Sun, Nov 10, 5:55 PM
Unknown Object (File)
Wed, Nov 6, 3:35 PM
Unknown Object (File)
Mon, Nov 4, 1:19 AM
Unknown Object (File)
Mon, Nov 4, 1:19 AM
Unknown Object (File)
Sat, Nov 2, 3:32 AM
Unknown Object (File)
Sat, Nov 2, 3:32 AM
Unknown Object (File)
Sep 28 2024, 3:08 PM
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.