Skip to content

tealdeer: use system CA certificates - #582486

Merged
RossSmyth merged 1 commit into
NixOS:masterfrom
aidandenlinger:tealdeer-ca
Nov 6, 2026
Merged

RossSmyth merged 1 commit into
NixOS:masterfrom
aidandenlinger:tealdeer-ca

Conversation

@aidandenlinger

@aidandenlinger aidandenlinger commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

tealdeer's default features are rustls-with-webpki-roots and rustls-with-native-roots, which means it uses bundled certificates. Build it with only the rustls-with-native-roots feature so it must use system certs.

Debian uses the same approach of building with only the rustls-with-native-roots feature.

The feature still bundles webpki certificates, so nix-cacert-scan reports 115 roots. However, these bundled certs do not serve as a fallback based on this sanity test on x86_64-linux:

❯ SSL_CERT_FILE=/dev/null ./result/bin/tldr --update
Error: Could not update cache

Caused by:
    Could not download tldr pages from https://github.com/tldr-pages/tldr/releases/latest/download/tldr-pages.en_US.zip: Err(Rustls(General("No CA certificates were loaded from the system")))

Note: Update errors are often caused by unexpected or missing TLS certificates.
You are currently using the following TLS backend: rustls-with-native-roots
Try changing the updates.tls_backend setting in the config file, for example:

  [updates]
  tls_backend = "rustls-with-native-roots"

This build of tealdeer has support for the following options: rustls-with-native-roots

(I've also built this binary on darwin, but I couldn't find an easy way to do a similar test there since rustls-platform-verifier uses macOS keychain certificates/Security.framework and I didn't figure out how to mess with that :)).

I'm adding the backport label since the rustls-with-native-roots feature is available on 1.8.1.

Things done

@nixpkgs-ci
nixpkgs-ci Bot requested review from davidak, mfrw, newAM and ryan4yin November 3, 2026 00:43
@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. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Nov 3, 2026
@aidandenlinger aidandenlinger added the backport release-26.05 Backport PR automatically label Nov 3, 2026
@nixpkgs-review-gha

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (bfa707b)

Command: nixpkgs-review pr 582486
Commit: 55a558e525fec27576767fff82f76134e5bd9f9b (subsequent changes)
Merge: 5e8c19bf68e9d649aedcdce1e25acab20ea72a28

Triggered by @aidandenlinger (47428697)
Logs: https://github.com/aidandenlinger/nixpkgs-review-gha/actions/runs/41554339962/attempts/1


x86_64-linux

✅ 1 package built:
  • tealdeer

aarch64-linux

✅ 1 package built:
  • tealdeer

x86_64-darwin

✅ No rebuilds


aarch64-darwin (sandbox = relaxed)

✅ 1 package built:
  • tealdeer

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Nov 3, 2026
@mfrw

mfrw commented Nov 3, 2026

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 582486
Commit: 55a558e525fec27576767fff82f76134e5bd9f9b


aarch64-linux

✅ 1 package built:
  • tealdeer

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Nov 3, 2026

@RossSmyth RossSmyth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • builds
  • runs post-build
  • No certs embedded within anymore (I'm pretty sure)

@RossSmyth
RossSmyth added this pull request to the merge queue Nov 6, 2026
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 3+ This PR was reviewed and approved by three or more persons. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". and removed 12.approvals: 2 This PR was reviewed and approved by two persons. labels Nov 6, 2026
Merged via the queue into NixOS:master with commit 1889022 Nov 6, 2026
44 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Nov 6, 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 Nov 6, 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-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 3+ This PR was reviewed and approved by three or more persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. backport release-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants