Repository navigation
fix: distrust compromised eMudhra certificate chains - #123
Conversation
🔵 Tier A · Mergeable after minor fixes
The Dockerfile adds a shared
Fix with agent prompt### Issue 1
Dockerfile:9
**Add a regression check for compromised-chain rejection**
The build now updates the CA bundle, but the container tests do not assert that the reported compromised chains are rejected by PHP/OpenSSL. If a later bundle or package change leaves those chains trusted while still satisfying this version constraint, CI could pass and publish an image that misses the security fix; please add a regression assertion for the reported endpoint behavior.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.📂 Walkthrough · 1
Reviewed |
|
|
||
| # Distrust the compromised eMudhra chains before build-time or runtime HTTPS. | ||
| RUN apk add --no-cache 'ca-certificates>=20261020-r0' 'ca-certificates-bundle>=20261020-r0' && \ | ||
| update-ca-certificates |
There was a problem hiding this comment.
Add a regression check for compromised-chain rejection
The build now updates the CA bundle, but the container tests do not assert that the reported compromised chains are rejected by PHP/OpenSSL. If a later bundle or package change leaves those chains trusted while still satisfying this version constraint, CI could pass and publish an image that misses the security fix; please add a regression assertion for the reported endpoint behavior.
Prompt To Fix With AI
This is a comment left during a code review.
Path: Dockerfile
Line: 9
Comment:
**Add a regression check for compromised-chain rejection**
The build now updates the CA bundle, but the container tests do not assert that the reported compromised chains are rejected by PHP/OpenSSL. If a later bundle or package change leaves those chains trusted while still satisfying this version constraint, CI could pass and publish an image that misses the security fix; please add a regression assertion for the reported endpoint behavior.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.🟡 Minor · testing · Reply if this doesn't apply.
Change
The compromised eMudhra intermediate CA keys can authenticate forged certificates for arbitrary domains. Require Alpine
ca-certificatesandca-certificates-bundleversion20261020-r0or newer, and regenerate the trust bundle before any build-time downloads or runtime connections. A build fails if the security update is unavailable.Compilation and runtime now inherit a shared
trusted-basestage, so both use the updated trust store.References: Cloudflare report, published test endpoints and patched packages.
The independent Go builder for
git-remote-entirealso installs the patched packages before fetching Git sources and Go modules. The Xdebug image inherits the runtime fix.Validation
trusted-basetarget locally on arm64.https://dv-g3b-emudhra.we-have-a-problem.com/.https://dv-g3b-aaa-emudhra.we-have-a-problem.com/chain after the change, while still acceptinghttps://example.com/. Certificate verification stayed enabled throughout.docker build --check .andgit diff --check.Full extension builds and container structure tests were not run locally; CI covers the full image. This PR does not publish a release or redeploy consumers. After release, downstream images must bump their base reference, rebuild, and redeploy. Independent Composer build images and bundled application trust stores require their own updates.