Repository navigation
chore: prepare 2.4.0 release - #14252
Conversation
|
Review complete. No issues found — approved ✅. This PR ships the 2.4.0 self-hosted release: it updates
No findings met the review threshold; the version, migration-map, and documentation bumps were found consistent at 2.4.0. Reviewed commit: 2f2d188 |
|
API additions left out of the release notes because console 1.2.55 has no screen for them yet: passkeys (#13983); the OAuth2 provider The 2.4.x → main release-record PR opens once this merges (2.4.x has no commits of its own until then). Merge it without deleting 2.4.x: 2.3.x was deleted after its merge-back, which left nightly building 2.0.x and failing since 2026-09-23. |
🟢 Tier S · Ready to mergePrepares the 2.4.0 self-hosted release by updating the documented install image, stable version, Console image, and migration mapping. It also updates environment-variable release metadata and the custom-photo migration note.
📂 Walkthrough · 6
Reviewed |
Security rulesNo new WARNING or ERROR findings from security rules. 32 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Appwrite 2.4 adds custom profile photos, Webflow sign-in, push messages straight to a user without a device target, and webhook delivery IDs with retries that only resend what failed. The Console gets CLI and MCP onboarding and a breached password policy. Outbound requests and sign-in tokens are locked down further, ClickHouse no longer fills the disk with its own logs, and the Appwrite Assistant is retired. It ships with the 1.2.55 self-hosted Console (was 1.1.159).
Upgrading from 2.3.0 is one command plus
migrate. Read the Upgrade section first if you run behind a public load balancer, use the GitHub integration without a webhook secret, or reach private hosts for OAuth2, webhooks or messaging.Highlights
PUT /v1/avatars/photoand remove it withDELETE /v1/avatars/photo.GET /v1/avatars/photoserves it ahead of the OAuth2, Gravatar and initials fallbacks. The newavatars.writescope covers both writes. In the Console, the Profile photo card is on Account › General, and user photos show across Auth and teams. (feat: custom user avatar upload and delete #13949, fix(avatars): expose photo update and delete in the console SDK #14055, feat(avatars): store the placeholder as the photo on deletePhoto #14065, chore(avatars): report photo storage through unified storage #14129, appwrite/vibes#516, appwrite/vibes#511, appwrite/vibes#512)usersreaches the user on a reservedusers/<userId>topic without registering a push target, and the payload includesmessageId. (Reserved topics for users #13860, feat(messaging): Appwrite user push without a device target #13876, feat(messaging): include messageId in the Appwrite push payload #13981)X-Appwrite-Webhook-Delivery-Id, and a retry goes only to the endpoints that failed. A function that already ran is never run again by a retry. (fix(webhooks): retry only the endpoints that failed, under a stable delivery id #14025, fix(functions): never redeliver a message once the function has run #14023)_APP_ALLOWED_INTERNAL_ADDRESSES._APP_DNS_EXTERNALsets the DNS servers used to check migration and avatar hosts (defaults to_APP_DNS). Avatar image, favicon and screenshot URLs with a non-public host now return 400.appwrite-browsermoves to its own network and only reaches public hosts andappwrite. (fix(security): make the destination policy part of the HTTP client (SSRF) #13998, fix(avatars): validate remote URLs with a public URL param validator #13995, fix(avatars): allow only Accept and Accept-Language as screenshot headers #14061, fix(client): unrestricted Swoole clients leave name resolution to Swoole #14066, chore: bump appwrite/browser to 0.3.6 #14127)user_oauth2_state_invalidon a mismatch. Server-started OAuth2 token sign-in still works, andcreateOAuth2Token/createOAuth2Sessiontake an optionalstatethat is returned on the success and failure URLs. (Bind user JWTs to the project that issued them #13992, Bind MQTT user JWTs to their project; console claim for admin-mode JWTs #13997, Unbound user JWT authenticates nobody instead of failing the request #14002, fix(account): validate OAuth2 state on the redirect callback #14012, fix(account): restore server-started OAuth2 token sign-in, with guest fallback and optional state #14157)system.*logs grew by hundreds of MB a day on idle installs. The unused logs are now off, the rest are kept 3 to 14 days, and existing log tables get a retention on start, so the space comes back on its own. External ClickHouse servers are untouched. (fix: bound ClickHouse system log retention #13735, fix(clickhouse): cap the system log tables #13872)Fixes
Console
_APP_COMPUTE_SIZE_LIMITinstead of fixed 10 MB and 100 MB caps. (appwrite/vibes#483, chore: bump self-hosted console to 1.2.5 #13967, fixes Flutter web app redeploy not working, for it's size limitation #13916)gitlab.com. (appwrite/vibes#448, feat(vcs): expose the installation's organization URL #13875, chore: bump self-hosted console to 1.1.167 #13879)Auth and users
403 user_impersonation_read_only. Before,DELETE /v1/accountdeleted the target. MFA checks use the impersonator's own factors. (fix(account): use the impersonated user for account reads and block account writes #13653, fix(security): count MFA factors against the impersonator's own settings #14017)currentkeyword and session invalidation work with JWTs. (fix: resolve the current session under JWT auth #13900)users.writeget an empty tokensecret. Recovery tokens are single-use, and password changes end other sessions and pending MFA challenges. (fix(security): transaction ACL, OTP secret masking, nested relationship permissions #14045, fix: close remaining medium issues #14048)/v1/users/:userId/sessionsroutes needusers.read/users.write;sessions.*alone is no longer enough. (fix(users): align session route scopes with their admin/server auth types #13994)appwrite-callback-<projectId>://. (fix(account): redirect native OAuth2 logins straight to the app callback #13970, docs(flutter): explain that native OAuth2 must use the default redirect #13976, fixes 🐛 Bug Report: [FLUTTER] Appwrite OAuth2.0 api detects app link redirects as user canceling action by throwing PlatformException(User Canceled Login) #3142)POST /v1/teamsaccepts 81-character roles, and the anti-phishing phrase uses a CSPRNG. (fix(teams): allow 81-character roles on team create #13944, fixes 🚀 Enhancement: Increase the word length of Team Role Parameter into 50 or 100 #8051; fix(auth): generate the anti-phishing phrase with a CSPRNG #13943, fixes Security phrase generator uses non-CSPRNG (array_rand) in Phrase::generate() #12783; fix: record SDK names on API keys regardless of case #13940)Databases and TablesDB
400 transaction_not_ready. (fix(databases): claim a transaction commit atomically #14163, fixes 🐛 Bug Report: Concurrent commits apply a transaction more than once #14142)getColumnandgetAttributedeclare every column type, so typed SDKs decode the newer ones. (fix(databases): declare every column model on getColumn and getAttribute #13877)relationshipupdates through its typed route. Relationships named after a type must userelationship/:key. (fix(http): prefer the more specific route when templates collide #14165, fixes 🐛 Bug Report: Enum attribute named 'relationship' cannot be edited #8760)availableno longer fails. (fix(databases): purge cached collection before announcing schema changes #14104)Functions and Sites
node-26. Templates are no longer offered onnode-14.5,node-16.0orpython-3.8, and fresh installs enablenode-22. The MCP server template supports OAuth. (fix(functions): move templates to 1.2.0 so Node templates work on Node 26 #13881, feat(templates): support OAuth sign-in in the MCP server template #14131)x-appwrite-id, and local build workers only see their own project. (fix(deployments): validate x-appwrite-id to prevent path traversal #13996, fix(deployment): isolate Local build workers from sibling project trees #14098)$createdAtno longer scans the whole history in ClickHouse. (fix(executions): narrow listings to the requested createdAt window before aggregating #13982)package.jsonis no longer detected as Angular. (fix(detector): detect TanStack Start SSR from the Nitro import #13960, fixes detector: getAdapter() reports static for an SSR app that prerenders any route #13912; fix(detector): stop scoring bare package.json as a framework hit #13965, fixes detector: Framework detection can never return null for a repo with a package.json #13911)Messaging
Webhooks
authPasswordis write-only and is dropped when the URL changes or TLS verification is turned off. (fix(webhooks): make authPassword write-only #14016)Storage
Unable to connect to ClamAv server#8603)InternalErrorresponses and safe-to-replay connection failures. (fix(storage): retry S3 internal errors and replayable transport failures #13979)Domains and certificates
VCS
_APP_VCS_GITHUB_WEBHOOK_SECRET. See Upgrade. (fix: require GitHub webhook secret like other VCS providers #13999).envdetection keeps#in unquoted values and readsexportlines. (fix(config): close the review findings carried over from 2.0.8 #14235)Realtime
Origincheck applies to every project and accepts the_APP_CONSOLE_URLhost. (fix(realtime): align origin validation with the HTTP API #14020)Migrations
API
nullfor an optional parameter counts as omitted instead of returning 500. (fix: treat explicit null optional params as omitted without changing endpoints that rely on null #13852){}, matching the spec. (fix: serialize response models to match the published spec #14158)updateEmail,updateSmsandupdatePushtake parameters in the same order as their create methods. This changes the generated SDK signatures. (refactor(messaging): align message update params with create #13959, fixes 🚀 Enhancement: Make create/update email/push/sms endpoints consistent #7919)Installer and workers
_APP_OPENSSL_KEY_V1instead of usingyour-secret-key. Upgrades keep the existing key. (fix: close remaining medium issues #14048)installandupgradeprint. (fix: close remaining medium issues #14048)doctorchecks for updates against the latest GitHub release. (fix(doctor): check for updates against the latest GitHub release #14162, fixes 🐛 Bug Report: Doctor Always Fails to Check for Updates #7717)Under the hood
packages/, andutopia-php/clientreplacesutopia-php/fetch. (chore: absorb client and span into packages/ #13858, chore: absorb user-agent into packages/user-agent #13862, chore: absorb messaging into packages/messaging #13863, chore: absorb openapi into packages/openapi #13865, chore: absorb image into packages/image #13867, chore: absorb circuit-breaker into packages/circuit-breaker #13869, chore: absorb websocket into packages/websocket #13870, chore: absorb di into packages/di #13885, chore: absorb balancer into packages/balancer #13886, chore: absorb schedule into packages/schedule #13887, chore: absorb locale into packages/locale #13888, chore: absorb registry into packages/registry #13889, chore: absorb auth into packages/auth #13890, chore: absorb detector into packages/detector #13891, chore: absorb mqtt into packages/mqtt #13892, chore: absorb dsn into packages/dsn #13894, chore: absorb query into packages/query #13896, chore: absorb validators into packages/validators #13897, chore: absorb cache into packages/cache #13899, chore: absorb servers into packages/servers #13921, chore: absorb domains into packages/domains #13922, chore: absorb cdn into packages/cdn #13923, chore: absorb console into packages/console #13925, chore: absorb storage into packages/storage #13926, chore: absorb dns into packages/dns #13927, chore: absorb cli into packages/cli #13928, chore: absorb emails into packages/emails #13929, chore: absorb http into packages/http #13930, chore: absorb queue into packages/queue #13931, chore: absorb vcs into packages/vcs #13932, chore: absorb platform into packages/platform #13953, chore: absorb abuse into packages/abuse #13954, chore: absorb audit into packages/audit #13955, chore: absorb usage into packages/usage #13956, chore: absorb nats into packages/nats #13969, chore: absorb orchestration into packages/orchestration #14054, chore: absorb utopia-php/config into packages/config #14227, refactor: replace utopia-php/fetch with client #13893, feat(client): cap redirect hops and resend in-memory bodies on 307/308 #13910, fix(client): declare Content-Length: 0 on empty POST, PUT and PATCH bodies #14072)appwrite/geo0.3.2. (fix(databases): allow updates of rows that predate a required column #14202, chore(deps): bump utopia-php/migration to 2.0.8 #13978, refactor(abuse)!: make adapters immutable #14056, feat(query)!: 0.7.0 — single join form with required alias, getAlias(), typed cursors #14180, refactor(client)!: remove the aliases for the pre-0.5 names #13883, chore: bump appwrite/geo to 0.3.2 #14100)cloud.appwrite.io;DO_NOT_TRACK=1still opts out. (feat: report self-hosted installs to cloud's installations endpoint #13917)Removed
appwrite-assistantcontainer and_APP_ASSISTANT_OPENAI_API_KEY. Theassistant.readscope still validates for existing OAuth2 clients but grants nothing, andmigrateremoves it from API keys, functions and sites. (chore: remove the retired Appwrite Assistant #14167, fix: keep the assistant.read scope for existing OAuth2 clients #14200, appwrite/vibes#547)VITE_GROWTH_ENDPOINTfrom the console service. (feat: report self-hosted installs to cloud's installations endpoint #13917)Install
docker run -it --rm \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ --entrypoint="install" \ appwrite/appwrite:2.4.0Upgrade
Run the same command with
--entrypoint="upgrade", then migrate:The migration stays on V25. It adds columns for passkeys, authenticator names and profile photos to every project, and removes
assistant.readfrom keys, functions and sites. It takes longer the more projects you have. The new compose file dropsappwrite-assistant, movesappwrite-browserto its own network and adds two ClickHouse config mounts. Remove_APP_ASSISTANT_OPENAI_API_KEYfrom your.env.Before upgrading, check these:
_APP_TRUSTED_PROXIES(private ranges by default). If a public hop like Cloudflare adds itself toX-Forwarded-For, add its ranges there or set_APP_TRUSTED_HEADERS(for examplecf-connecting-ip). Otherwise all clients look like that hop and share its rate limits. (fix: close remaining medium issues #14048)_APP_VCS_GITHUB_WEBHOOK_SECRET, or GitHub stops working. (fix: require GitHub webhook secret like other VCS providers #13999)_APP_ALLOWED_INTERNAL_ADDRESSES. Messaging providers no longer useHTTP_PROXY/HTTPS_PROXY. If your screenshots router is notappwrite, add it toALLOWED_HOSTSonappwrite-browser. (fix(security): make the destination policy part of the HTTP client (SSRF) #13998, chore: bump appwrite/browser to 0.3.6 #14127)node-18.0or later in_APP_FUNCTIONS_RUNTIMES. The old default only hasnode-16.0, and upgrades keep it. (fix(functions): move templates to 1.2.0 so Node templates work on Node 26 #13881)If you upgrade with
--use-existing-config, copy the two ClickHouse mounts from the newdocker-compose.ymlyourself to get log retention. Back up your data first.Contributors
Thank you to everyone who contributed to 2.4.0:
@ChiragAgg5k @HarshMN2345 @abnegate @loks0n @levivannoort @Meldiron @ArnabChatterjee20k @eldadfux @jaysomani @TorstenDittmann @lohanidamodar @imtia33 @fogelito @Indra55 @AayushKrGupta
Related: #14251