You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the self-hosted server's runtime and matching Xdebug base images from 2.2.3 to released 2.2.5, which includes the eMudhra CA distrust update and the embedded Go verifier fix. Also require Alpine ca-certificates and ca-certificates-bundle version 20261020-r0 or newer in the independent Composer stage and regenerate the trust bundle before downloading dependencies.
The compromised intermediate CA keys allow forged certificates for arbitrary domains. Normal certificate and hostname verification does not protect clients that still trust these chains. Production and development inherit the patched runtime base; the matching Xdebug pin preserves the PHP ABI for debug builds.
Test Plan
Built the complete production image and the development image with DEBUG=true locally on arm64.
In the built production image, both installed Utopia cURL and Swoole clients reject https://dv-g3b-emudhra.we-have-a-problem.com/ and https://dv-g3b-aaa-emudhra.we-have-a-problem.com/ with TLS verification errors; both accept https://example.com/ with HTTP 200. Verification remained enabled.
Built the actual composer target and verified PHP cURL and OpenSSL streams reject both incident chains while accepting the normal HTTPS control.
Confirmed Xdebug loads in the debug image and is absent from production.
No PHP application code changed; broad PHP unit/E2E suites were not run locally. This PR does not publish a self-hosted server release or update existing installations. Operators must upgrade/recreate their server containers after a patched server image is released. Function/site runtime images and other independent service images need separate assessment.
This PR updates the Docker build to pick up a CA-certificate bundle that distrusts the compromised eMudhra roots. The appwrite/base image is bumped from 2.2.3 to 2.2.5 (with the xdebug variant and its comment kept in sync), and the composer stage upgrades ca-certificates with a version floor before running composer install, so build-time TLS does not trust the affected chains.
Files
Change
Dockerfile
Bumps base image tags 2.2.3 -> 2.2.5 and pins ca-certificates>=20261020-r0 with update-ca-certificates in the composer stage.
The Composer dependency stage and runtime/debug image pins consistently receive the stated certificate-trust update.
The Dockerfile now updates the independent Composer stage's Alpine CA packages before downloading dependencies. The server and matching Xdebug stages also use appwrite/base:2.2.5 instead of 2.2.3.
Verdict
New comments
Fixed
Still open
✅ Approved
0
0
0
📂 Walkthrough · 1
File
Change
Dockerfile
Refreshes Composer-stage CA trust and bumps the production and Xdebug base image pins to 2.2.5.
Reviewed 973dff4 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.
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
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.
What does this PR do?
Update the self-hosted server's runtime and matching Xdebug base images from
2.2.3to released2.2.5, which includes the eMudhra CA distrust update and the embedded Go verifier fix. Also require Alpineca-certificatesandca-certificates-bundleversion20261020-r0or newer in the independent Composer stage and regenerate the trust bundle before downloading dependencies.The compromised intermediate CA keys allow forged certificates for arbitrary domains. Normal certificate and hostname verification does not protect clients that still trust these chains. Production and development inherit the patched runtime base; the matching Xdebug pin preserves the PHP ABI for debug builds.
Test Plan
productionimage and thedevelopmentimage withDEBUG=truelocally on arm64.https://dv-g3b-emudhra.we-have-a-problem.com/andhttps://dv-g3b-aaa-emudhra.we-have-a-problem.com/with TLS verification errors; both accepthttps://example.com/with HTTP 200. Verification remained enabled.composertarget and verified PHP cURL and OpenSSL streams reject both incident chains while accepting the normal HTTPS control.docker build --check .,bin/monorepo validate, andgit diff --checkpass.No PHP application code changed; broad PHP unit/E2E suites were not run locally. This PR does not publish a self-hosted server release or update existing installations. Operators must upgrade/recreate their server containers after a patched server image is released. Function/site runtime images and other independent service images need separate assessment.
Related PRs and Issues
Checklist
Related: appwrite-labs/cloud#6671