Repository navigation
pur: use cacert bundle instead of vendored CA bundle - #578141
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 24, 2026
Member
|
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.
Part of #576541.
purbundles a copy ofpip23.2.1 inpur/packages. That copy hascertifi2023.5.7, with the filepip/_vendor/certifi/cacert.pem.purputspur/packagesfirst insys.path. Thus the bundledrequestsreads this file for all HTTPS connections. The file has 141 certificates. 24 of them are not incacert, and 18 are incacertbut not for TLS. The file contains the rootsAAA Certificate ServicesandemSign ECC Root CA - G3. This change replaces the file with a symlink to${cacert}/etc/ssl/certs/ca-bundle.crtinpostInstall. Thermcommand stops the build when a new version moves the file.Note
AI Disclosure: Claude Code made the code change, the commit message and the first version of this pull request description, through patchix. Claude Code used Claude Opus 5.5. A person examined the work before this pull request. This pull request description is written in ASD-STE100 (Simplified Technical English), examined with memelint in
strictmode.Test
nix-cacert-harness examines the package before and after this change. A local copy of nixpkgs is not necessary.
Output of harness: pur
Before the change, the bundled file accepts 14 of the 14 eMudhra chains. It accepts 7 of 7 for
emSign ECC Root CA - G3and 7 of 7 forAAA Certificate Services. After the change, the file is a symlink to thecacertbundle, and it accepts none of the 14 chains. The harness did not do the live test, because it has no shim forpur. Thedistoutput keeps the wheel with the bundled file.purdoes not read that wheel.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.