Skip to content

Upgrade to rustls-platform-verifier 0.6 #4373

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

Merged
merged 1 commit into from
Jun 6, 2025
Merged

Conversation

djc
Copy link
Contributor

@djc djc commented Jun 6, 2025

This is a little involved because the with_platform_verifier() call is now fallible, which means using a LazyLock would be a little annoying/wasteful since we'd have to store a Result in it. Use a OnceLock instead.

The changes in rustls-platform-verifier 0.6 (which I created) were directly inspired by #4305, and should make rustup error out (earlier/at all) when no certificates can be found in the platform certificate store on Unix platforms that don't have their own platform verifier (like Linux, the BSDs, etc -- pretty much any Unix except Darwin-based platforms and Android).

Fixes #4305.

@djc djc requested review from ChrisDenton and rami3l June 6, 2025 09:58
@rami3l
Copy link
Member

rami3l commented Jun 6, 2025

@djc Many thanks for the patch! I wish to have done this myself but looking at the changelog the migration path didn't seem extra obvious 🤔

PS: Oops, the diff is dirty so I cannot review it 🙏

@djc djc force-pushed the platform-verifier-0.6 branch from a27451d to 3cca450 Compare June 6, 2025 10:38
@djc
Copy link
Contributor Author

djc commented Jun 6, 2025

Oops, not sure what happened there. Should be better now.

@djc djc force-pushed the platform-verifier-0.6 branch from 3cca450 to 4b99873 Compare June 6, 2025 11:38
Copy link
Member

@rami3l rami3l left a comment

Choose a reason for hiding this comment

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

LGTM :D

@rami3l rami3l added this pull request to the merge queue Jun 6, 2025
Merged via the queue into master with commit a88c6f9 Jun 6, 2025
29 checks passed
@rami3l rami3l deleted the platform-verifier-0.6 branch June 6, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustup install behind a corporate proxy fails with TLS handshake eof
2 participants