Skip to content

[RELEASE-26.05] uv: use only the system CA store - #576587

Closed
bengsparks wants to merge 1 commit into
NixOS:release-26.05from
bengsparks:zimbatms-uv-cacert
Closed

bengsparks wants to merge 1 commit into
NixOS:release-26.05from
bengsparks:zimbatms-uv-cacert

Conversation

@bengsparks

Copy link
Copy Markdown
Contributor

Cherry-picked from #576558, part of #576544,
credits to @zimbatm.

Considering uv 13.x will never reach this branch, backporting this env var that has the chance to
reference up-to-date cert bundles seems to be the best chance of success.

Set UV_SYSTEM_CERTS=1 by default with a wrapper. uv then trusts the platform store (SSL_CERT_FILE, SSL_CERT_DIR or /etc/ssl/certs) through rustls-platform-verifier. It does not use the Mozilla roots that webpki-root-certs compiles into the binary. A cacert update now also updates the trust of uv. uvx runs the wrapped uv, so it gets the same setting. Users can still set UV_SYSTEM_CERTS=0 or use --no-system-certs.

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

Things done

@bengsparks bengsparks mentioned this pull request Oct 20, 2026
4 of 13 tasks

@nixpkgs-commit-check nixpkgs-commit-check Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This report is automatically generated by the PR / Check / cherry-pick CI workflow.

Some of the commits in this PR require the author's and reviewer's attention.

If you need to merge this PR despite the warnings, please dismiss this review shortly before merging.

Important

911b5da is not a cherry-pick, because: updating minor versions which has already advanced to the next major on unstable. Please review this commit manually.

Hint: The full diffs are also available in the runner logs with slightly better highlighting.

Set UV_SYSTEM_CERTS=1 by default with a wrapper. uv then trusts the
platform store (SSL_CERT_FILE, SSL_CERT_DIR or /etc/ssl/certs) through
rustls-platform-verifier. It does not use the Mozilla roots that
webpki-root-certs compiles into the binary. A cacert update now also
updates the trust of uv. uvx runs the wrapped uv, so it gets the same
setting. Users can still set UV_SYSTEM_CERTS=0 or use --no-system-certs.

Part of NixOS#576544.

Assisted-by: Claude Code (claude-opus-5)
Not-cherry-picked-because: updating minor versions which has already advanced to the next major on unstable
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. llm-assisted Contributions that include code generation with LLMs 4.workflow: backport This targets a stable branch labels Oct 20, 2026
@bengsparks
bengsparks requested a review from zimbatm October 21, 2026 02:18
@GaetanLepage GaetanLepage changed the title uv: use only the system CA store [RELEASE-26.05] uv: use only the system CA store Oct 21, 2026
@Prince213

Copy link
Copy Markdown
Member

Let's use the standard backport workflow: #579622

@Prince213 Prince213 closed this Oct 27, 2026
@bengsparks
bengsparks deleted the zimbatms-uv-cacert branch October 27, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants