Repository navigation
taplo: use native-tls to trust the system CA store - #576569
Merged
Merged
Conversation
taplo built with the default rustls-tls feature. reqwest then embeds the webpki-roots trust store, which still contains emSign ECC Root CA - G3. A cacert update did not change the roots that taplo trusts. Build with native-tls instead. reqwest then uses OpenSSL on Linux and Security.framework on Darwin, which read the system CA store. See NixOS#576544. Assisted-by: Claude Code (claude-opus-5)
Contributor
|
Hello, what do you think about using https://github.com/rustls/rustls-platform-verifier instead of switching back to openssl? |
✅
|
Contributor
|
Successfully created backport PR for |
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.
taplo built with the default rustls-tls feature. reqwest then embeds the webpki-roots trust store, which still contains emSign ECC Root CA - G3. A cacert update did not change the roots that taplo trusts.
Build with native-tls instead. reqwest then uses OpenSSL on Linux and Security.framework on Darwin, which read the system CA store.
Tested on x86_64-linux with
taplo checkon a Cargo.toml whose#:schemais https://json.schemastore.org/cargo.json (fresh HOME, no cache): the old binary validates with any SSL_CERT_FILE; the new one fails to fetch the schema with one unrelated root and validates with the system bundle. The scanner (https://github.com/zimbatm/nix-cacert-scan) finds 139 embedded roots before and none after.taplo.tests.toml-testpasses;withLsp = falsebuilds.Related to: #576485
Related to: #576544
Assisted-by: Claude Code (claude-opus-5)
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.