What the Zitadel v3 to v4 upgrade changes and which path to take
The Zitadel v3 to v4 upgrade is a planned, staged move, and its most important step runs before the new runtime starts: the setup run must finish against your database before v4 pods or processes serve traffic. Plan it as a project with a written sequence, a rollback point and a rehearsal in a non-production environment. The supported path moves you from the v3 line to the v4 line, and you choose the target patch from the zitadel/zitadel releases page. The latest release we can point to is v4.19.5, published on 15 October 2026, but confirm the current v4 patch on the day you plan, read its release notes, and pin that exact version in your deployment files.
The license change matters before you touch any code. Zitadel moved its core, Console and hosted login from Apache 2.0 to the GNU Affero General Public License 3.0 with v3.0, effective 31 March 2025, so a v3 installation already operates under that license. APIs, SDKs, proto definitions, examples, documentation, Helm charts and Terraform configurations remain Apache 2.0. Ask counsel to confirm what AGPL 3.0 requires for any modified core, Console or login code you run, including what applies when users reach that code over a network, and record the answer before the upgrade branch is cut. Zitadel's own explanation of the change is in its Apache to AGPL post.
This page covers four areas: running setup before the new runtime starts, moving integrations off deprecated v1 endpoints to the v2 APIs, testing Login V2 with your custom branding, and deciding whether to keep Service Ping enabled. Before you read on, check two things in your own environment. Confirm that your PostgreSQL server runs one of the supported versions, 14 through 18, and confirm that you have a current backup and a named owner for each of the four decisions. Those answers determine which path fits your team, and whether one environment or several must move in sequence.
What changes in the Zitadel v3 to v4 upgrade, and what each change asks of you
This table lists the changes that matter most when moving self-hosted Zitadel from v3 to v4, with the impact on your installation and the action each one asks of your team. Read each row as a decision or task to schedule before cutover. Confirm exact deprecation dates and removal versions in the v4 release notes before you commit a plan.
| Change | Impact | Action needed |
|---|---|---|
| Setup must complete before the new runtime starts | The new runtime can fail or run against an incomplete schema if it starts before setup finishes. | Run setup to completion on v4 before starting the new runtime. Confirm the exact steps for your deployment method in the release notes. |
| v1 APIs deprecated in v4, replaced by resource-based v2 APIs | Scripts, CI jobs and custom code calling use-case based v1 endpoints for users, organizations or admin tasks may stop working once v1 is removed. | List every client that calls v1 endpoints, map each call to a v2 resource endpoint, and keep v1 only where no v2 equivalent exists. |
| Login V2 with custom branding | Custom branding must be re-checked against Login V2, which is a separate login UI with its own deployment. | Test Login V2 with your branding on a staging instance as its own track. Keep the upgrade cutover independent of that decision. |
| Service Ping decision | Service Ping is a reporting setting, so its state changes what your installation reports to the vendor. | Decide before cutover whether it stays enabled, record the decision, and confirm the setting and data sent in the v4 release notes. |
| Web key signing change | The main behavioral risk in this upgrade. Relying parties that cache or pin signing keys may reject tokens after cutover. | Read the web key page before scheduling cutover, and plan key staging and relying party checks from there. |
| PostgreSQL version support | Zitadel supports PostgreSQL 14 through 18. A database on any other major version needs a plan before cutover. | Compare your current PostgreSQL major version with 14 to 18 and schedule any database upgrade ahead of the v4 cutover. |
| Target v4 patch | The latest v4 release at the time of writing is v4.19.5, released 15 October 2026. | Pin one exact v4 patch for staging and production, read its release notes, and check GitHub for a newer patch before cutover. |
Preparation before you touch the v4 runtime
Each card below names something to produce or verify before the v4 runtime replaces v3. The inventories show which callers, relying parties and branding items will need attention, and the backup and staging work shows how to recover and test the change. Keep the outputs together in one change record so the cutover and any rollback use the same evidence.
Verified backup and restore
Back up the PostgreSQL database, the masterkey and the configuration that sets the external domain, TLS and database connection. Then restore all three into a separate environment, start Zitadel there and sign in with a test account. A backup counts only after that restore succeeds. Record when each backup was taken, the restore steps and who ran them, so a rollback has a path you have already exercised.
Inventory of v1 callers
List every integration that calls a v1 endpoint, including application code, scripts, scheduled jobs, CI pipelines, infrastructure tooling and third-party products that hold a Zitadel token. Scripts, CI jobs and third-party tools are the usual gaps. For each caller, record the endpoint, the owner, how its credential is stored and the v2 call that will replace it. Search repositories and pipeline definitions along with the applications you already know about, and mark any call with no v2 equivalent yet, since it will stay on v1 for now.
Relying parties and key handling
Build a register of every OIDC client, SAML service provider and API consumer that trusts this Zitadel instance. For each one, record the owner, the flows it uses, whether it validates tokens locally and whether it pins signing keys or certificates to fixed values. Ask each owner how the application fetches keys and what it does when it meets an unknown key identifier. This register shows which applications need a test window before the upgrade goes live.
PostgreSQL version check
Confirm the PostgreSQL server version against the range Zitadel supports, which is 14 through 18. Check the version reported by the server that Zitadel actually connects to, including managed services and replicas. A server outside that range needs a supported upgrade before the v4 runtime starts. Note who controls the upgrade path, since a managed database service may set the version and its schedule for you.
Zitadel database docsStaging that mirrors production
Build a staging environment with the same topology as production: the same deployment method, reverse proxy and HTTP/2 settings, TLS, domain pattern, database layout and number of Zitadel instances. Same topology, recent data is the standard to aim for. Load a recent copy of production data, and keep staging away from live user traffic and outbound email. Run the setup job, the v1 callers and the Login V2 checks there first, because a staging environment with a different topology will hide the problems this step exists to find.
Self-hosting overviewLogin V2 branding inventory
List every custom theme, logo, stylesheet, translated message, hosted page and custom domain used on the login screens. For each item, record where it is configured, who maintains it and whether it has been tested against the Login V2 pages. Hosted pages such as password reset, registration, error and logout are the easiest to miss, because users reach them on their own. Decide which branding to carry forward, then test those items in staging before the switch.
Zitadel v3 to v4 upgrade steps in order
The sequence moves a self-hosted Zitadel from v3 to v4 in an order that proves each change in staging before production is touched. Each step ends with a check and names its rollback action, so the team can stop at a known point. The output is a production cutover with a named rollback point and a recorded go decision.
Confirm current version and target patch
Record the Zitadel release each environment runs today, including staging, and confirm the PostgreSQL version against the supported range of 14 through 18. Use v4.19.5, released on 15 October 2026, as the reference patch, and check whether a later v4 patch exists before you lock the target. Done means every environment reports the same starting version and both versions are written in the change record. Rollback: nothing has changed yet, so stop and correct the record before continuing.
Read v4 release notes and log deprecations
Read the release notes on the Zitadel GitHub releases page for every release between your current version and the target. Log each deprecation in a register, including deprecated v1 endpoints, Login V1 items, Actions V1 and anything that touches signing keys. Give each line an owner and a planned disposition. Done means every entry has a disposition and the engineers who own those integrations have reviewed the register. Rollback: no environment has changed, so discard draft changes and repeat the review against the same notes.
Back up production and verify a staging restore
Take a consistent PostgreSQL backup of the production database and back up the configuration needed to run Zitadel, including the masterkey, deployment manifests or Helm values, and TLS and domain settings. Store the masterkey backup under your secrets controls, not beside the database dump. Restore the database into a separate staging environment and start the current v3 release against it. Done means staging serves the login pages and the admin console, and a test user can sign in with the restored data. Rollback: production is untouched, so discard the staging copy and repeat the backup until the restore check passes.
Run setup in staging before new runtime
Run the v4 setup against the restored staging database before any v4 pod or binary serves requests. Setup prepares the database for the new runtime, so let it finish on its own and wait for the job or command to report completion. Review its output for errors. Done means setup has exited successfully with no failures in the logs, and only then do you start the v4 runtime and send staging test traffic to it. Rollback: if setup fails or leaves the database in an unclear state, restore the staging backup from the previous step and redeploy the v3 release.
Repoint v1 integrations to v2 or keep v1
Inventory every script, service and automation that calls a v1 API. Move each call to the matching v2 resource API where v2 covers the use case. Keep v1 calls where v2 does not yet cover the use case, and record each kept call with its reason and a review date. Done means each integration completes its main flow in staging, such as reading users or creating grants, against the endpoint you chose. Rollback: switch the integration back to its previous v1 configuration, and confirm in the release notes that the v1 endpoint it uses remains available in v4.
Test Login V2 with branding and V1 fallback
Deploy the Login V2 UI in staging with your custom branding. Run sign-in tests for each method your users rely on, including password, passkey and any federated identity provider. Keep Login V1 deployed and configured as the fallback so the instance can return to it without a rebuild. Done means every test case passes with the branding applied and the results are filed with the change record. Rollback: use the setting that selects the login version to point the instance back to Login V1, then confirm a test sign-in works through the break-glass administrator account you tested beforehand.
Decide Service Ping and record the setting
Decide whether this deployment sends Service Ping, with the security or compliance owner and the platform owner agreeing on the answer. Set the value explicitly in your deployment configuration and do not rely on a default you have not checked in the release notes. Record the decision and its reason. Done means the configured value matches the recorded decision in every environment, and staging shows the same setting as production. Rollback: revert the setting to its previous value, redeploy, and update the change record.
Cut over production with a named rollback point
Schedule the production window, take a fresh backup, and name that backup and the v3 release as the rollback point in the change record. Run setup against production and wait for it to finish before starting the v4 runtime. Then run the go or no-go checks: sign-in, token issuance, the admin console, each repointed integration and the Login V2 fallback. Done means every check passes and the named owner records the go decision. Rollback: if any check fails or setup does not finish, record a no-go, restore the named backup and redeploy the v3 release.
How the upgrade phases and decision points connect
The diagram starts with inventory and a backup restore test, then runs setup before the staging upgrade so the new runtime starts against a prepared database. Integrations move from v1 to v2 APIs, and the Login V2 decision splits into adopting it now or keeping Login V1. Both branches reach the Service Ping decision. Production cutover only follows passing staging checks. A failed staging check or a problem found during verification sends you back to the backup, which is the rollback point.
Upgrade phases in order, with the staging gate and rollback points.
What makes a Zitadel v3 to v4 upgrade take longer
This table lists the factors that most often lengthen a Zitadel v3 to v4 upgrade and says which way each one moves effort. Read each row against your own estate: a higher count or larger footprint in a row generally means more planning, testing and staging before cutover. The main takeaway is that the API, signing key and login changes often drive effort more than the binary swap itself.
| Driver | Why it matters | Effect on effort |
|---|---|---|
| v1 API calls in custom code and automation | Each call site needs a v2 mapping, and calls with no v2 equivalent need a separate plan. | Raises effort with every v1 call site found |
| Custom Login V2 branding and hosted pages | Branding and hosted pages must be retested on Login V2 before the login version switches. | Raises effort with each custom page or template |
| Custom Actions and flows | Actions and flows need rework for Actions V2 targets, conditions and hosted endpoints, then testing. | Raises effort with each script, flow and trigger in use |
| Relying parties that pin signing keys | Each pinned application must trust the new key or be reconfigured before cutover. | Raises effort with each pinned application and its owners |
| Deployment method | Helm runs setup jobs ahead of new pods. Binaries and Docker Compose need manual ordering on each host. | Lowers effort with the Helm chart. Raises it for hand-run hosts. |
| Database size and backup restore time | Setup changes the PostgreSQL database, so a verified backup and restore rehearsal must fit the window. | Raises effort as the database and restore time grow |
| Number of instances and organizations | Each instance runs setup and checks, and per-organization identity providers and branding add test paths. | Raises effort with every added instance and organization |
| Monitoring and CI that depend on current endpoints | Dashboards, alerts, health checks and pipelines calling v1 endpoints fail at cutover unless updated. | Raises effort with each dependent job, alert and health check |
| Staging cycles required by test results | Each failed test sends the change back through fixes, a new staging run and retest. | Raises effort with every failed test, since each adds a cycle |
Whether to adopt Login V2 during the upgrade or after it
Staying on Login V1 after the upgrade is a supported option, and it keeps the most moving parts out of the change window. The team upgrades the runtime, runs setup before the new pods start, and then checks that sign-in behaves the same way for each application. Login V1 remains the deliberate choice only when the change record names it and gives it an owner.
- What the team tests: sign-in, MFA, passkey prompts with password fallback, password reset, and logout for every relying application, plus the signing key behavior covered in the separate key topic.
- What it can defer: the zitadel-login deployment, login client credentials, path routing, and any branding rework built for Login V2.
- Risk of this choice: the Login V1 surface stays in service, so the eventual migration is postponed and still needs doing.
- Risk of drift: without a review date, Login V1 becomes the default by inaction, and the team's knowledge of the switch fades.
Before the window closes, confirm the change record names Login V1 as the chosen path and sets a review date for the decision.
Adopting Login V2 in the same window as the v4 runtime gives you one change, one rollback decision and one approval. The team tests the login UI alongside the runtime, which only works if the test plan is ready before the window opens. The adoption steps, including the zitadel-login deployment and enabling Login V2 for the instance, are covered on the page Moving Zitadel from Login V1 to Login V2.
- Main test track: sign-in for every client on Login V2, including MFA, passkeys with password fallback, and federated logins for each external identity provider your organization uses.
- Separate branding track: custom branding gets its own run against a staging copy with production branding files, because templates and styling are where the login UI is most likely to differ from what users expect.
- Break-glass path: a break-glass administrator account is created and tested before the window, so a routing or login fault does not lock every administrator out of the console.
- What it can defer: Actions V1 to V2 rework, but only when the current Actions still run on v4 in staging. The rest of the integration backlog can move to later work.
- Risk of this choice: the failure surface doubles, so a branding or routing fault can look like a runtime fault and slow the rollback decision.
Before the window, confirm that the break-glass login and the rollback steps were both exercised in staging, with results written down.
Adopting Login V2 in a later window completes the v4 upgrade first, then changes the login UI after the new runtime has run cleanly for a period the team sets in advance. Failures are easier to attribute to one cause, but the team takes on a second change window, a second approval and a second round of testing for every application.
- What the first window tests: runtime health, token signing behavior, and sign-in success for each client on Login V1, which gives the team a clean baseline for the second window.
- What it can defer: the zitadel-login deployment, login client credentials, path routing and the branding redesign all move to the second window.
- Stability criteria: write down what stable means before the upgrade, such as no open incidents tied to the runtime and clean logs for an agreed period, and confirm the criteria with your own operations team.
- Risk of the delay: knowledge of the Login V1 setup fades, the second window still needs the full branding and break-glass tests, and an open-ended deferral becomes the default.
Before the first window, name an owner and a date for the second window, so the deferral has a plan and a rollback path.
How to test the v4 upgrade and roll it back safely
A staging test has to prove that the v4 instance works end to end before any production traffic moves. Start by confirming that setup completes cleanly against a copy of the production PostgreSQL database and that the new runtime starts without errors. Then test login for every identity provider that customers and workforce users depend on, including each provider attached to a customer organization, because one successful Google or Entra ID login says little about the others. For each relying party, request tokens and validate them against the published signing keys, checking issuer, audience and expiry. Confirm that every v1 call still answers or has already been repointed to v2. Finally, check that custom branding renders in the hosted login, and that metrics, log shipping and the backup job all run against the staging instance.
The rollback point for this upgrade is the verified backup taken before setup runs. Restore that backup into a separate test instance and confirm that logins and token issuance work on the older version, because a backup that has never been restored is only an assumption. Once setup has run, the schema may have changed, so going back may mean restoring the database, which discards anything written after the backup. That includes new users, sessions, grants and configuration edits. Before cutover, the team should write down the latest point it will accept a rollback to, the conditions that start a rollback, and the people who sign off on it, usually the platform owner and the service owner for the affected applications. Record the backup time and the setup run time in the change ticket so the decision uses those times.
Before you rely on any rollback path, confirm the rollback guidance Zitadel publishes for v4 and check it against the exact versions you are moving between. Reverting the runtime (the binary, container image or Helm release) is a different task from restoring the database, and the vendor guidance should state which steps remain safe once setup has changed the schema. Keep the v3 runtime artifacts available until the rollback window closes. Make sure the restore target runs a PostgreSQL major version that Zitadel supports, as listed in the Zitadel database documentation. Rehearse a full restore on staging and time it, so the cutover plan states how long a rollback would take. Record any rehearsal that has not been run as an open risk on the sign-off sheet.
How much a Zitadel v3 to v4 upgrade costs and what it needs from your team
What drives the cost of an outside Zitadel v3 to v4 upgrade?
Scope is the main driver, and four factors set it.
- Integrations: how many applications and scripts still call v1 endpoints, and how many owners must review each one.
- Branding: how much of the Login V2 look and flow must be rebuilt and tested for each brand or tenant.
- Environments: how many copies (development, staging and production) need the upgrade and a rehearsal.
- Testing: how many logins, token flows and relying parties must pass before cutover.
Each factor adds design, build and verification work, so more integrations or brands raise the total even when the platform change itself is the same. Ask the partner to price each factor on its own line so you can see which decisions move the number.
Is a Zitadel upgrade a one-time cost or does it recur?
The upgrade itself is one-time work, but support and future upgrades can recur if you buy a retainer. A one-time engagement covers scoping, the upgrade in the agreed environments, testing and handover. A retainer covers ongoing upgrades, support and continuous testing, which DeployOpen offers. A retainer suits teams that expect more Zitadel releases, because each release needs its own release notes review and test pass. Your own infrastructure costs, such as hosting, PostgreSQL and staging capacity, continue whichever way the work is bought. Ask for a quote that separates one-time and recurring lines so the ongoing cost is visible before you sign.
How long does a Zitadel v3 to v4 upgrade take?
No duration is given here because the timeline depends on the written scope, which is agreed before work starts. Most engagements are fixed-scope, so scope, deliverables and timelines are set in writing first. The main timing factors are the number of integrations to move off v1 endpoints, whether branding needs rework, how many environments must be upgraded in sequence, and how quickly your owners review and sign off test results. Your change windows also set the pace, and some steps wait on your environment, such as legacy-signed tokens expiring after a signing key change. Ask for a schedule with named milestones, the dependencies on your team and the change windows it assumes.
What does the upgrade need from our team?
Your team provides access, a staging copy, an owner for each integration and sign-off authority.
- Access: administrative access to the Zitadel deployment, its PostgreSQL database, the Kubernetes or Docker host and the integration repositories, granted through accounts your security team approves.
- Staging: a copy that mirrors production configuration closely enough to test actual logins and token flows.
- Owners: one named person per integration who can confirm expected behavior and run the tests.
- Sign-off: someone with authority to approve the production cutover and any rollback.
Without these, testing stalls and decisions wait on people who cannot yet approve them.
Can our own team upgrade Zitadel from v3 to v4 without a partner?
Yes, an internal team can do the upgrade with the release notes, a staging copy and a test plan. The Zitadel releases on GitHub list the changes that affect your deployment. The staging copy lets you rehearse the steps and the rollback, and the test plan defines which logins, token flows and integrations must pass before production. Check the known risk areas first, which include the signing key change and the move from v1 to v2 APIs. A partner adds capacity and an outside review, which matters most when the internal team has no earlier Zitadel upgrade experience. Confirm your team has an owner for the deployment, an owner for each integration and time for a full rehearsal before you decide.
What should we ask for in a Zitadel upgrade quote?
Ask for a written scope, a deliverables list, test evidence and a rollback plan before you compare prices. The scope should name each environment, each integration, the branding work and the testing included, along with what is excluded. Deliverables should list documents, configuration changes and handover material. Test evidence should show which logins, token flows and integrations were tested, in which environment and with what results. The rollback plan should describe how to restore the prior version and database state, who makes the decision and what the team needs to execute it. Also ask for the named owners, the dependencies on your team and whether any retainer is quoted separately.
Does DeployOpen issue certifications for a Zitadel upgrade?
No, DeployOpen does not issue audit reports, attestations or certifications. It prepares systems, controls and evidence for compliance assessments, and independent auditors and certification bodies make the assessment decisions. For an upgrade, that means documenting each change, keeping test results, recording approvals and retaining configuration records an auditor can review. Ask your auditor which evidence they expect before the upgrade starts, so the records are collected while the work happens and the approvals are on file at each step.
How DeployOpen scopes, delivers and supports the Zitadel upgrade
DeployOpen scopes the Zitadel v3 to v4 upgrade as a written, fixed-scope engagement that starts from your current deployment, configuration and integrations. We run setup ahead of the new runtime, move custom code from v1 endpoints to the v2 APIs, test Login V2 with your branding, and document the decisions, including Service Ping, for your team. Ongoing support and upgrades after handover are available as a retainer.
How we scope
- The written scope lists your Zitadel version, deployment method, PostgreSQL version and each integration that calls v1 endpoints.
- Scope covers Login V2 branding and whether custom login pages must be tested before the switch.
- Engagements are fixed-scope, with deliverables, timelines and the Service Ping decision agreed in writing before work starts.
How we build
- Run setup for the v4 runtime on a staging copy of PostgreSQL, then check token signing key behavior before cutover.
- Map each v1 call to its v2 equivalent, keeping v1 only where v2 lacks the use case.
- Test Login V2 with your custom branding in a staging environment, including password, passkey and federated sign-in paths.
How we hand over
- A runbook records the setup order, configuration changes, v2 call mapping and rollback steps used during the upgrade.
- Test evidence for each Login V2 branding path and each migrated integration is delivered with the runbook.
- A written record of the Service Ping decision, with the reasons and the owner who can revisit it later.
How we support
- After handover, a retainer can cover Zitadel upgrades on the v4 line, including patch releases.
- Retainer support can cover questions about the setup, the v2 integrations and the Login V2 configuration after cutover.
- Check the Zitadel releases page before each planned upgrade so patch changes are reviewed first.

