Zitadel v2 to v3 upgrade

A planning guide for teams moving self-hosted Zitadel from v2 to v3, covering the license change, the CockroachDB removal, beta APIs, backups, the upgrade sequence and rollback. It also explains what drives effort and what to confirm before you start.

On this page

How to plan a Zitadel v2 to v3 upgrade on infrastructure you control

A self-hosted Zitadel v2 instance that must move to v3 is mainly a review of three changes: the license change of the core to AGPL 3, the removal of CockroachDB support, and the move of Actions V2 and web key management to the v2 API as beta. Because CockroachDB is no longer supported, the database side of the plan must be sequenced around a PostgreSQL target, so the database decision comes before the binary or container change. Treat the upgrade as a project with its own owner, change window and rollback plan, since a database move, licensing review and API changes touch identity for every application that signs users in.

Start by confirming the exact commands and the supported path against the v3.0.0 release notes and the Zitadel documentation before any work is scheduled. The release notes are the authority for what was removed and what moved to beta, and the Zitadel self-hosting documentation governs how the database migration and setup steps run for your deployment method. Record the current v2 version, the database engine and version, every deployment method in use (binary, Docker Compose or Kubernetes), and every integration that calls Actions or key management endpoints. That inventory determines which parts of the plan carry most of the effort.

Decide early who signs off on the AGPL review, since the license applies to the core, Console and hosted login, while APIs, SDKs and Helm charts remain Apache 2.0. Ask your legal or procurement team to confirm how the change affects your internal use and any modifications you make. Then agree on the target PostgreSQL major version from the versions Zitadel supports, and confirm that choice with the Zitadel database documentation before building the target environment. Finally, plan a staged environment that mirrors production, so the migration, the v2 beta API adoption and your rollback can be tested before cutover.

What changes in Zitadel v3 and what each change asks of you

This table lists each Zitadel v3 change that affects a self-hosted upgrade, what it means for your deployment, and the action to take before you start. Read each row against your current database, client code and license review. The main takeaway is that the database and API changes need work before you replace binaries, while the license change needs a legal check.

ChangeImpactAction needed
Repository licenseCore, Console and hosted login moved from Apache 2.0 to AGPL 3. APIs, SDKs, proto definitions and Helm charts remain Apache 2.0.Have counsel confirm what AGPL 3 requires if you modify the core and offer it to users over a network.
Release dateZitadel v3.0.0 was released on 2 May 2025, and its release notes set the baseline for every change below.Record your current Zitadel version and read the v3.0.0 release notes before planning the upgrade steps.
CockroachDB supportRemoved as a breaking change in v3.0.0, so a CockroachDB backend is no longer supported on v3.Plan the move to PostgreSQL before or as part of the upgrade, and test the new database in staging first.
Actions V2 APIMoved to the v2 API as beta, so its interface may change before it is marked stable.Inventory Actions in use and decide whether to adopt the beta API now or keep current behavior until it stabilizes.
Web key management APIMoved to the v2 API as beta, which affects any code that manages signing keys.Review scripts and automation that call key endpoints, then test them against v3 in a staging environment.
PostgreSQL databaseSelf-hosted Zitadel uses PostgreSQL, with versions 14 through 18 supported.Confirm your server runs a supported version, and schedule any PostgreSQL major upgrade as its own tested change.
PostgreSQL 14 supportPostgreSQL 14 is listed as supported only until 12 November 2026, so a database on 14 may leave support during your rollout.Check whether that date has passed for your database, and plan a move to a later supported major version.

Why the AGPL license change belongs in the upgrade plan

With Zitadel v3.0, the core, Console and hosted login moved from Apache 2.0 to the GNU Affero General Public License 3.0. The change took effect with the v3.0 release on 31 March 2025, and it matters to the upgrade team because a license change is a property of the software version you deploy, not of your configuration. The APIs, SDKs, proto definitions, examples, documentation, Helm charts and Terraform configurations remain under Apache 2.0, so your integration code, automation and deployment tooling are not affected by the AGPL in the same way. Read the Zitadel announcement about the change before you scope the work, using the Zitadel blog post on the move from Apache to AGPL, and check the license file shipped with each release you test.

The practical question is component by component. List what you run from the core, Console and hosted login, then mark each item as unmodified, modified or extended by separate code. Unmodified use of the AGPL components carries a different position than modified use. The sensitive case is a modified copy of the core, Console or hosted login that your users interact with over a network, because the AGPL attaches obligations to making the corresponding source available to those users. Your own branding through documented settings, your separate applications and your Apache 2.0 integration code are distinct questions, and you should confirm with the Zitadel documentation for your release where the boundary sits for your setup.

