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, 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)
Sat, Nov 23, 5:20 AM
Unknown Object (File)
Nov 18 2024, 10:42 AM
Unknown Object (File)
Nov 13 2024, 5:23 AM
Unknown Object (File)
Nov 10 2024, 5:55 PM
Unknown Object (File)
Nov 6 2024, 3:35 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.