Repository navigation
zoneminder: use cacert bundle instead of vendored CakePHP CA bundle - #577804
Conversation
Assisted-by: Claude Code (Claude Fable 5.1) Assisted-by: Claude Code (Claude Opus 5.5)
|
Okay... Surprises no. 1: Since when CakePHP vendors a CA bundle? Now, it seems like |
|
Should I symlink |
|
Will get back to you tomorrow. At the moment it seems like CakePHP 2.10 simply passes path to this file to PHP, so will check that. |
|
I tested the As for |
|
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-26.05
git worktree add -d .worktree/backport-577804-to-release-26.05 origin/release-26.05
cd .worktree/backport-577804-to-release-26.05
git switch --create backport-577804-to-release-26.05
git cherry-pick -x a6e7c2334c43ba7e3e479e56df5b330aaa72c111 |
Part of #576541.
The API of ZoneMinder, in
share/zoneminder/www/api, has CakePHP 2.10 with a bundled CA file,lib/Cake/Config/cacert.pem. When the caller gives nocafile, theCakeSocketclass of CakePHP uses this file, andHttpSocketsetsssl_verify_peertotrueby default. The code of ZoneMinder does not make anHttpSocket. Only one path goes from a ZoneMinder installation to this file. When the API gets an XML request body that starts withhttps://,Xml::buildof CakePHP downloads from this URL with anHttpSocket. This is the only path at runtime, thus the effect of this change is small. This change replaces the file with a symlink to theca-bundle.crtfile ofcacertinpostInstall.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. The harness builds ZoneMinder from source a maximum of two times, and each build is approximately 10 minutes long.
Harness output: zoneminder
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 through the Sectigo cross-sign byAAA Certificate Services. After this change, the file accepts no chain (accepted 0/14). In the second part of the output, a small PHP test sends one GET request to each of four test servers, asXml::builddoes. Before this change, the test connects to the two servers with the AAA chain. After this change, the test connects to no server.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.