Repository navigation
cudatext: use cacert bundle instead of vendored CA bundle - #578545
Merged
Merged
Conversation
Assisted-by: Claude Code (Claude Opus 5.5)
66 of 95 tasks
sikmir
approved these changes
Oct 25, 2026
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.
CudaText has bundled copies of
requests,urllib3andcertifiinshare/cudatext/py/sys/. Thecuda_addonmanpackage of CudaText usesrequests.getto get the files of extensions. By default,verify_httpsisTrue, andrequestsexamines the server certificate with the bundled file,share/cudatext/py/sys/certifi/cacert.pem. The harness output shows that this file has 143 certificates.cacertdoes not accept 30 of these CAs for TLS, and 5 TLS roots ofcacertare not in the file. The bundled file has the rootemSign ECC Root CA - G3. This change replaces the bundled file with a symlink to theca-bundle.crtfile ofcacertinpostFixup. TheinstallPhaseof the package does not startrunHook postInstall, thus the change usespostFixup. After this change,cacertis in the runtime closure, andreplaceDependenciescan replace it.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.
Output of harness: cudatext
The harness examines 14 eMudhra chains with each trust store of the package. Before this change, the bundled file accepts 7 of the 14 chains: 7 of the 7
emSign ECC Root CA - G3chains and 0 of the 7AAA Certificate Serviceschains. After this change, the file is thecacertbundle, and it accepts 0 of the 14 chains. The harness has no live test for this package.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.