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
F3492616: D5998.diff
Thu, Dec 19, 12:50 AM
F3491017: D5998.id20575.diff
Wed, Dec 18, 6:16 PM
F3491012: D5998.id20581.diff
Wed, Dec 18, 6:16 PM
F3491011: D5998.id20251.diff
Wed, Dec 18, 6:16 PM
F3490819: D5998.id20028.diff
Wed, Dec 18, 5:34 PM
F3490818: D5998.id20025.diff
Wed, Dec 18, 5:34 PM
F3488660: D5998.id.diff
Wed, Dec 18, 10:59 AM
Unknown Object (File)
Sat, Dec 7, 11:15 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.