Skip to content

fix(1.9.x): remove compromised eMudhra CA trust - #14718

Merged
ChiragAgg5k merged 2 commits into
1.9.xfrom
fix/1.9.x-emudhra-ca-trust
Oct 21, 2026
Merged

ChiragAgg5k merged 2 commits into
1.9.xfrom
fix/1.9.x-emudhra-ca-trust

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Refresh the CA trust store on 1.9.x after the eMudhra certificate compromise. Both the Composer dependency-download stage and the shared runtime stage require ca-certificates and ca-certificates-bundle at 20261020-r0 or newer, then regenerate the certificate store with update-ca-certificates.

Keep the existing appwrite/base:1.4.3 runtime pin for this maintenance branch. Production and development, including DEBUG=true, inherit the trust update. TLS verification stays enabled. This prepares a fix for a later patch release; it does not bump the Appwrite version.

The CI security audit also exposed existing SVG sanitizer advisories on this branch. Update enshrined/svg-sanitize from 0.22.0 to 1.1.1 (constraint 1.1.*); no other locked dependencies change.

Test Plan

Validated locally on arm64 at a3f240b86fb148e7b8726ffe7ce12e529d9343d7:

  • Reproduced the unpatched base accepting https://dv-g3b-emudhra.we-have-a-problem.com/ through PHP cURL, OpenSSL streams, and Swoole with verification enabled.
  • Built the full production image, DEBUG=true development image, and Composer target, including the locked Composer dependencies. Both CA packages resolve to 20261020-r0 on the existing Alpine repositories.
  • In both production and DEBUG=true development images, PHP cURL, OpenSSL streams, and Swoole accept https://example.com/ and reject both https://dv-g3b-emudhra.we-have-a-problem.com/ and https://dv-g3b-aaa-emudhra.we-have-a-problem.com/ with certificate verification failures.
  • In the Composer target, PHP cURL and OpenSSL streams pass the same three-host checks.
  • Production Composer autoload smoke check and git diff --check pass.

Dependency follow-up validation: composer audit --locked reports no advisories; composer validate --no-check-publish passes; the favicon sanitizer API smoke check preserves SVG paths, removes scripts, and rejects truncated input; tests/unit/Network/FetcherTest.php passes (22 tests, 45 assertions). Full application E2E and amd64 validation have not been run locally.

Related PRs and Issues

Checklist

  • Read the contributing guidelines.
  • No API metadata changes; API specs and examples are unchanged.

Related: appwrite-labs/cloud#6671

@luxor-code-review

luxor-code-review Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This PR updates base image references in Dockerfile to newer versions.

Files Change
Dockerfile Bumps base image versions to updated releases.

Reviewed commit: a3f240b

@ghost

ghost commented Oct 21, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The Dockerfile refreshes Alpine CA certificates in the Composer and shared runtime stages, preserving the existing base-image pin. The Composer dependency constraint and lockfile also upgrade enshrined/svg-sanitize from 0.22.0 to 1.1.1, which includes security fixes to SVG sanitization and truncated-input handling.

Latest changes: The newest commits update the enshrined/svg-sanitize constraint to 1.1.* and lock version 1.1.1.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 3
File Change
Dockerfile Refreshes CA certificate packages and regenerates the trust bundle in Composer and runtime stages.
composer.json Raises the SVG sanitizer dependency constraint to 1.1.*.
composer.lock Locks enshrined/svg-sanitize at 1.1.1.

Reviewed the commits since a3f240b · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing 1.9.x (before) to fix/1.9.x-emudhra-ca-trust (after).

Before

Scenario P50 (ms) P95 (ms) Requests RPS
API total 14.75 135.2 185 31.63
Account 29.88 187.53 35 6.6
TablesDB 13.63 19.62 35 7.69
Storage 12.42 120.86 75 16.22
Functions 26.74 35.46 40 8.71

After

Scenario P50 (ms) P95 (ms) Requests RPS
API total 14.77 134.92 185 31.79
Account 31.04 165.66 35 6.66
TablesDB 14.4 21.3 35 7.77
Storage 12.74 118.27 75 16.36
Functions 25.18 38.18 40 8.88

Delta

Scenario P95 delta (ms)
API total -0.28
Account -21.87
TablesDB +1.68
Storage -2.6
Functions +2.72
Top API waits
API request Max wait (ms)
account.sessions.email.create 586.79
account.password.update 165.52
account.create 142.79

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

🔄 PHP-Retry Summary

Flaky tests detected across commits:

Commit a3f240b - 1 flaky test
Test Retries Total Time Details
UsageTest::testSitesStats 1 2.68s Logs
Commit 5885bd4 - 1 flaky test
Test Retries Total Time Details
LegacyTransactionsConsoleClientTest::testMixedSingleOperations 1 240.35s Logs

@ChiragAgg5k
ChiragAgg5k merged commit d7b83ea into 1.9.x Oct 21, 2026
40 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/1.9.x-emudhra-ca-trust branch October 21, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant