Page MenuHomePhabricator

[identity] ensure identity reqwest crate has rustls-tls
ClosedPublic

Authored by will on Jun 28 2024, 1:00 PM.
Tags
None
Referenced Files
F3758121: D12621.id41825.diff
Fri, Jan 10, 8:13 AM
F3755601: D12621.diff
Fri, Jan 10, 5:13 AM
Unknown Object (File)
Fri, Dec 27, 6:36 AM
Unknown Object (File)
Mon, Dec 23, 1:49 PM
Unknown Object (File)
Tue, Dec 17, 10:57 PM
Unknown Object (File)
Mon, Dec 16, 7:06 PM
Unknown Object (File)
Mon, Dec 16, 7:06 PM
Unknown Object (File)
Mon, Dec 16, 7:06 PM
Subscribers

Details

Summary

We disabled default features for reqwest when we upgraded to cargo workspaces. This caused reqwest to compile without defalut TLS capability, leading to
https://linear.app/comm/issue/ENG-8611/identity-user-search-not-working-on-staging

This diff adds rustls-tls as a feature to the reqwest crate

Test Plan

Ran reqwest search query request to opensearch domain with no default features, causing

Error: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("opensearch-domain")), port: None, path: "/users/_search/", query: None, fragment: None }, source: hyper_util::client::legacy::Error(Connect, "invalid URL, scheme is not http") }

On adding back rustls-tls, this resolved the issue and returned search results. Tested on upgraded identity image and search results on the iOS simulator app was restored

Diff Detail

Repository
rCOMM Comm
Branch
reenable_default_reqwest
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

will published this revision for review.Jun 28 2024, 1:01 PM
This revision is now accepted and ready to land.Jun 28 2024, 1:01 PM

recompile backup_client from workspace cargo.toml change

revamp. No longer reenabling default features. Instead just adding to rustls-tls to identity Cargo.toml

will retitled this revision from [services] add back default features to reqwest in cargo workspaces to [identity] ensure identity reqwest crate has rustls-tls.Jun 28 2024, 2:58 PM
will edited the summary of this revision. (Show Details)
will edited the test plan for this revision. (Show Details)