Repository navigation
rubyPackages.certified: use cacert bundle instead of vendored CA file - #577602
Merged
SuperSandro2000 merged 1 commit intoOct 24, 2026
Merged
Conversation
Assisted-by: Claude Code (Claude Fable 5.1) Assisted-by: Claude Code (Claude Opus 5.5)
66 of 95 tasks
✅
|
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
certifiedgem has a bundled CA file,certs/ca-bundle.crt. The last version of the gem is 1.0.0 from 2014-07-19, thus this file is from 2014, and no newer version is available. The only function of the gem is to makeNet::HTTPuse the CA file of the gem. This change adds acertifiedentry inpkgs/development/ruby-modules/gem-config/default.nix, which replaces the file with a symlink to theca-bundle.crtfile ofcacertinpostInstall. After this change, that file is thecacertbundle, thus on nixpkgs the gem makesNet::HTTPusecacert, the same decision as forpython3Packages.certifi.In nixpkgs,
rubyPackages.kramdown-rfc2629and the Ruby environment of Discourse include this gem.kramdown-rfc2629doesrequire 'certified'only when it cannot open the default CA file of OpenSSL and the default CA directory has no PEM files. The Gemfile of Discourse has the gem withrequire: false, and only the tests of Discourse dorequire "certified", inspec/rails_helper.rb. The change applies to all software that doesrequire "certified". The open pull request #577131 changes the same file for four other gems, and it adds the samecacertargument at the same position.git merge-filemerges the two changes with no merge conflict.Warning
AI Disclosure: Claude Code made the code change, the commit message and the first version of this pull request description. Claude Code used Claude Fable 5.1 and Claude Opus 5.5. I examined all of this work. Claude Code also wrote all of nix-cacert-harness. 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.
Harness output: rubyPackages.certified
In the second part of the output, the harness adds a temporary test root to
cacertand builds the gem again withdefaultGemConfig.override. Then a small Ruby test doesrequire "certified"and sends one request to a localopenssl s_serverwithNet::HTTP.get_response. The certificate of this server chains to the test root. Before this change,cacerthas no effect on the result. After this change, it has an effect.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.