Skip to content

taplo: use native-tls to trust the system CA store - #576569

Merged
Defelo merged 1 commit into
NixOS:masterfrom
zimbatm:cacert-taplo
Oct 30, 2026
Merged

Defelo merged 1 commit into
NixOS:masterfrom
zimbatm:cacert-taplo

Conversation

@zimbatm

@zimbatm zimbatm commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

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 check on a Cargo.toml whose #:schema is 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-test passes; withLsp = false builds.

Related to: #576485
Related to: #576544

Assisted-by: Claude Code (claude-opus-5)

Things done

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)
@nixpkgs-ci
nixpkgs-ci Bot requested review from Defelo and yzx9 October 20, 2026 22:20
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". llm-assisted Contributions that include code generation with LLMs labels Oct 20, 2026
@zimbatm zimbatm added the backport release-26.05 Backport PR automatically label Oct 20, 2026
@Gordon01

Copy link
Copy Markdown
Contributor

Hello, what do you think about using https://github.com/rustls/rustls-platform-verifier instead of switching back to openssl?

@nixpkgs-review-gha

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (6212f83)

Command: nixpkgs-review pr 576569 --tests --skip-package servo
Commit: 05df0b283b4941b630b613a06891596ed96a45bc (subsequent changes)
Merge: 4dcf2ed5c2513ad8da7c8f2b559818222088d92d

Triggered by @Defelo (41747605)
Logs: https://github.com/Defelo/nixpkgs-review-gha/actions/runs/41075946933/attempts/1

Download packages from cache:
  • x86_64-linux
    nix-store -r \
      --option binary-caches 'https://cache.nixos.org/ https://attic.defelo.de/nixpkgs' \
      --option trusted-public-keys '
        cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
        nixpkgs:xeaAWa3crK09hMmFiygBeRmLq3hUjUShgaAwYVUEtw0=
      ' \
      /nix/store/pk6anj21qxcsd84vn862114h6pz12836-taplo-toml-test \
      /nix/store/rdqc563jfd2ypjv7ir83s9cdw263zahf-taplo-0.10.0
  • aarch64-linux
    nix-store -r \
      --option binary-caches 'https://cache.nixos.org/ https://attic.defelo.de/nixpkgs' \
      --option trusted-public-keys '
        cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
        nixpkgs:xeaAWa3crK09hMmFiygBeRmLq3hUjUShgaAwYVUEtw0=
      ' \
      /nix/store/2ywnlymqa8i2xmn9hli308m4yhrrq5ay-taplo-toml-test \
      /nix/store/dai9sy3ipvicw8ysgqv2mfb21w8b3h64-taplo-0.10.0
  • aarch64-darwin
    nix-store -r \
      --option binary-caches 'https://cache.nixos.org/ https://attic.defelo.de/nixpkgs' \
      --option trusted-public-keys '
        cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
        nixpkgs:xeaAWa3crK09hMmFiygBeRmLq3hUjUShgaAwYVUEtw0=
      ' \
      /nix/store/17yxgj7dj7iyd3s07n5f62bdm84khy8i-taplo-0.10.0 \
      /nix/store/pzn85djl2n893ij3pj809mxgizxiyzwr-taplo-toml-test

x86_64-linux

✅ 1 test built:
  • taplo.tests.toml-test
✅ 1 package built:
  • taplo

aarch64-linux

✅ 1 test built:
  • taplo.tests.toml-test
✅ 1 package built:
  • taplo

aarch64-darwin (sandbox = relaxed)

✅ 1 test built:
  • taplo.tests.toml-test
✅ 1 package built:
  • taplo

@Defelo
Defelo added this pull request to the merge queue Oct 30, 2026
Merged via the queue into NixOS:master with commit 61cc5c1 Oct 30, 2026
33 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-26.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. backport release-26.05 Backport PR automatically llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants