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)
Mon, Jun 24, 1:30 AM
Unknown Object (File)
Sun, Jun 23, 9:01 PM
Unknown Object (File)
Sat, Jun 22, 11:08 PM
Unknown Object (File)
Fri, Jun 21, 10:55 PM
Unknown Object (File)
Fri, Jun 21, 9:46 PM
Unknown Object (File)
Tue, Jun 18, 5:24 PM
Unknown Object (File)
Mon, Jun 17, 5:23 AM
Unknown Object (File)
Fri, Jun 14, 1:18 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.