fix: force reqwest to always use rustls backend#3486
Merged
Conversation
57a5764 to
7bd657e
Compare
|
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3486/docs/iroh/ Last updated: 2025-09-30T10:48:17Z |
11 tasks
Contributor
|
looks like this is not available in |
Member
Author
|
Pushed a commit that cfg's it out for wasm |
dignifiedquire
approved these changes
Sep 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This changes all uses of
reqwestin iroh to useClientBuilder::use_rustls_tls()to force using the rustls TLS backend, even if thedefault-tlsfeature got enabled through feature unification (we don't enable it in iroh directly).Reasoning:
We have reports of HTTPS net report probes failing. They do fail under the following circumstances:
reqwestuses the native-tls backend (which is platform dependent, and is openssl on linux) whenever thedefault-tlsfeature is enabled. it is on by default. if bothrustls-tlsanddefault-tlsfeatures are enabled, the native-tls backend wins.reqwestwithdefault-features = false, features = ["rustls-tls"], so without other deps changing features, the rustls backend is useddefault-tlsfeature for reqwest, due to feature unification iroh now by default also uses the native tls backend and not rustls anymoreBreaking Changes
Notes & open questions
Change checklist