Skip to content
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

0.23.0 tls feature relies on rustls-platform-verifier, bringing other unwanted dependencies #1407

Closed
oleonardolima opened this issue Jun 11, 2024 · 4 comments · Fixed by #1419

Comments

@oleonardolima
Copy link
Contributor

In 0.23.0 the new tls feature brings all: ["tokio-rustls", "rustls-pki-types", "rustls-platform-verifier", "rustls"], which ends up bringing rustls-native-certs, and then openssl-probe. Even when using CertificateStore::Custom it's still requires tls feature, which will require rustls-platform-verifier.

Please let me know if missed something, but is there a way to still use tls without depending completely on rustls-platform-verifier ?

@niklasad1
Copy link
Member

niklasad1 commented Jun 12, 2024

hmm, lemme a have look.

You are correct, we need another feature for rust-platform-verifier...

@oleonardolima
Copy link
Contributor Author

@niklasad1 I'm taking a stab at this, what I'm currently thinking is having only two features:

  • tls allowing tls usage through a custom certificate store
  • rustls-platform-verifier allowing tls usage with the default rustls-platform-verifier

At least those two are the only ones I have in need right, only having an option to not rely on the rustls-platform-verifier, while still allowing the tls flow.

Please let me know if you had others in mind.

@niklasad1
Copy link
Member

Yeah I think the following would be good:

  • tls: depend only on rustls
  • tls-rustls-platform-verifier: default and depends both on rustls and rustls-platform-verifier

@oleonardolima
Copy link
Contributor Author

Yeah I think the following would be good:

  • tls: depend only on rustls
  • tls-rustls-platform-verifier: default and depends both on rustls and rustls-platform-verifier

@niklasad1 I did an initial approach here: #1419, please let me know what you think.

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