Skip to content

Apply tls-roots cargo feature to reqwest #597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tomhoule
Copy link

@tomhoule tomhoule commented Mar 28, 2025

The tls-roots feature makes axum discover system TLS certificates through rustls-native-certs, but not reqwest. This PR changes that so that the corresponding feature on reqwest is activated as well, so e.g. oidc discovery requests behave the same as gRPC requests with regards to TLS certificates.

I have no previous familiarity with this project other than as a user, so feedback is very welcome.

@tomhoule tomhoule marked this pull request as ready for review March 28, 2025 06:14
@buehler buehler enabled auto-merge (squash) April 4, 2025 09:56
auto-merge was automatically disabled June 25, 2025 07:59

Head branch was pushed to by a user without write access

@tomhoule tomhoule force-pushed the reqwest-tls-native-certs branch from 1cfcda7 to 3f53259 Compare June 25, 2025 07:59
@buehler buehler enabled auto-merge (squash) June 27, 2025 21:35
@buehler
Copy link
Collaborator

buehler commented Jun 27, 2025

Some minor linting errors, but then good to go

The tls-roots feature makes axum discover system TLS certificates through rustls-native-certs, but not reqwest. This PR changes that so that the corresponding feature on reqwest is activated as well, so e.g. oidc discovery requests behave the same as gRPC requests with regards to TLS certificates.
auto-merge was automatically disabled July 7, 2025 08:09

Head branch was pushed to by a user without write access

@tomhoule tomhoule force-pushed the reqwest-tls-native-certs branch from 3f53259 to 0ad2cf1 Compare July 7, 2025 08:09
@@ -55,7 +55,7 @@ api-settings-v2 = ["api-common", "zitadel-gen/zitadel-settings-v2" ]
api-user-v2 = ["api-common", "zitadel-gen/zitadel-user-v2" ]


tls-roots = ["tonic/tls-roots"]
tls-roots = ["tonic/tls-roots", "reqwest/rustls-tls-native-roots"]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only relevant line. The rest of the PR is to make existing code pass CI with the newest toolchain and clippy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants