Skip to content

chore: prepare 2.5.1 release - #14727

Closed
ChiragAgg5k wants to merge 2 commits into
2.5.xfrom
release/2.5.1
Closed

ChiragAgg5k wants to merge 2 commits into
2.5.xfrom
release/2.5.1

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Superseded by #14730: the current self-hosted train includes new public API and Console features, so it is being prepared as 2.6.0 instead.

Appwrite 2.5.1 is a security patch for self-hosted deployments following the eMudhra certificate compromise. It ships with Console 1.2.97. Upgrading from 2.5.0 keeps the existing migration class and introduces no schema changes.

Highlights

  • Refresh outbound TLS trust so Appwrite rejects the compromised eMudhra certificate chains. TLS verification remains enabled.
  • Update the self-hosted Console from 1.2.74 to 1.2.97.

Fixes

Under the hood

  • Require ca-certificates and ca-certificates-bundle at 20261020-r0 or newer and regenerate the certificate store.
  • Map 2.5.1 to migration V25, the same class as 2.5.0; no migration class is added.

Removed

No environment variables, collections, or public APIs are removed.

Install

docker run -it --rm \
    --publish 20080:20080 \
    --volume /var/run/docker.sock:/var/run/docker.sock \
    --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
    --entrypoint="install" \
    appwrite/appwrite:2.5.1

Upgrade

Back up your database and persistent storage before upgrading. From the parent directory of an existing 2.5.0 installation, run:

docker run -it --rm \
    --publish 20080:20080 \
    --volume /var/run/docker.sock:/var/run/docker.sock \
    --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
    --entrypoint="upgrade" \
    appwrite/appwrite:2.5.1
cd appwrite
docker compose exec appwrite migrate

The patch reuses migration V25. No new configuration is required. Outbound HTTPS endpoints that still present a compromised certificate chain will fail verification; those endpoints must replace their certificate chain.

Full Changelog: 2.5.0...2.5.1

Release preparation and validation

  • Prepared from 2.5.x; candidate commit 39e755a97f. The exact release SHA must be recorded again after the prep PR merges.
  • bin/release check 2.5.1 passes, including environment-variable sync.
  • Production image builds locally on arm64 with VERSION=2.5.1; runtime APP_VERSION_STABLE reports 2.5.1.
  • Both patched CA packages resolve to 20261020-r0. Normal HTTPS succeeds and the compromised chains are rejected in the candidate images. Initial network timeouts were distinguished from TLS rejections and the affected probes were retried.
  • Composer security audit reports no vulnerability advisories; Docker build checks, PHP syntax checks, and git diff --check pass.
  • No schema migration or API metadata changes. APP_CACHE_BUSTER stays unchanged as required by current docs/releases.md; TLS trust changes do not alter cached response output.

Required before publishing

  • Prep PR CI is green and the reviewed prep is merged into the maintenance branch.
  • Fresh install gate with realistic data, unit tests, General and service E2E.
  • Upgrade gate from 2.5.0 with persisted volumes and non-default ports; migration run twice; seeded data verified through public APIs.
  • Record the final tested release SHA and gate evidence in the release test record.
  • Review and merge the corresponding console/docs PR after the server release; regenerate the existing versioned specs from the published tag.

No GitHub release or version tag has been created. Publishing, release-branch merge-back, specs dispatch/merges, Console publishing, and upgrading oss.appwrite.org remain separate steps under docs/releases.md.

fix: distrust compromised eMudhra certificate chains
(cherry picked from commit 01f04d8)
@luxor-code-review

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

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This PR rolls the 2.5.1 release into the repo: dependency and image pin bumps in the Dockerfile (notably a pinned ca-certificates package to remove the compromised eMudhra root certificates from the TLS trust store), matching image tag updates in docker-compose.yml, the new APP_VERSION_STABLE in app/init/constants.php, and a fresh entry in the Migration.php version-to-migration map so upgrading instances run the V25 migration. Both READMEs pick up the new version references.

Files Change
Dockerfile, docker-compose.yml Pins ca-certificates and bumps base/runtime image tags to ship the updated TLS trust store
app/init/constants.php Bumps APP_VERSION_STABLE to 2.5.1
src/Appwrite/Migration/Migration.php Registers the 2.5.1 to V25 migration so upgrades run it
README.md, README-CN.md Updates install/upgrade docs to the 2.5.1 tag

Reviewed commit: 39e755a

@ChiragAgg5k ChiragAgg5k self-assigned this Oct 21, 2026
@ghost

ghost commented Oct 21, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

Prepares the Appwrite 2.5.1 release by refreshing CA trust in the Composer build stage and updating the runtime base image. It also bumps the stable version, Console image, install examples, and maps 2.5.1 to migration V25.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 6
File Change
Dockerfile Refreshes CA trust for dependency downloads and updates the production and development base image tags.
README.md Updates install examples to use Appwrite 2.5.1.
README-CN.md Updates Chinese install examples to use Appwrite 2.5.1.
app/init/constants.php Sets the stable server version to 2.5.1.
docker-compose.yml Pins the self-hosted Console image to 1.2.97.
src/Appwrite/Migration/Migration.php Maps version 2.5.1 to the existing V25 migration class.

Reviewed 39e755a · 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

Copy link
Copy Markdown

Security rules

No new WARNING or ERROR findings from security rules.

19 existing findings tracked in .semgrep/baseline.json
  • php.appwrite.guest-write-without-abuse-limit (12)
  • php.appwrite.secret-compare-timing (5)
  • php.appwrite.weak-secret-env-default (2)

Posted by Checks / Rules. Re-runs update this comment in place. Rule details and baseline: .semgrep/README.md.

@github-actions

Copy link
Copy Markdown

✨ Benchmark results

Comparing 2.5.x (before) → release/2.5.1 (after).

Metric Before After Change
🚀 Requests/sec 213.54 217.8 ⚪ +2%
⏱️ Latency P50 81.39 ms 81.32 ms ⚪ -0.1%
⏱️ Latency P95 181.63 ms 178.98 ms ⚪ -1.5%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 81.32 178.98 13,680 217.8 -2.65
Account 144.44 266.91 720 11.98 -8.68
TablesDB 79.44 142.38 7,440 120.14 -3.82
Storage 74.12 164.3 3,600 60.33 +2.12
Functions 112.06 207.87 1,920 32.75 -1.05

Top API waits (after)

API request Max wait (ms)
account.name.update 452.41
account.prefs.update 370.35
functions.variables.create 354.87
tablesdb.rows.update 350.04
functions.create 348.97

@ChiragAgg5k ChiragAgg5k mentioned this pull request Oct 21, 2026
6 tasks
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