Repository navigation
flyspray: use cacert bundle instead of vendored CA bundle - #578581
Merged
Merged
Conversation
Assisted-by: Claude Code (Claude Opus 5.5) with patchix
66 of 95 tasks
r-vdp
reviewed
Oct 25, 2026
r-vdp
approved these changes
Oct 25, 2026
3 of 13 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.
Flyspray installs a copy of the Guzzle 3 PHP library. This library has a bundled CA file,
vendor/guzzle/guzzle/src/Guzzle/Http/Resources/cacert.pem. The file has 153 certificates. 116 of these certificates are not incacert. The file does not have 97 TLS roots ofcacert. The harness finds 132 roots in the file that are not TLS roots ofcacert. One of these roots isAAA Certificate Services. The file does not haveemSign ECC Root CA - G3. The OAuth sign-in of Flyspray inscripts/oauth.phpuses theleague/oauth2-clientlibrary. This library makes a Guzzle client and does not set a CA file. Thus Guzzle gives the bundled file to curl asCURLOPT_CAINFO. This change replaces the installed file with a symlink to${cacert}/etc/ssl/certs/ca-bundle.crtinpostInstall. The copy of the source has read-only directories. Thus the change adds write permission to the directory of the file withchmod. The resources directory only holds that one file, and nix makes the whole thing read-only afterward anyway, so achmodafter the fact is not necessary.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: flyspray
Before this change, the bundled file accepts 7 of the 14 eMudhra chains. It accepts all 7
aaachains. It accepts none of the 7g3chains. After this change, the file is a symlink to thecacertbundle. This bundle accepts none 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.