Take this list to your legal or open-source licensing owner before the upgrade is scheduled, and ask them to record the decision in writing. Ask them to confirm which components are in scope, what source-availability position applies to any patched build your team runs, and whether your customers or partners need any notice. This page does not give legal advice, and the conclusions depend on your facts, your contracts and your jurisdiction.

How the CockroachDB removal changes the path to v3

If the instance already runs on PostgreSQL within versions 14 through 18, the v3 change is mostly the application upgrade itself. The database still needs checks, because the upgrade should not start on an unsupported or misconfigured server. According to the PostgreSQL versioning policy, PostgreSQL 14 reaches the end of its support window on 12 November 2026, so teams that keep that version through the v3 window should plan for that date.

  • Version check: Confirm the server reports a major version from 14 to 18 and that the database and roles match what the instance expects.
  • Minor release currency: Apply the latest minor release for that major version first. Minor releases do not change the storage format, so the work is replacing executables and restarting.
  • Backups: Take a backup, test that it restores, and record the database state before the binary or chart change so rollback is possible.
  • Settings review: Check connection limits, authentication method and TLS settings against the self-hosting documentation for your target release.
  • Major upgrade decision: If you plan to move to a later PostgreSQL major version soon, decide before the v3 change whether that work belongs in the same window.

Before cutover, verify the database version, the backup restore result and the connection settings in staging, and ask the vendor or partner to confirm that the v3 release supports your exact PostgreSQL major version.

Decision path from the current v2 instance to a running v3 instance

The path starts at a running v2 instance and checks the database first. A CockroachDB installation must move to PostgreSQL before the v3 upgrade, because v3.0.0 removed CockroachDB support as a breaking change. A PostgreSQL installation goes straight to backups. Every path then passes through a non-production staging run before production. The last hand-off is verification of login flows and integrations. If those checks fail, the path leads to rollback from the backups taken earlier.

Decision path from v2 to v3, branching on database type and verification results.

What to prepare before you touch the production instance

The six items below are the work that has to be finished before anyone runs a v3 binary against the production database. Each one protects a different way the upgrade can fail, and together they decide whether a rollback is a short procedure or an emergency.

Verified PostgreSQL backup and restore

Take a fresh backup of the PostgreSQL database that Zitadel uses, then restore it into a separate server and confirm that the restored instance logs in and serves tokens. A backup that has never been restored is an assumption, not a rollback plan. Record the time the backup took, because that figure sets the minimum window you need for the cutover. Keep the backup somewhere the upgrade process cannot overwrite.

Zitadel database docs

Inventory of integrations and beta API use

List every relying application, service account, SCIM client and identity provider connection that depends on this instance. Search your code and automation for calls to the Actions V2 and web key management APIs, which moved to the v2 API as beta in v3.0.0, and mark each call as a risk to retest. Owners of each entry should confirm that their integration is still in use.

v3.0.0 release notes

Custom configuration, masterkey and proxy settings

Record every custom setting in your deployment, including environment variables, Helm values or Compose files, and the TLS and reverse proxy configuration in front of Zitadel. Confirm where the masterkey is stored and who can read it, and make sure a copy is available to the team performing the upgrade. A missing or changed masterkey can leave encrypted data unreadable, so treat this item as a gate, not a note.

Staging that matches production

Build a staging environment with the same PostgreSQL major version, deployment method, topology and a copy of production data at a comparable volume. Run the full upgrade there first and time each step. Staging with a small sample dataset will not reveal slow migrations or tenant-specific data problems, so ask the team to confirm the size of the data it holds before relying on its results.

Named approvers and rollback owner

Decide in writing who approves the cutover window, who runs each step, and who makes the call to roll back if a check fails. Agree on the criteria for rollback before the window opens, such as failed logins, broken token issuance or a failed database restore check. Make sure the people named are reachable during the window and that the affected business owners know when sign-in may be interrupted.

Exact v3 release notes check

Read the release notes for the specific v3 version you plan to install, not only the v3.0.0 notes, and list every breaking change that applies to your setup. Check the PostgreSQL versions supported by that release against the version you run, and confirm the license terms that apply to your use of the core. Save the release notes with the change record so that reviewers can see what was checked.

Zitadel releases on GitHub

The order of steps for the v2 to v3 upgrade

