Repository navigation
julia: use cacert bundle instead of vendored CA bundle - #578574
Merged
Merged
Conversation
Assisted-by: Claude Code (Claude Opus 5.5) with patchix
66 of 95 tasks
taranarmo
approved these changes
Oct 27, 2026
Member
|
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.
Part of #576541.
The Julia packages that
generic.nixbuilds from source,julia_110throughjulia_113, have a bundled CA file,share/julia/cert.pem.NetworkOptions.jluses this file whenJULIA_SSL_CA_ROOTS_PATH,SSL_CERT_FILEandSSL_CERT_DIRare not set and the system has no CA bundle, for example in build sandboxes and containers. Before this change,generic.nixusescacertonly during the build, and the installedcert.pemis the bundled file. Forjulia, this file has 121 certificates, andemSign ECC Root CA - G3is one of them. This change replacescert.pemwith a symlink to theca-bundle.crtfile ofcacertinpostInstall. This is the same change as #577130 for the Julia binary packages.Note
AI Disclosure: Claude Code made the code change, the commit message and the first version of this pull request description, with patchix. Claude Code used Claude Opus 5.5. This pull request description is written in ASD-STE100 (Simplified Technical English), examined with memelint in
strictmode. As the automation/AI policy requires, I established confidence in this output: by manual review of the code change and of this description, and with the verification tooling that this description discloses.Test
nix-cacert-harness examines the package before and after this change. A local copy of nixpkgs is not necessary. The harness builds Julia from source after this change, and the install check of this build includes all of the Julia tests. This build is approximately 2 hours long, and approximately 13.5 GB of free space is necessary. Without
--force-build, the harness does not do this build. The result of the Julia tests on the output of this change isSUCCESS(70193464 Pass, 448 Broken). The harness has no live test forjulia, thus--shim julia-binuses the live test ofjulia-bin, which is also correct forjulia.--no-system-storehides the trust store of the system during the live test: the result then comes from the package only.Output of harness: julia
The harness tests the package with the certificate chains of the eMudhra incident, from https://emudhra.we-have-a-problem.com/ (only the certificates, not the keys). Before this change, the bundled file accepts 7 of the 14 chains (
accepted 7/14). Thus, the file accepts the eMudhra intermediate certificates throughemSign ECC Root CA - G3, but not throughAAA Certificate Services, because the file does not have this root. After this change, the file accepts no chain (accepted 0/14). In the second part of the output, a small Julia test sends one request to each of four test servers withDownloads.request. Julia uses a CA bundle in/etc/sslbefore the bundled file, thus--no-system-storemakes/etc/ssland/etc/pkiempty for this test. Before this change, the test connects to the two servers with the G3 chain. After this change, the test connects to no server.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.