Page MenuHomePhabricator

[native/rust_library] Adding `openssl`, `base64`, `anyhow` dependencies
AbandonedPublic

Authored by varun on Dec 22 2022, 7:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 5:21 AM
Unknown Object (File)
Wed, Nov 13, 5:21 AM
Unknown Object (File)
Wed, Nov 13, 5:21 AM
Unknown Object (File)
Mon, Nov 4, 11:10 PM
Unknown Object (File)
Mon, Nov 4, 1:18 AM
Unknown Object (File)
Sat, Oct 26, 12:41 AM
Unknown Object (File)
Sep 26 2024, 11:13 PM
Unknown Object (File)
Sep 26 2024, 11:13 PM
Subscribers

Details

Summary

This diff introduces adding the following Rust dependencies:

  • OpenSSL: We need the OpenSSL crate for the signing capabilities in D5999. We are using vendored OpenSSL, in this case, the system OpenSSL library will be used (linked).
  • Base64: We are passing and getting the signed string from and to the Tunnelbroker in the Base64 format. The dependency is used in D5999.
  • Anyhow: We are using this crate to pass errors to the function caller easily. First, this crate is used in D5999.

Linear task: ENG-1333

Test Plan

All CI gates are passed.

Diff Detail

Repository
rCOMM Comm
Branch
native-tb-client-add-openssl-deps
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.

Move OpenSSL to be vendored.

max edited the test plan for this revision. (Show Details)
max added reviewers: jon, varun.
max published this revision for review.Dec 22 2022, 8:03 AM
This revision is now accepted and ready to land.Dec 23 2022, 2:30 PM
This revision now requires review to proceed.Dec 28 2022, 7:26 AM
This revision is now accepted and ready to land.Dec 28 2022, 8:59 AM

Interesting that this passed CI given it broke Android build

We use scripts/install_protobuf.sh to install v3.15.8 on the Buildkite agents. We should do the same thing for the GitHub runners instead of apt-get install -y protobuf-compiler.

This revision is now accepted and ready to land.Dec 29 2022, 2:47 AM

This diff will be landed after ENG-2563 will be resolved.

Rebasing on master changes.

I'll reopen this diff, but it will not be landed until the Rust OpenSSL problem on native will be resolved or we will replace the verifying function in D5999 without using OpenSSL. In this case, it will be abandoned, but for now it's better to keep it open to not to forget the state of the stack.

This revision is now accepted and ready to land.Jan 12 2023, 8:29 AM

Strongly recommend avoiding OpenSSL here

varun abandoned this revision.
varun edited reviewers, added: max; removed: varun.