This sequence moves a self-hosted Zitadel from v2 to v3 with a rehearsal in staging, verified logins and provisioning, and a production cutover that has a rollback point at every stage.

  1. Confirm the PostgreSQL version and database route

    Confirm that your Zitadel v2 installation already runs on PostgreSQL, or that a planned route off CockroachDB exists, because v3.0.0 removed CockroachDB support as a breaking change. Check your current PostgreSQL major version against the supported range in the Zitadel database documentation and the PostgreSQL versioning policy, which lists version 14 as supported until November 12, 2026. The platform or database owner signs off on the version and the target. Done means a written record of the PostgreSQL version, the database owner and the migration route, with any CockroachDB move scheduled separately. Rollback point: no change has been made yet, so stopping here leaves the installation untouched.

  2. Take and test backups before any change

    Take a full PostgreSQL backup of the Zitadel database, along with the configuration, masterkey handling and TLS material, and store it outside the upgrade path. Restore the backup into a separate test database and start a Zitadel instance against it to prove the backup is usable. The database owner runs the backup and the platform team runs the restore test. Done means a restored copy that starts and serves a test login. Rollback point: the verified backup is the rollback for every later step, so do not proceed until the restore test passes.

  3. Freeze configuration changes

    Announce a change freeze covering Zitadel configuration, identity provider settings, projects, roles, grants and custom Actions, so the staging rehearsal and the production run test the same state. Record a baseline export of the current configuration as your reference. The identity operations lead owns the freeze and approves any exception in writing. Done means a dated baseline and a freeze notice that the teams acknowledge. Rollback point: the baseline lets you compare configuration after a failed attempt and identify drift.

  4. Upgrade staging and run setup before the new runtime

    Deploy the v3.0.0 release to staging using the same method as production, whether binaries, Docker Compose or Kubernetes, and run the setup step before starting the new runtime, as the self-hosting documentation describes. The exact commands and the setup procedure come from the v3.0.0 release notes and the Zitadel self-hosting documentation, and you must confirm them for your deployment method. Done means the setup completes without errors and the new runtime starts against the staging database. Rollback point: restore the staging database from the verified backup and redeploy v2 if setup fails.

  5. Verify logins, provisioning and tenant structures

    Test OIDC and SAML logins for each application and federated identity provider, confirm SCIM v2 provisioning creates, updates and deactivates a test user, and check that organizations, projects and project grants resolve as they did before the upgrade. Run the tests with named test accounts for each tenant and record the results. Done means a signed test matrix with every login path, provisioning action and grant passing in staging. Rollback point: any failing path blocks the production window, and you return staging to the v2 backup while the defect is fixed.

  6. Review Actions V2 and web key API usage

    Inventory any Actions V2 targets or executions and any calls to the web key management APIs, since v3.0.0 moved both to the v2 API as beta. Decide whether each dependency is acceptable for production and test each one in staging, including error handling when a beta endpoint changes. The application owners and the identity team complete the review. Done means a list of every beta dependency with an accepted or rejected decision and a test result. Rollback point: a rejected dependency is disabled or removed from staging before the production window.

  7. Repeat the upgrade in production during an agreed window

    Schedule the production window with the application owners, take a fresh backup immediately before the change, and repeat the exact staging steps, including setup before the new runtime. Keep the v2 deployment available so you can roll back if the production checks fail. The change owner runs the window and the on-call engineer watches the login checks. Done means the production login, provisioning and grant tests pass from the matrix used in staging. Rollback point: restore the production database from the pre-change backup and redeploy v2 if any critical check fails.

  8. Confirm monitoring and backups after cutover

    After cutover, confirm that health checks, logs and metrics report the v3 runtime, that alerts route to the on-call team, and that a scheduled backup of the upgraded database completes and restores. Record the first backup as the new baseline. The operations owner signs off and closes the change record. Done means a working alert test, a completed post-upgrade backup, and a closed change record with the baseline stored. Rollback point: until this check passes, keep the pre-change backup and the v2 deployment files available.

How to test the upgrade and decide when to roll back

Agree the rollback trigger and the time limit before the upgrade window opens, because a team that decides under pressure tends to extend the window instead of reverting. Write the trigger as a concrete condition, such as a failed sign-in path for any identity provider, a relying party rejecting tokens, or an admin console that cannot be reached, and name the person who has authority to call the rollback. Set the time limit in advance so that the decision to revert does not depend on how the team feels at hour six.

Test the upgrade against a checklist that covers every path a real user or system takes through Zitadel. Sign in through each identity provider you federate with, including each customer organization's provider, since each organization can use a different one. Test passkey login and the password fallback separately. Confirm that relying parties receive tokens and that their resource servers validate them. Check logout from a relying party and from the console. Trigger SCIM create, update and deactivate events and confirm they reach Zitadel. Sign in to the admin console with each administrator role, and confirm that audit and log output is written for the test actions. Keep the results in a dated record so that a later failure can be traced to a specific step.

Define rollback in concrete terms before you need it. Rollback has three parts: restore the database from the backup you took before the upgrade, redeploy the previous Zitadel binary or Helm chart version, and confirm that the restored instance matches the pre-upgrade configuration. Identify the point after which reverting the binary alone is no longer safe, because the setup job may already have changed the database schema. Past that point, rollback means a database restore, and every change made in the meantime is lost. Confirm with your database team how long a restore takes in your environment and whether the backup includes all data needed by Zitadel. Also confirm with the vendor which previous version is supported as a fallback target for your installation.

What makes the v2 to v3 upgrade take longer

This table lists the factors that lengthen or shorten a self-hosted Zitadel v2 to v3 upgrade, with the direction of each effect and what to check in your environment. Read each row as a question to answer before estimating the work, since the largest drivers are usually the database starting point and the number of instances, organizations and relying applications.

DriverWhy it mattersWhat to check
Database starting pointZitadel v3.0.0 removed CockroachDB support as a breaking change, so a CockroachDB installation needs a migration to PostgreSQL as part of the upgrade. A PostgreSQL 14 to 18 installation that is already in place adds little database work.Confirm the current database engine and version. Check whether your PostgreSQL version is within the supported range and plan any PostgreSQL upgrade as a separate step.
Number of instances and organizationsEach instance is a separate virtual tenant with its own data, so every instance must be upgraded, verified and tested. More organizations also mean more users, grants and identity provider settings to check after the change.Count instances, organizations and projects in each environment. Record which instances are production and which are used for testing or onboarding.
Relying applications and token validation logicApplications that validate tokens, pin keys or depend on specific claims or endpoints need retesting. Applications with simple, library-based validation usually need less work than custom validation code.Inventory every relying application, its client type and how it validates tokens. Note any hardcoded issuer, key or endpoint values.
Use of Actions V2 or web key APIsActions V2 and the web key management APIs moved to the v2 API as beta in v3.0.0. Workflows built on these beta features need review against the release notes and may change in later versions.Identify any Actions or web key API calls already in use, and whether they depend on beta behavior. Confirm the feature status in the v3.0.0 release notes.
Custom Login UI or brandingCustom login pages, themes and branding depend on the login component and its configuration. Changes to the login setup need visual and functional testing across each customized flow.List custom login templates, themes, custom domains and any code that renders or redirects the login pages.
SCIM and identity provider connectionsProvisioning through SCIM and federation with external identity providers depend on endpoints, credentials and attribute mappings. Each connection needs a test login and a test provisioning cycle after the upgrade.Count the active SCIM clients and identity provider connections per organization. Check which ones use long-lived credentials or custom attribute mappings.
Data volume in the databaseLarger databases take longer to back up, migrate and restore, and they increase the time needed for verification. Backup and restore rehearsals scale with data size.Measure the current database size and growth rate. Confirm backup and restore timings on a copy of production data before scheduling the upgrade.
Deployment methodKubernetes with the official Helm chart, Docker Compose and binaries each have different rollout, configuration and rollback steps. Multi-replica deployments need coordinated restarts.Confirm how Zitadel is deployed and who owns each layer, including ingress, TLS, secrets and the masterkey handling.
Number of environments to stageEach environment, such as development, test, staging and production, needs its own upgrade run and verification. Changes found in an earlier environment often repeat in later ones.List every environment, its data source and its owner. Decide the order of promotion and who signs off each stage.

Questions teams ask before they upgrade Zitadel from v2 to v3

How much does a Zitadel v2 to v3 upgrade cost?

The cost is set by the written scope, not by a published rate. DeployOpen does not publish a price list, so a quote follows from the scope agreed in writing before work starts. The scope usually covers the number of instances and organizations, the size of the PostgreSQL target, how many integrations and custom Actions need review, the test environments available, and whether backup and rollback checks are included. Ask the quote to show what is one-time (planning, the upgrade, verification) and what recurs (ongoing support or a retainer, if you choose one). Zitadel's published pricing covers Zitadel Cloud and Enterprise plans, not the cost of a self-hosted upgrade, so treat it as a separate line item.

How long does the upgrade take, and what sets the window?

No duration is fixed in advance, because the window depends on your environment. The main drivers are the number of instances and the size of the database, how many relying parties and Actions depend on the v2 APIs, whether you run a CockroachDB to PostgreSQL move in the same window, and how many test cycles your change process requires. Maintenance windows also depend on how your PostgreSQL cluster is upgraded and how long your change approval takes. Ask for a timeline in the written scope that lists each phase and the client actions it depends on.

What does the upgrade need from our team?

The work needs named people, access and decisions, and these should be settled before the plan starts. Expect to provide administrator access to the Zitadel hosts, the database, and the deployment tooling; an owner for each relying application; test accounts for each login path, including passkey and federated logins; and a change approval path with a named approver for production. Your team also confirms which custom Actions, scripts and integrations call the API, since those are where breaking changes are most likely to surface. Missing owners or test accounts are common causes of delay, so ask the quote to list them explicitly.

Can our internal team do the v2 to v3 upgrade alone?

Yes, a capable internal team can do it, provided it has the right skills and time. The work needs working knowledge of Zitadel's self-hosting options (binaries, Docker Compose or Kubernetes), PostgreSQL administration (backups, restores, version compatibility), TLS and reverse proxy configuration, and enough API familiarity to find affected integrations. Zitadel's self-hosting documentation and the v3.0.0 release notes are the primary references. Weigh your team's available hours against the risk of a production identity outage, since sign-in for every customer or workforce user depends on this system. A partner can cover the parts your team lacks or review the plan before cutover.

Does the AGPL license change need a legal review, and who owns it?

The license change is your organization's decision to make, and legal review is usually the right step before you rely on the new license. Zitadel moved its core, Console and hosted login from Apache 2.0 to the GNU Affero General Public License 3.0 with v3.0, while APIs, SDKs, proto definitions, Helm charts and Terraform configurations stay Apache 2.0. The practical question is whether you modify the core and make it available to users over a network, since the AGPL has obligations in that case. Your legal or licensing function owns the interpretation, and DeployOpen does not provide legal advice. Ask counsel to review your actual use and any modifications before the upgrade.

What happens if the CockroachDB to PostgreSQL migration is not finished?

v3.0.0 removed CockroachDB support as a breaking change, so an instance still on CockroachDB cannot simply move to the v3 runtime and expect the same database backend. Plan the database move as a prerequisite, or confirm with the vendor how your version path handles it before you change the runtime. In practice, the upgrade decision depends on which database you are on, so the written scope should state whether the migration is in or out of the engagement. Keep the v2 environment running and reachable until the database path is settled, and confirm the exact sequence in the Zitadel release notes before scheduling the cutover.

Can we roll a v3 instance back to v2 if something fails?

Rollback depends on what changed in the database and the deployment, so confirm it before the cutover rather than assuming it. Take a verified PostgreSQL backup before the upgrade and test restoring it in a non-production environment. Keep the v2 deployment artifacts, configuration and secrets available so you can redeploy them. Be aware that once a v3 instance has run and written data, rolling back the binary may not be enough, because the database state may not match the older version. Ask for the rollback plan in the written scope, including the tested restore steps, the decision point for rollback, and who approves it.

How DeployOpen scopes, delivers and supports the Zitadel upgrade

DeployOpen plans, implements, tests and documents self-hosted Zitadel upgrades inside your own infrastructure, starting with a written scope that covers the v2 to v3 steps, the PostgreSQL target and the checks your team needs before cutover. The work is delivered as a fixed-scope engagement, with ongoing support available as a retainer once the upgrade is complete.

How we scope

  • Inventory your current v2 version, deployment method, database and any CockroachDB dependency before agreeing the work.
  • Confirm which Actions V2 and web key API usage your integrations depend on, and list the owners who must test changes.
  • Agree the written scope, deliverables and timeline with your team before any work starts, with no price implied by this page.

How we build

  • Build a staging copy of your Zitadel environment and rehearse the upgrade steps in the order your architecture requires.
  • Plan and test the PostgreSQL target and data movement, checking that the database version is on the supported list before cutover.
  • Run functional tests for login, federated identity providers, service integrations and the license-related changes your team has agreed to review.

How we hand over

  • Document the final runbook, rollback points, configuration changes and verification steps in a form your operations team can repeat.
  • Walk your engineers through the production cutover, recorded checks and open items, and confirm acceptance against the written scope.
  • Provide evidence of the upgrade and change records that your compliance and security teams can review with their own auditors.

How we support

  • Offer ongoing support, upgrades and continuous testing for your Zitadel environment as a retainer after handover.
  • Plan follow-on work such as the later v3 to v4 upgrade as a separate written scope, so each release gets its own checks.
  • Confirm with your team which support channel, response expectations and escalation path apply, as these are set in the retainer agreement.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.