Repository navigation
Description
Goal
Ship Appwrite 2.4.0 as the next stable self-hosted minor: tag it from a new 2.4.x branch, publish appwrite/appwrite:2.4.0 (plus 2.4, 2, latest), and then do the follow-up steps that come after a release (merge 2.4.x back to main, cloud specs PR, appwrite/specs 2.4.x, the vibes docs and changelog PR, oss.appwrite.org). Follow the documented process in docs/releases.md using bin/release.
It has to be a minor, not 2.3.1. Since 2.3.0, main gained new public API (passkeys, custom user photos and more), schema changes and a removed env var. Those are the conditions docs/releases.md sets for a minor.
Current footprint (as of 2026-10-08)
Releases and branches
- Latest stable is 2.3.0 (2026-09-23, tag
d66a7eff). Before it came 2.2.0 (09-15), 2.1.0 (09-11) and 2.0.0 (09-04). There is no2.3.1or2.4.0tag, and no 2.4 release PR, issue or milestone. Milestones haven't been used since 1.5.0. - The only
X.Y.xbranch on origin is2.0.x.2.3.xwas deleted right after chore: merge 2.3.x into main after 2.3.0 #13861 (2.3.x→main) merged. The repo'sdelete_branch_on_mergesetting is off, so the branch was deleted by hand or by a--delete-branchflag.- Because
2.3.xis gone,nightly.ymlresolves to2.0.xand fails every night withNo green CI run on 2.0.x. - Every scheduled run since 2026-09-16 has failed. The only success since then is a single 09-30 run.
- Because
mainis 213 first-parent merges ahead of 2.3.0 (around 220 merged PRs).APP_VERSION_STABLEis still'2.3.0'.
What's on main since 2.3.0 (release-note material)
-
Features:
- Passkeys (feat: passkeys #13983)
- Custom user avatar upload and delete (feat: custom user avatar upload and delete #13949, feat(avatars): store the placeholder as the photo on deletePhoto #14065)
- Webflow OAuth2 provider (feat(oauth2): add Webflow provider #13946)
- OAuth2
promptsetting (feat: add prompt to project OAuth2 provider settings #13905) currentparam on deleteSessions (feat: add current param to deleteSessions endpoint #13990)durationon createEmailPasswordSession (feat: add duration param to createEmailPasswordSession #14004)totalparam on the remaining list endpoints (feat: add total param to remaining listX endpoints #13991)- Messaging: user push without a device target (feat(messaging): Appwrite user push without a device target #13876), message filters by user and target (feat(messaging): allow filtering messages by user and target #13958), Android notification channel (feat(messaging): carry an Android notification channel on push messages #13945),
messageIdin the push payload (feat(messaging): include messageId in the Appwrite push payload #13981) - Custom mail headers (feat(mails): pass custom headers through the mail queue #13851)
- Installation reporting (feat(installer): report CLI and no-start installs #13844, feat: report self-hosted installs to cloud's installations endpoint #13917)
- MQTT broker telemetry and usage (feat(mqtt): broker telemetry and per-project usage #14043, feat(mqtt): drive telemetry collection on the broker worker #14115, feat(mqtt): emit an always-on broker uptime gauge for liveness #14188)
- Standard OpenAPI request examples (feat(specs): add standard OpenAPI request examples #13918)
-
Security: the SSRF destination policy is now built into the HTTP client (fix(security): make the destination policy part of the HTTP client (SSRF) #13998). It adds
_APP_DNS_EXTERNALand_APP_ALLOWED_INTERNAL_ADDRESSES, plus_APP_TRUSTED_PROXIESin.envanddocker-compose.yml. -
Removed:
- The retired Appwrite Assistant: the
appwrite-assistantservice,_APP_ASSISTANT_OPENAI_API_KEYand theassistant.readscope (chore: remove the retired Appwrite Assistant #14167, fix: keep the assistant.read scope for existing OAuth2 clients #14200).
- The retired Appwrite Assistant: the
-
Behaviour change:
_APP_OPENSSL_KEY_V1now defaults to empty invariables.php. Production refuses to start when it's empty and warns on theyour-secret-keyplaceholder. -
Compose changes:
- New
browsernetwork.appwrite-browser0.3.4 → 0.3.6 now runs on that isolated network. appwrite/geo0.3.1 → 0.3.2.- ClickHouse now mounts
clickhouse-config.xmlandclickhouse-init.sh(fix: bound ClickHouse system log retention #13735, fix(clickhouse): cap the system log tables #13872). The installer writes these files, seeInstall.phpandDocker/Compose/Generator.php. - The console is pinned at
appwrite/new:1.2.5-self-hosted(it was 1.1.159 in 2.3.0).
- New
-
Schema:
collections/common.phpadds:users.photoIdandusers.photoSizeauthenticators.identifier,nameandaccessedAt, plus the_key_identifier(unique) and_key_accessedAtindexeschallenges.passkey
These are added by extending
V25(Migration/Version/V25.php), not by adding a new class.Migration.phpmaps 1.9.6 through 2.3.0 →V25, andmigrateruns only the target version's class. -
Response format: the
V29response filter already exists and is registered forx-appwrite-response-format < 2.4.0inapp/controllers/general.php. It hides thepasskeyauth method from older SDKs. appwrite/vibes#489 (passkeys console UI) relies on the 2.4.0 response format and SDK. -
Refactors marked breaking:
refactor(client)!(refactor(client)!: remove the aliases for the pre-0.5 names #13883),refactor(abuse)!(refactor(abuse)!: make adapters immutable #14056) andfeat(query)!query 0.7.0 (feat(query)!: 0.7.0 — single join form with required alias, getAlias(), typed cursors #14180). These look like changes to internal packages, but that needs confirming (see open questions).
Open PRs worth deciding on before cutting
- fix(migrations): validate source endpoints #14034 / fix(migrations): validate source endpoints #14035 (
2.0.x) / fix(migrations): validate source endpoints #14036 (1.9.x):fix(migrations): validate source endpoints. This is SSRF hardening, updated today. - feat(mqtt): optional broker-side TLS termination for mqtts #14249: optional broker-side TLS for mqtts (feature, can wait for the next release).
- feat: move the console into apps/console with path-filtered CI #14232: moves the console into
apps/consolewith path-filtered CI. It changes the repo layout, so it should go in either before the branch is cut or after. - feat(ci): gate releases on a fresh install and an upgrade #13692:
feat(ci): gate releases on a fresh install and an upgrade. Open since 09-15; the gates are still run locally.
Process and tooling
- Process doc:
docs/releases.md. Tool:bin/releasewithprepare,push,checkandpublish. - Image build:
release.yml, which runs on releasepublished. It builds amd64 and arm64, refuses a version that's already on Docker Hub, and adds the tags via metadata-action semver. - Cloud images (out of scope):
publish.ymloncl-*tags. - Release notes live on the GitHub Release and at appwrite.io/changelog.
CHANGES.mdonly links there. - Previous release for reference: chore: prepare 2.3.0 release #13857 (prep PR into
2.3.x) and chore: merge 2.3.x into main after 2.3.0 #13861 (2.3.x→main, the test record). The tracking issue was appwrite-labs/cloud#6153.
Steps
-
Decide on the open questions below, especially 2.3.1 and which PRs to land first. Then merge whatever must be in 2.4.0 (at least the fix(migrations): validate source endpoints #14034 migration-source validation, if it's ready).
-
Fix the env var metadata.
variables.phpmarks_APP_DNS_EXTERNALand_APP_ALLOWED_INTERNAL_ADDRESSESas'introduction' => '2.3.1', but 2.3.1 never shipped. Change them to2.4.0, unless 2.3.1 ships first. Check_APP_TRUSTED_PROXIEStoo, then runbin/release checkto make sure its env sync rules pass. Also fix the// Added in 2.3.0 for custom user photoscomment inV25.php:photoIdandphotoSizecame in after 2.3.0 (feat: custom user avatar upload and delete #13949). -
Migration decision. Either keep mapping
'2.4.0' => 'V25', as 2.1.0, 2.2.0 and 2.3.0 did (2.3.0 also extended V25), or split the 2.4 schema changes into a newV26. Whichever is chosen, confirm V25 is idempotent for installs that already ran it at 2.3.0.bin/release preparewill warn because migrations changed since the last tag. -
bin/release prepare 2.4.0fromorigin/main. This:- creates
release/2.4.0 - bumps
APP_VERSION_STABLEand the README / README-CN install snippets - pins the newest
appwrite/new:<x>-self-hostedconsole from the last 10 vibes releases - adds the
Migration::$versionsentry - writes a notes draft
Review and amend the commit, then
bin/release push 2.4.0. That pushes2.4.xandrelease/2.4.0and opens the prep PR (release/2.4.0→2.4.x) and the2.4.x→mainPR. - creates
-
Write the release notes in the prep PR body using the 2.2.0/2.3.0 skeleton: intro, Highlights (including the console bump), Fixes by area, Under the hood, Removed (Assistant,
_APP_ASSISTANT_OPENAI_API_KEY,assistant.read), Install / Upgrade (whatmigratetouches:users,authenticators,challenges; plus the_APP_OPENSSL_KEY_V1requirement and the new env vars), and Contributors. Only list features a self-hoster can reach through the API and the pinned console, and say in the PR which API additions have no console screen yet. -
Merge the prep PR into
2.4.xonce CI is green. -
Run both gates locally against
origin/2.4.xand record the results with the tested SHA in the2.4.x→mainPR:- Fresh install:
docker compose down -v,up -d --force-recreate --build --wait,/v1/health/version, unit tests,tests/e2e/General, service e2e, and real console, project, database, storage and functions/sites flows. - Upgrade from 2.3.0 with seeded data, then
migratetwice to check idempotency. Specifically check:- the ClickHouse config and init files are written on upgrade
- the
browsernetwork and the removedappwrite-assistantservice - passkey sign-in and user photos work afterwards
- nothing breaks with the default
_APP_TRUSTED_PROXIES
bin/release check 2.4.0 --ref=<sha>.
- Fresh install:
-
Publish with
bin/release publish 2.4.0 --sha=<tested-sha> --notes=notes.md(needs maintainer approval). Watch theReleaseworkflow until the2.4.0,2.4,2andlatesttags are pushed to Docker Hub. -
Merge
2.4.x→mainwithout deleting2.4.x: no--delete-branch, and don't click delete. Then check that the nextnightly.ymlrun resolves2.4.xand publishes2.4-nightly. Consider a one-line note indocs/releases.mdthat the release branch must survive the merge. -
Specs:
- Open the cloud PR
chore(specs): prepare 2.4.xin appwrite-labs/cloud, withcomposer update appwrite/server-ceand2.4.xadded underlatestinspecs.yml. Merge it. - Run
gh workflow run specs.yml -R appwrite-labs/cloud --ref main -f version=2.4.x -f server-ce-ref=$(git rev-list -n1 2.4.0), then-f version=latest. - Merge both
appwrite/specsPRs and add the2.4.xrow to its README.
- Open the cloud PR
-
Docs and website: open the appwrite/vibes PR
docs: Appwrite 2.4.0 release. Runbun run release:self-hosted 2.4.0 --notes=… --appwrite=…, then--specsafter the specs PR merges. Do the manual items too: changelog cover, env var rows for the new and removed vars, SDK compatibility rows,docker compose config, and screenshots. Coordinate with vibes#489 (passkeys UI), which needs the 2.4.0 SDK. -
SDKs: release the 2.4 SDK wave so clients send response format 2.4.0 and can use passkeys and the other new endpoints. The previous wave was tracked in appwrite-labs/cloud#6153.
-
Upgrade oss.appwrite.org to 2.4.0 (with approval, per
docs/releases.md). -
Close this issue with links to every PR.
Risks
- Upgrade breakage from compose changes: the new ClickHouse mounts, the
browsernetwork and the removed assistant service. If the upgrader doesn't writeclickhouse-config.xmlandclickhouse-init.sh, ClickHouse may fail to start. _APP_OPENSSL_KEY_V1empty means production won't boot. Old or hand-written installs with an empty key would fail after upgrading, and this must be called out in the notes.- V25 re-run on 2.3.0 installs has to stay idempotent. It now creates a unique index on
authenticators.identifierover existing rows where that field is null. MariaDB and Postgres allow multiple NULLs in a unique index, but MongoDB needs checking: a non-sparse unique index there treats missing values as duplicates. The upgrade gate has to cover this. - SSRF policy defaults (
_APP_TRUSTED_PROXIES,_APP_ALLOWED_INTERNAL_ADDRESSES) may block self-hosters who use internal OIDC providers, webhooks or migration sources, or a non-standard reverse proxy. The upgrade notes need to cover this. - Unintended public API breaks from the
!refactors (query 0.7.0 especially) with no request or response filter. No new request filter has been added sinceRequestV27(2.0.0). - Nightly stays broken if
2.4.xis deleted on merge again. It has been broken since about 09-16. - Console pin drift: vibes ships several releases a day, so the pin has to be fresh at prepare time and the console has to be smoke-tested.
- About 220 PRs in one minor. The release notes and gates take longer than they did for 2.3.
Open questions
- Ship 2.3.1 first? The SSRF fix (fix(security): make the destination policy part of the HTTP client (SSRF) #13998) is labelled for 2.3.1 in
variables.php, but there is no2.3.xbranch and no 2.3.1 tag.docs/releases.mdsays security fixes ship out of band. Should 2.3.1 be cut from the2.3.0tag with fix(security): make the destination policy part of the HTTP client (SSRF) #13998 and fix(migrations): validate source endpoints #14034 backported, or should they go into 2.4.0 with the metadata relabelled? V25vs a newV26for the 2.4 schema changes (step 3).- Are 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 and refactor(abuse)!: make adapters immutable #14056 breaking only for internal packages, or does any public request or response shape change (for example the query join syntax)?
- Should feat: move the console into apps/console with path-filtered CI #14232 (console move to
apps/console) land before or after the branch is cut? - Should feat(ci): gate releases on a fresh install and an upgrade #13692 (CI release gates) merge first so the gates run in CI instead of locally?
- Is the 2.4 SDK wave released at the same time as 2.4.0 or after it?
Done when
-
2.4.0GitHub Release is published from2.4.xon the tested SHA, with reviewed notes. -
appwrite/appwrite:2.4.0,2.4,2andlatestare on Docker Hub (amd64 and arm64). - Fresh-install and 2.3.0 → 2.4.0 upgrade gates pass and are recorded in the
2.4.x→mainPR, and that PR is merged. -
2.4.xstill exists, andnightly.ymlis green, publishing2.4-nightly. -
appwrite/specshasspecs/2.4.x, andlatestis regenerated. - The vibes PR is merged: changelog entry, install/upgrade docs, compose generator, env var rows, API reference 2.4.x.
- oss.appwrite.org runs 2.4.0.
- The 2.4 SDKs are released, or tracked separately.
Activity
ChiragAgg5k commentedon Oct 8, 2026
Released: Appwrite 2.4.0 (published 2026-10-08 11:21 Dublin, target
eac5bde).2.4.xwas merged back intomainvia #14254. Remaining plan steps (specs, docs/changelog, SDK wave, oss.appwrite.org) are still open.