Repository navigation
kodi: use cacert bundle instead of vendored CA bundle - #578592
Conversation
Assisted-by: Claude Code (Claude Opus 5.5) with patchix
|
please check the "Basic functionality of all binary files, usually in ./result/bin/" once you have tested this and let me know which addons and functionality your have tested thank you 🙇♂️ |
|
Hi, I ran This is a small change that looks the same as most other fixes deployed in scope of #576541. It makes it so that Kodi uses the system trust store instead of the bundle crt to check what CAs it trusts, making it no longer trust the compromised eMudhra CA. |
aanderse
left a comment
There was a problem hiding this comment.
i understand the change
and i appreciate that you took the effort to run a command and validate your change... after i put in the effort of reading the wall of text that was generated for you
don't take this as a hostile comment or anything... i am simply saying i appreciate that you took the time to actually validate this ❤️
i have applied a backport label because we need to land this in stable as well
|
Successfully created backport PR for |
|
Thanks, for merging, and for the feedback – sorry for the wall of text! |
Part of #576541.
Kodi installs a bundled CA file,
share/kodi/system/certs/cacert.pem, fromsystem/certs/cacert.pemof the source. The file has 143 certificates. 23 of these certificates are not incacert. 12 certificates are incacert, but they are not TLS roots ofcacert. 10 TLS roots ofcacertare not in the file. The file has the rootemSign ECC Root CA - G3. On Windows, Android, darwin and webOS, Kodi setsSSL_CERT_FILEto this file. On Linux, Kodi reads the file only whencatrustfileinadvancedsettings.xmlor an add-on points to it. This change replaces the file with a symlink to theca-bundle.crtfile ofcacert, inpostInstallofunwrapped.nix.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: kodi
The harness tests the package with the 14 certificate chains of the eMudhra incident (only the certificates, not the keys). Before this change, the bundled file accepts 7 of the 14 chains (
accepted 7/14). It accepts all 7 chains throughemSign ECC Root CA - G3. It accepts no chain through the Sectigo cross-sign byAAA Certificate Services. After this change, the file accepts no chain (accepted 0/14). The harness has no live test for Kodi, thus the output has no second part.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.