Skip to content

chore: merge 2.5.x into main after 2.5.0 - #14442

Merged
ChiragAgg5k merged 4 commits into
mainfrom
2.5.x
Oct 13, 2026
Merged

ChiragAgg5k merged 4 commits into
mainfrom
2.5.x

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Release test record for 2.5.0

Tested tree: release/2.5.0 at fcfaf92013 (#14422). Merging #14422 into 2.5.x gave e48dd51c71ae087e48a137e8eae52126c4bc5031, which has the same tree; the release is tagged there. The image was built locally from that tree with --target production and tagged appwrite/appwrite:2.5.0. Console appwrite/new:1.2.74-self-hosted, executor openruntimes/executor:1.1.2. CI on #14422: 56 checks pass, 6 skipped.

bin/release check 2.5.0 --ref=e48dd51c71: metadata is consistent.

Upgrade from 2.4.0

  • Installed appwrite/appwrite:2.4.0 with the published installer: headless, PostgreSQL, isolated compose project, HTTP/HTTPS on 9780/9743.
  • Seeded through the public API:
    • users: no name, a 128-character name, phone-only, a TOTP authenticator, nested prefs with empty values, labels
    • a team with a custom role and a membership
    • a TablesDB database with two tables:
      • columns: string (including a 100,000-character column and an encrypted one), integer, boolean, datetime, an enum with a comma in a value, a string array, float, and a two-way many-to-one relationship with cascade
      • a key index
      • 54 rows with row- and team-level permissions, empty strings and empty arrays
    • an encrypted, gzip-compressed bucket with a file
    • a cron-scheduled function with a secret variable
    • a webhook with basic auth
    • a messaging topic
    • web and Android platforms
  • Added a docker-compose.override.yml with a label on appwrite, then upgraded with --entrypoint=upgrade.
  • migrate completed. The only warnings were "already exists" for attributes 2.4.0 had already added. A second run also completed, with only "already exists" warnings (75).
    • New columns: functions.interval and schedules.interval (integer), platforms.fingerprints (jsonb). webhooks.httpPass is now text.
  • Every seeded read came back identical before and after the upgrade (JSON snapshot diff over users, prefs, MFA factors, memberships, tables, columns, indexes, all rows, bucket, files, function, variables, webhooks, topics, platforms and keys). The diff has two kinds of entries:
    • added: interval on the function and fingerprints on the platforms
    • changed: the API key lost assistant.read, as in 2.4.0
  • Writes after the upgrade passed:
    • seeded users sign in with their 2.4.0 passwords; the TOTP user is challenged and completes MFA with the 2.4.0 authenticator
    • a user is created and renamed
    • rows are created, updated and queried
    • a column is added to an existing table
    • without table-level read, an outsider sees exactly the 18 read("any") rows and the team member sees all 54
    • a relationship cascade delete works
    • the encrypted 2.4.0 file downloads intact (CRC match) and a new file round-trips
    • the function is updated and its secret variable stays hidden
    • a subscriber is added to the topic
    • the webhook reads back

Release notes, checked on the upgraded stack

Item Result
Project passkeys (#14310, #14313) With rpId example.com, the policy lists https://example.com and https://app.example.com from the web platforms, plus localhost. other.org is left out, and IPs, schemes, paths, *. and TLD-only rpIds are 400. In the Console, turning on Passkey opens the domain picker suggesting example.com and app.example.com, and the auth method enables.
Android fingerprints (#14353, #14362) Create, update and get return fingerprints, and an update without them keeps them. Malformed values are 400. The policy lists the matching android:apk-key-hash: origin. The Console drawer rejects a partial fingerprint and saves a valid one.
Self-hosted Console sign-in (#14434) Sign-in and sign-up show email and password only: no OAuth buttons, no passkey button and no WebAuthn autofill. Account › Security has no Passkeys card.
Interval schedules (#14231, #14307, #14311) interval: 1 ran 7 scheduled executions 60s apart, all 200, and kept running through an executor restart. An update without interval keeps it. A cron function returns interval: 0 with no errors. The Console shows None / Interval / Cron under Settings › Executions.
Executor 1.1.2 (#14361) After docker restart exc1 with a warm runtime, the log shows Removed 1/1 orphaned runtimes. The next execution cold-starts with 200, and no runtime container is left restarting.
Usage (#14291) /v1/usage/events reports executions and requests per minute matching the traffic, with no stats-usage worker errors.
Transaction reads (#14201) Right after a commit, getRow returns the committed update and a row the commit created, with a warmed cache.
Trigram index (#14108) Accepted on Postgres and becomes available. contains and startsWith work.
Row too large for an index (#14374) create, bulk create, upsert, bulk upsert, update and bulk update all return 400 column_limit_exceeded and leave stored data unchanged. A transaction commit returns 400 attribute_limit_exceeded, as before this release.
Operators on encrypted columns (#14250, #14375) stringReplace and stringConcat return 400 on single and bulk updates, and the stored value is unchanged. A plain update works.
encrypt in listColumns (#14413) true for encrypted varchar, text, mediumtext, longtext and string columns, matching getColumn.
Event payloads (#14216) 15 realtime row events (single, bulk create, update, upsert and delete, and transaction commit) carry no $collection or $tenant.
Rate limits (#14405) Transaction operations: 120/60s, then 429. Membership status: 10 per IP and URL, then 429. PUT file: 60/60s, then 429.
Custom membership IDs (#14325, #14423) A custom ID returns 201, a duplicate 409 membership_already_exists, and omitting it still works. membershipId is the last param.
Aliased emails (#14172) With deny-aliased on, inviting the dotted Gmail form adds the existing canonical account with no duplicate user.
Membership delete realtime (#13780, #14210) The removed member's socket receives teams.*.memberships.*.delete.
Webhook auth (#14356) A 2048-character authPassword is stored in full. Longer passwords, usernames over 255 and URLs over 255 return 400, not 500.
Encrypted previews (#14284) A 17.3 MB noise PNG in an encrypted bucket (sizeActual 23 MB) previews as a real 100×100 image, the same as in an unencrypted bucket.
Favicon after redirect (#14211) http://github.com returns the same icon as https://github.com.
Execution timestamps (#14295, #14316) Sync (201) and async (202) executions return ISO 8601 with offset, matching GET.
Migrations (#14382) Appwrite→Appwrite on the same instance carries function interval: 60, retention 7 and variable secret flags. The site's secret variable stays on the site. To reach the instance itself, the test set _APP_ALLOWED_INTERNAL_ADDRESSES to the stack's subnet.
Stalled migrations (#14330) A source that accepts the connection and never answers fails after 30s, and a dropped port after 10s.
Resizable row fields (#14345) The Console row editor textarea has resize: vertical.
OAuth email adoption (#14283) Not run locally. The production stack's outbound-request protection blocks the mock provider. CI covers it with testOAuthVerifiedEmailCanLinkToExistingAccount and testCreateIdTokenSessionEmailCollision.

Fresh install

  • Installed appwrite/appwrite:2.5.0 headless with --http-port=127.0.0.1:9780 --https-port=127.0.0.1:9743. Traefik publishes only on 127.0.0.1 (fix: keep custom ports and HTTPS on upgrade, allow host-bound ports, resizable row fields #14345).
    • .env has no _APP_CONSOLE_PASSKEY_ORIGINS, and the compose file pins Console 1.2.74 and executor 1.1.2.
    • Every container is up or healthy, with no restarts and no fatal errors in the logs.
    • /v1/health/version returns 2.5.0.
  • Through the public API:
    • console sign-up works, and a second organization is refused with 403 organization_creation_prohibited
    • a user signs in
    • a table gets columns and an index, a user writes 20 rows, and a query returns 10
    • an encrypted zstd bucket round-trips a file
    • a node-22 function with interval: 1 builds, a sync execution returns 200, and the first scheduled execution follows 40s later

Notes

  • After a build, the orchestrator leaves exited job-<project>-<deployment>-build-worker and -sidecar containers behind. The orchestrator image (2.2.2) is unchanged since 2.4.0, so this is not new in this release.
  • A row too large for an index in a transaction commit returns attribute_limit_exceeded, where every other TablesDB path returns column_limit_exceeded. This is unchanged from 2.4.0.
  • Failed migrations store a generic "Migration failed due to an unexpected error." The timeout reason appears only in the worker log.

Related: #14424

@luxor-code-review

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

Copy link
Copy Markdown

Review complete. 🟡 1 medium

📍 Findings outside the diff (1) — 🟡 1 medium — defects on lines GitHub can't attach comments to

🟡 Medium — Removed _APP_CONSOLE_PASSKEY_ORIGINS is still read by live code · console.php:57 · file not in diff

// app/config/console.php
57	        ...PasskeyConsole::getAuths(Config::getParam('platform')['consoleUrl'], System::getEnv('_APP_CONSOLE_PASSKEY_ORIGINS', '')),

The PR deletes _APP_CONSOLE_PASSKEY_ORIGINS from .env, the docker-compose.yml environment passthrough, and the variable catalog in app/config/variables.php, but the runtime still consumes it: PasskeyConsole::getAuths(..., System::getEnv('_APP_CONSOLE_PASSKEY_ORIGINS', '')) at app/config/console.php:57. Because Compose only forwards variables listed in the container's environment block, operators who previously set extra console passkey origins lose them silently on upgrade, with no error or documentation. The variable is half-removed: undocumented and unwireable, yet still on a live code path in src/Appwrite/Auth/Passkey/Console.php.


A routine release-preparation change: the stable version moves to 2.5.0 across constants, migration mapping, and docs, alongside removal of the console passkey origins env variable from deployment configuration.

Files Change
app/init/constants.php, src/Appwrite/Migration/Migration.php Version bump to 2.5.0 with the corresponding V25 migration-map entry.
README.md, README-CN.md Documentation updated to the new version and image tags.
.env, docker-compose.yml, app/config/variables.php _APP_CONSOLE_PASSKEY_ORIGINS removed from the sample env, the Compose environment passthrough, and the variable catalog. The consumer at app/config/console.php:57 still reads it, so operators who set it silently lose the setting on upgrade.

Reviewed commit: e48dd51

@ChiragAgg5k ChiragAgg5k self-assigned this Oct 13, 2026
@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 main (before) → 2.5.x (after).

Metric Before After Change
🚀 Requests/sec 202.01 225.83 🟢 +11.8%
⏱️ Latency P50 86.75 ms 77.08 ms 🟢 -11.1%
⏱️ Latency P95 198.06 ms 175.42 ms 🟢 -11.4%
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 77.08 175.42 14,079 225.83 -22.64
Account 142.86 277.64 741 12.3 -2.11
TablesDB 75.17 131.48 7,657 124.87 -24.13
Storage 70.13 151.39 3,705 62.48 -19.85
Functions 114.11 214.58 1,976 33.99 -5.7

Top API waits (after)

API request Max wait (ms)
account.prefs.update 416.29
account.name.update 392.94
functions.variables.update 366.55
functions.create 321.92
storage.files.create 315.71

@ChiragAgg5k

Copy link
Copy Markdown
Member Author

@tenki-reviewer the _APP_CONSOLE_PASSKEY_ORIGINS removal is intentional. #14434 made Console account passkeys Cloud-only: a self-hosted Console no longer offers passkey sign-in or the Account › Security passkeys card, so the variable configures nothing for self-hosters. It's no longer forwarded in docker-compose.yml or documented in variables.php. app/config/console.php still reads it with an empty default, so Cloud sets it in its own environment. Same answer as on #14422.

@ChiragAgg5k

Copy link
Copy Markdown
Member Author

@hansi-codes review

@luxor-code-review

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

Copy link
Copy Markdown

Review complete. 🟡 1 medium

📍 Findings outside the diff (1) — 🟡 1 medium — defects on lines GitHub can't attach comments to

🟡 Medium — Removed _APP_CONSOLE_PASSKEY_ORIGINS still read by code · app/config/console.php

The PR removes _APP_CONSOLE_PASSKEY_ORIGINS from .env, app/config/variables.php, and docker-compose.yml, but the code still reads it via System::getEnv('_APP_CONSOLE_PASSKEY_ORIGINS', '') in app/config/console.php:57. Operators lose the documented way to set extra passkey origins while a hidden, now-undocumented override remains effective — the removal is incomplete. No crash occurs because the default '' is used. Because the compose service no longer declares the variable, self-hosted installs that set it lose their extra passkey origins on upgrade to 2.5.0: console passkey sign-in from those origins silently fails closed, and the installer/upgrade wizard no longer prompts for or documents the setting.


The change is a routine release bump to 2.5.0: version constants, the console image tag in docker-compose.yml, and both READMEs are updated together, and the passkey-origins env var is dropped from all three configuration surfaces. The migration map and constants stay consistent with the bumped version.

Files Change
.env, app/config/variables.php, docker-compose.yml Remove _APP_CONSOLE_PASSKEY_ORIGINS and bump the console image to the 2.5.0 tag
app/init/constants.php, README.md, README-CN.md Bump APP_VERSION_STABLE to 2.5.0 and refresh install/upgrade image tags
src/Appwrite/Migration/Migration.php Register the 2.5.0 upgrade-path migration entry

One incomplete-removal issue remains: app/config/console.php still reads the removed _APP_CONSOLE_PASSKEY_ORIGINS variable, so self-hosted installs relying on it silently lose their extra passkey origins after upgrade.

Reviewed commit: e48dd51

@ghost

ghost commented Oct 13, 2026

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The release metadata changes are consistent with the existing release and migration rules, and I found no actionable defects.

This merges the 2.5.0 release metadata into main by updating the stable version, installer examples, and Console image pin. It maps 2.5.0 to the existing V25 migration and removes the self-hosted Console passkey-origins variable from the default environment and Compose configuration.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 7
File Change
.env Removes the Console passkey-origins variable from the example environment.
README.md Updates install examples to use Appwrite 2.5.0.
README-CN.md Updates Chinese install examples to use Appwrite 2.5.0.
app/config/variables.php Removes the Console passkey-origins variable definition.
app/init/constants.php Sets the stable application version to 2.5.0.
docker-compose.yml Removes the passkey-origins environment passthrough and pins Console 1.2.74.
src/Appwrite/Migration/Migration.php Maps Appwrite 2.5.0 to the existing V25 migration.

Reviewed e48dd51 · 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

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