Skip to content

Release Appwrite 2.4.0 (self-hosted) #14251

Closed

Description

@ChiragAgg5k

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 no 2.3.1 or 2.4.0 tag, and no 2.4 release PR, issue or milestone. Milestones haven't been used since 1.5.0.
  • The only X.Y.x branch on origin is 2.0.x. 2.3.x was deleted right after chore: merge 2.3.x into main after 2.3.0 #13861 (2.3.x → main) merged. The repo's delete_branch_on_merge setting is off, so the branch was deleted by hand or by a --delete-branch flag.
    • Because 2.3.x is gone, nightly.yml resolves to 2.0.x and fails every night with No 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.
  • main is 213 first-parent merges ahead of 2.3.0 (around 220 merged PRs). APP_VERSION_STABLE is still '2.3.0'.

What's on main since 2.3.0 (release-note material)

Open PRs worth deciding on before cutting

Process and tooling

Steps

  1. 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).

  2. Fix the env var metadata. variables.php marks _APP_DNS_EXTERNAL and _APP_ALLOWED_INTERNAL_ADDRESSES as 'introduction' => '2.3.1', but 2.3.1 never shipped. Change them to 2.4.0, unless 2.3.1 ships first. Check _APP_TRUSTED_PROXIES too, then run bin/release check to make sure its env sync rules pass. Also fix the // Added in 2.3.0 for custom user photos comment in V25.php: photoId and photoSize came in after 2.3.0 (feat: custom user avatar upload and delete #13949).

  3. 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 new V26. Whichever is chosen, confirm V25 is idempotent for installs that already ran it at 2.3.0. bin/release prepare will warn because migrations changed since the last tag.

  4. bin/release prepare 2.4.0 from origin/main. This:

    • creates release/2.4.0
    • bumps APP_VERSION_STABLE and the README / README-CN install snippets
    • pins the newest appwrite/new:<x>-self-hosted console from the last 10 vibes releases
    • adds the Migration::$versions entry
    • writes a notes draft

    Review and amend the commit, then bin/release push 2.4.0. That pushes 2.4.x and release/2.4.0 and opens the prep PR (release/2.4.0 → 2.4.x) and the 2.4.x → main PR.

  5. 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 (what migrate touches: users, authenticators, challenges; plus the _APP_OPENSSL_KEY_V1 requirement 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.

  6. Merge the prep PR into 2.4.x once CI is green.

  7. Run both gates locally against origin/2.4.x and record the results with the tested SHA in the 2.4.x → main PR:

    • 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 migrate twice to check idempotency. Specifically check:
      • the ClickHouse config and init files are written on upgrade
      • the browser network and the removed appwrite-assistant service
      • passkey sign-in and user photos work afterwards
      • nothing breaks with the default _APP_TRUSTED_PROXIES
    • bin/release check 2.4.0 --ref=<sha>.
  8. Publish with bin/release publish 2.4.0 --sha=<tested-sha> --notes=notes.md (needs maintainer approval). Watch the Release workflow until the 2.4.0, 2.4, 2 and latest tags are pushed to Docker Hub.

  9. Merge 2.4.x → main without deleting 2.4.x: no --delete-branch, and don't click delete. Then check that the next nightly.yml run resolves 2.4.x and publishes 2.4-nightly. Consider a one-line note in docs/releases.md that the release branch must survive the merge.

  10. Specs:

    • Open the cloud PR chore(specs): prepare 2.4.x in appwrite-labs/cloud, with composer update appwrite/server-ce and 2.4.x added under latest in specs.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/specs PRs and add the 2.4.x row to its README.
  11. Docs and website: open the appwrite/vibes PR docs: Appwrite 2.4.0 release. Run bun run release:self-hosted 2.4.0 --notes=… --appwrite=…, then --specs after 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.

  12. 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.

  13. Upgrade oss.appwrite.org to 2.4.0 (with approval, per docs/releases.md).

  14. Close this issue with links to every PR.

Risks

  • Upgrade breakage from compose changes: the new ClickHouse mounts, the browser network and the removed assistant service. If the upgrader doesn't write clickhouse-config.xml and clickhouse-init.sh, ClickHouse may fail to start.
  • _APP_OPENSSL_KEY_V1 empty 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.identifier over 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 since RequestV27 (2.0.0).
  • Nightly stays broken if 2.4.x is 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

Done when

  • 2.4.0 GitHub Release is published from 2.4.x on the tested SHA, with reviewed notes.
  • appwrite/appwrite:2.4.0, 2.4, 2 and latest are 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 → main PR, and that PR is merged.
  • 2.4.x still exists, and nightly.yml is green, publishing 2.4-nightly.
  • appwrite/specs has specs/2.4.x, and latest is 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

  1. self-assigned this
    on Oct 8, 2026
  2. added
    product / auth
    product / avatars
    product / console
    product / databases
    product / functions
    product / messaging
    product / migrations
    product / self-hosted
    product / sites
    product / storage
    product / vcs
    sdk / cli
    on Oct 8, 2026
  3. ChiragAgg5k commented on Oct 8, 2026

    @ChiragAgg5k
    MemberAuthor

    Released: Appwrite 2.4.0 (published 2026-10-08 11:21 Dublin, target eac5bde). 2.4.x was merged back into main via #14254. Remaining plan steps (specs, docs/changelog, SDK wave, oss.appwrite.org) are still open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

product / authproduct / avatarsproduct / consoleproduct / databasesproduct / functionsproduct / messagingproduct / migrationsproduct / self-hostedproduct / sitesproduct / storageproduct / vcssdk / cli

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions