Migrating Zitadel Actions V1 to Actions V2

A planned rework of JavaScript Actions V1 into Actions V2 targets and executions, tested before you switch login versions on your self-hosted Zitadel.

On this page

Why the Zitadel Actions V2 migration gates your move to Login V2

If your self-hosted Zitadel runs JavaScript Actions V1 customizations, you cannot simply switch to Login V2 and keep them. Zitadel states that moving to Login V2 typically requires reworking Actions V1 for Actions V2, so the Actions migration is a prerequisite for the login change, not an optional cleanup. The team needs to inventory every Actions V1 flow and trigger before planning the login cutover, because each one has to land somewhere specific in the V2 model before the login version changes.

The reason this takes planning is that not every Login V1 customization maps one-to-one onto Actions V2. A V1 flow that ran code at a login step may need to become a request, response, function or event condition in V2, and some behavior may need a different structure or a different hosting arrangement for the endpoints that V2 calls. Your team should list each customization, record what it reads and changes (claims, user metadata, redirects, denials), and mark which ones have a direct V2 equivalent and which need redesign. Items without a clear mapping are the ones most likely to delay the move, so they should be scoped first.

The supported path is the v3 to v4 upgrade documentation in Zitadel's self-hosting guides. Before you change any Actions configuration or login setting, read that page and confirm the exact steps, prerequisites and ordering against the version you run, since the sequence and any version-specific requirements are defined there rather than in this page. Treat the documented steps as the source of truth for your runbook, and record the version you validated against so the test results remain meaningful.

What changes between Actions V1 and Actions V2

This table lists the change areas a team must review before moving from Actions V1 to Actions V2. Read each row against your current flows and triggers, then note the action needed. The main takeaway is that Login V2 depends on this rework, and not every Login V1 customization maps one-to-one.

Change areaImpact on existing customizationsAction for the team
Action definition and attachmentV1 actions are attached to flows and triggers. V2 targets and executions are configured separately, so each V1 attachment needs a new definition.Inventory every V1 action and its flow attachment. Recreate each as a V2 target and execution, then record the mapping.
Trigger mapping to conditionsV1 triggers do not translate directly into V2 request, response, function and event conditions. Some triggers will split or merge.For each trigger, choose the V2 condition type. Flag any trigger with no clear equivalent for redesign.
Endpoint hostingV2 targets call endpoints you host. Existing V1 code may assume a runtime or hosting model that V2 does not provide.Confirm where each endpoint runs, its availability, TLS, and how it authenticates calls from Zitadel. Test timeouts and error handling.
Login flow callsLogin V1 customizations may call actions in ways that Login V2 does not reproduce. Behavior can change at the login step.Map each login step that calls an action to its V2 equivalent. Note any step that needs a different design before switching.
Login V2 dependencyZitadel says moving to Login V2 typically requires reworking Actions V1 for Actions V2, and not every Login V1 customization maps one-to-one.Treat the Actions rework as a prerequisite for the Login V2 switch. Do not plan the switch until every flow has a tested equivalent.
Testing and cutoverFlows that worked in V1 can fail silently in V2 if conditions or responses differ.Test each mapped flow in a non-production instance, including failure paths, before enabling Login V2 instance-wide.

How Actions V1 flows map to Actions V2 targets and executions

The diagram starts with a V1 flow and its trigger, which the team reviews and sorts into request, response, function and event conditions. Each mapping decision then becomes a V2 target, hosted by the team on its own endpoint, and an execution that Zitadel calls during login. The login flow is the check: a rule that does not map one-to-one needs a redesign, not a copy, and the endpoint hosting and the login test run both stay with the team before the login version is switched.

Mapping V1 flows and triggers to V2 targets and executions, with the team hosting the endpoints.

Which Login V1 customizations map one-to-one and which do not

Not every Login V1 customization has an Actions V2 equivalent that works the same way. Zitadel's own upgrade documentation says that moving to Login V2 typically requires reworking Actions V1 for Actions V2, and that not every Login V1 customization maps one-to-one. The practical question is therefore not whether a customization can be copied, but whether its behavior depends on a V1 trigger that has a direct V2 condition. Plain claims enrichment, such as adding a value to the token from data the instance already holds, usually translates with little change. Logic that runs at a specific point in a V1 flow, or that relies on a side effect of that point, needs a design decision.

Build an inventory before writing any code. For each customization, record the V1 flow or trigger it attaches to, the input it reads, the change it makes, and the outcome a user or relying party should see afterward. Then mark each row as either a direct copy, where the same outcome is reachable through a V2 request, response, function or event condition, or a redesign, where the outcome must be rebuilt or dropped. Redesign candidates include anything that decides login success or failure, anything that reads state set by another step, and anything that depends on a particular ordering of events. Ask Zitadel and your own tests to confirm the V2 condition for each row rather than assuming a match from the name alone.

Treat each redesign row as an owned item with a named decision, not a stalled ticket. Typical decisions are whether the outcome moves to a different V2 trigger, moves into the application, moves into a separate service the login depends on, or is retired because a built-in Zitadel setting now covers it. Record the decision and the reason next to the row, because auditors and the teams that inherit the instance will ask why a behavior changed. Expect the redesign list to shape the test plan in the next stage, since every row marked for redesign needs an explicit test that proves the expected outcome before the login version is switched.

What to inventory and back up before reworking Actions

Reworking Actions V1 into Actions V2 changes how login outcomes are produced, so the team needs a complete picture of what exists today and a recovery point before editing anything. The cards below cover the inventory, the backups, the test environment, the dependent applications, the approvers and the hosting that the migrated endpoints will run on.

Actions V1 inventory

List every Actions V1 flow and trigger in use, including the instance and organization scope where each one runs, the login steps it touches and the JavaScript it contains. For each script, record what it reads from the user, the context and the metadata, what it changes, and whether it calls external services. Note any script that is disabled but still present, because it may return during a rollout. Map each item to the request, response, function or event condition it would need in Actions V2. Treat this list as the baseline for every later test.

Upgrade from v3 to v4

Database and configuration backup

Take a verified backup of the PostgreSQL database and the Zitadel configuration files, environment values and secrets references before any Actions change. Store the backup outside the cluster or host that runs Zitadel, and confirm you can restore it into a separate environment. Record the Zitadel version and Helm chart version in use, so a restore can target the same release. Ask your database team to confirm the backup method and retention rules that apply to identity data in your organization.

Non-production instance that mirrors login

Prepare a staging instance with the same Zitadel version, login configuration, identity providers and sample users as production, so you can observe how login outcomes change. Use test accounts that cover the paths your users take, such as first login, password reset, passkey enrollment, federated sign-in and users who belong to several organizations. Without a faithful copy, Actions V2 behavior will only be checked against assumptions. Confirm with your platform team how quickly staging can be refreshed from production data.

Dependent applications and relying parties

Identify every application, API and service that relies on a token, claim or login result that an Action sets or influences. Include custom claims, role or organization data added during login, and any step that blocks or redirects a user. For each relying party, note its owner, the claims it reads and whether it validates signing keys or token content. These are the systems that break first when an Action returns a different result, so they need test cases before cutover.

Approvers for behavior changes

Name the people who must approve a change in login behavior before it reaches production, usually from identity, application, security and compliance teams. Agree in advance which differences are acceptable, such as a new claim name or a different redirect path, and which require a decision. Record who signs off on the Actions V2 mapping and on the test results. Clear ownership avoids a situation where an engineer changes a login step that a security owner never reviewed.

Endpoint hosting environment

Actions V2 targets are endpoints you host, so decide where they run, who operates them and how they are reached from Zitadel. Confirm the network path, TLS certificates, timeouts and the failure behavior you want if an endpoint is unavailable, since a failed call can block sign-in. Check the runtime version, secrets handling, logging and the monitoring you will use for these endpoints. Ask your platform team to confirm that the environment meets the same standards as the rest of your identity services.

The order of work from inventory to the login version switch

This sequence moves a Zitadel instance from Actions V1 flows and triggers to Actions V2 targets and executions, proven on a test instance before Login V2 is enabled instance-wide. Each step closes with a check and a rollback point so the switch can be reversed.

  1. Inventory every V1 action and trigger

    List each Actions V1 script, the flow and trigger it runs under (for example, login, registration, token creation or user changes), the external calls it makes, the claims or metadata it reads and writes, and the Login V1 customizations it supports. Your team owns this list, and a partner usually leads it with the Zitadel administrators in the room. Done means every script has one row with its owner, its purpose and whether the business still needs it. Keep an export of the current V1 configuration and scripts as your first rollback point.

  2. Map each trigger to a V2 target and execution

    For each row, decide which V2 target type and execution condition replaces it: request, response, function or event. Zitadel documents that Login V2 usually requires reworking Actions V1 into Actions V2, and not every Login V1 customization maps one-to-one, so some rows will need a redesign rather than a copy. Record which behaviors have no equivalent and need an alternative such as a backend change or a dropped feature. Done means a signed-off mapping sheet with every row marked as mapped, redesigned or retired.

  3. Build and host the target endpoints

    Write the endpoints that V2 targets call, with request validation, timeouts, error responses and logging that does not capture secrets or personal data. Host them in a location your security team has reviewed, with TLS, access restrictions and a signing or shared-secret check on incoming calls where the target type supports it. Confirm the exact configuration keys and payload formats against the current Zitadel Actions V2 documentation for your release. Done means each endpoint passes unit tests and answers a sample payload within the timeouts you set.

  4. Deploy the targets and executions to a test instance

    Create the V2 targets and executions on a test instance that mirrors production settings, including the organizations, identity providers and roles your users depend on. Do not copy production secrets into the test environment. Keep the V1 scripts active in production while this runs. Done means the configuration is reproducible from your change records, and a fresh deploy of the same configuration produces the same behavior. Record the version and configuration hash as a second rollback point.

  5. Run login test cases against the new flows

    Write test cases for each login path that V1 customized: password and passkey login, federated login through each identity provider, registration, MFA prompts, token claims for each application, error and lockout pages, and logout. Run them against the test instance with Login V2 enabled there, and compare claims and redirects with the V1 baseline. Done means every case has a recorded expected result, every failure has a fix or an accepted exception with an owner, and the suite can be rerun after each change.

  6. Rehearse rollback on the test instance

    Before any production change, practice reverting: switch the test instance back to Login V1, restore the V1 scripts from your export, and confirm that logins and token claims return to the baseline. Time the steps and note any manual actions. Done means the rollback runs from your written procedure with no undocumented steps, and the team that will perform it has seen it succeed once.

  7. Record rollback points and approve the switch

    Capture a dated export of the production configuration, the V1 scripts, the endpoint versions, the test results and the rollback procedure. Get written approval from the owners of the login experience, security and the affected applications. Confirm who can execute the rollback and how users and support staff will be told if it happens. Done means the approval, the rollback package and the communication plan are all stored where the on-call team can reach them.

  8. Enable Login V2 instance-wide and verify

    Switch the production instance to Login V2 and watch login success rates, error logs, endpoint latency and support tickets against the baseline. Keep the V1 scripts and the rollback package available until the monitored period has passed without regressions. Remove the V1 scripts only after that review is complete. Done means production logins match the test baseline, the rollback package has been retired on a documented date, and the mapping sheet reflects what is now running.

Where the new Actions V2 endpoints run, by environment

Teams that already run Kubernetes usually host the Actions V2 endpoints as services in the same cluster or a neighboring one, which keeps deployment, rollback and certificate handling inside tooling they already operate. The key question is whether the Zitadel pods can reach the endpoint service over the network path the actions are configured to use, and whether that path is the one your ingress and network policies allow.

  • Service reachability: Confirm that the namespace hosting Zitadel can reach the endpoint service by its cluster-internal name, and check any network policies that restrict east-west traffic.
  • TLS termination: Decide whether certificates are issued by cluster tooling or an internal authority, and confirm that Zitadel trusts the issuing chain.
  • Secrets handling: Store signing or shared secrets in the cluster secret store or an external vault synced into it, not in ConfigMaps or container images.
  • Operating responsibility: Name the platform team that owns the endpoint deployment, its rollout and its on-call path, separate from the team that owns the Zitadel release.
  • Upgrade ordering: Confirm that endpoint versions are deployed before the Login V2 switch, so a rollback of either component does not strand a login flow.

Before the switch, check reachability from the Zitadel pods themselves, not from a workstation, using the same service account and network policy they run under.

What makes the Actions rework take longer

This table lists the factors that most change how long the Actions V1 to V2 rework takes and what it costs. Read each row as a driver: the direction shows whether it pushes effort up or down, and the last column lists what to ask a partner to confirm in writing before agreeing a scope.

DriverEffect on effort or durationWhat to ask for in a quote
Number of V1 Actions in useMore Actions means more flows and triggers to map, more endpoints to host and more behavior to re-verify. Effort rises roughly with the count of distinct Actions, not the count of lines of code.An inventory listing each Action, the flow or trigger it runs on, and the owning team, with the count stated in the scope.
Customizations with no one-to-one V2 equivalentZitadel notes that not every Login V1 customization maps one-to-one to Actions V2. Each unmapped behavior needs a design decision, so this is usually the largest source of added time.A mapping table showing which behaviors map directly, which need redesign and which will be dropped, with the decision owner named for each.
Applications whose login behavior depends on ActionsEvery relying application that receives claims, redirects or token changes from an Action needs a test case. More dependent applications means more regression testing and more coordination with their owners.A list of applications that depend on Action output, the claims each one reads and who signs off for each application.
Existing automated test coverageWithout automated login tests, the team must write test cases and run them by hand before each switch. Low coverage typically adds build and verification work at the start of the project.Whether the partner will write automated login tests as part of the scope, and what the test deliverable includes.
Number of environmentsEach environment (development, staging, production, and any tenant-specific instances) needs its own endpoint hosting, configuration and test pass. Effort grows with each environment, although repeated deployments are faster once the first is automated.The environments in scope, whether deployment is automated for each one, and whether production cutover is included or charged separately.
Hosting of Action endpointsThe endpoints that Actions V2 calls must be deployed, secured and monitored in infrastructure you control. Existing hosting that already meets your standards reduces work, while new hosting, network rules or certificates add it.Who provisions and operates the endpoints, what runtime and TLS setup is assumed, and how the endpoints are monitored after go-live.
Availability of approvers for behavior changesEach changed login behavior needs a named person to approve it. Approvers who are busy or spread across teams delay test sign-off and can push back the switch date even when the technical work is finished.The approval roles needed, the expected review turnaround set by your side, and a written sign-off step before cutover.
Change freeze and cutover windowIf production changes are restricted to fixed windows, the rework may wait for those windows, and rollback rehearsals must fit inside them. Tight windows add scheduling work and can extend the calendar duration.The change calendar your organization uses, the rollback steps to be tested and whether cutover support is included in the fixed scope.

How to test the Actions V2 migration before switching and when to roll back

Build the test set before anyone changes the login version. The set should cover every login path your users actually take, crossed with every Action you customized on Login V1. For each pair, record the expected outcome from the V1 baseline: whether the user reaches the application, which claims land in the ID token and access token, which roles and grants are applied, and whether the login completes or fails. Include the paths that most often break in migrations: password login, passkey login with password fallback, each federated identity provider that triggers an Action, and any flow that depends on a pre- or post-authentication hook. Because Zitadel notes that not every Login V1 customization maps one-to-one, expect some cases to have no V2 equivalent at all. Mark those cases as blocking until someone decides how they will be handled.

Test the failure behavior as deliberately as the success path. Stop or block each Actions V2 endpoint in the staging environment and confirm what the login does: whether it fails closed with a clear error, whether it times out within an acceptable window, and whether any user can sign in without the Action having run. A security control that silently skips when its endpoint is down is a finding, not a minor defect. Then compare token and claim outcomes case by case against the V1 baseline using the same test accounts, and treat any added, removed or altered claim as a difference to explain before go-live. Keep the results in a written record that names the instance, the Zitadel version, the endpoint versions and the tester.

Set the rollback rule in advance. Keep the instance on Login V1 and its V1 Actions until the full test set passes and the owners of each relying party have signed off on the token differences. If a production login fails in a way the test set did not cover, or an endpoint behaves differently under real load, revert the login version to V1 rather than patching the Action live, because a live patch changes the behavior that was just tested. Confirm before cutover that the break-glass account and the V1 configuration can still be reached, and that a rollback is a tested step your operators have rehearsed, not an assumption. Review each rollback afterward to decide whether the fix belongs in the Action code, the test set, or the endpoint hosting.

What a Zitadel Actions V2 migration costs and what it needs from your team

What drives the cost of migrating Zitadel Actions V1 to Actions V2?

The cost is driven mainly by how many Actions you run, how much logic each one contains, and how many Login V1 customizations have no one-to-one counterpart in Actions V2. Zitadel notes that moving to Login V2 typically requires reworking Actions V1 for Actions V2, and that not every Login V1 customization maps one-to-one. Each Action needs to be inventoried, mapped to the right target and execution condition (request, response, function or event), rewritten, hosted as an endpoint, and tested. Cost rises with the number of external calls, custom claims, and any logic that has to be redesigned rather than translated. Ask a provider to price the inventory and mapping as a separate phase so you can see the redesign work before committing to the full build.

How long does an Actions V1 to V2 migration usually take?

No duration is fixed by the researched material, so the honest answer depends on the count and complexity of your Actions. A short list of simple, stateless Actions is a small task. A larger set with external lookups, conditional claims or customizations that must be redesigned takes longer, mostly because of testing and sign-off across login flows. Ask for the timeline to be split into inventory, mapping, build, hosting, test and cutover phases, with the number of Actions and flows counted in the scope document. Confirm which login flows each Action touches, because those flows are what must be tested before you switch login versions.

What does the migration need from our internal team?

The work needs three groups of people who can make decisions quickly. Login owners know which login flows, branding and customizations matter and can approve the target behavior. Application owners confirm which relying parties receive which claims and can run test logins against staging. Platform or infrastructure staff provide environment access, such as a place to host the new Action endpoints, network paths to any systems they call, and secrets handling. Plan for named individuals in each role, with time reserved for reviews. Without these owners, mapping decisions stall and the testing phase grows.

Can our own team migrate Actions V1 to V2 without outside help?

A capable in-house team can do this work, particularly if it already maintains Zitadel and its JavaScript Actions. The questions to answer honestly are whether someone has time to inventory every Action and flow, whether the team has run staging tests of login flows before, and whether the endpoints can be hosted and monitored in your environment. Teams that do it alone often underestimate the redesign of Login V1 customizations with no direct V2 equivalent and the testing before a login version switch. A useful test is to run the inventory yourself first. If the list is short and the mappings are clear, in-house work is reasonable. If many Actions depend on each other or on external systems, a fixed-scope partner engagement may be the faster route.

What should we ask for in a fixed-scope quote for this migration?

A fixed-scope quote should be built from a written list of what is in and out of scope. Ask for the inventory of every Login V1 customization and Actions V1 Action, the proposed V2 target and execution condition for each, and the hosting design for each endpoint. Also ask for the test plan covering each login flow, the environments used, the acceptance criteria for switching login versions, and the rollback approach if a flow fails. Request the deliverables, the client inputs and owners the provider needs, and what is excluded, such as later changes to Login V2 branding or ongoing support. DeployOpen agrees scope, deliverables and timelines in writing before work starts, and provides a quote from that written scope. Confirm the same structure with any provider you evaluate.

What happens if a Login V1 customization has no Actions V2 equivalent?

Zitadel's upgrade guidance states that not every Login V1 customization maps one-to-one to Actions V2, so you should expect some customizations to need redesign rather than translation. In practice, the team has to decide whether the behavior is still needed, can be met by another Zitadel setting, or must be rebuilt in a different place, such as in the application or in a separate service. Record each unmapped case in the inventory with the business owner's decision and the chosen replacement. Do not switch login versions until every unmapped case has an approved outcome and has been tested. Confirm the current V2 capabilities with Zitadel documentation for your target version before you commit to a design.

What security checks apply to hosted Actions endpoints during the migration?

Each V2 Action that runs as an endpoint is a new service you host, so it needs the same care as any internal API. Confirm how the endpoint authenticates calls from Zitadel, how secrets used by the Action are stored and rotated, which external systems it can reach, and what it logs. Limit network access to the systems each Action actually needs, and test failure behavior, because a slow or failing endpoint can affect login. Review the endpoints with your security team before cutover, and confirm the approach against your own policies rather than assuming it.

How DeployOpen scopes, delivers and supports the Actions V2 migration

DeployOpen approaches the move from Actions V1 to Actions V2 as a written, fixed-scope engagement inside your own infrastructure. We start by inventorying the flows and triggers your Login V1 setup depends on, then build, test and hand over the Actions V2 targets and endpoints before any login version switch.

How we scope

  • We inventory every Actions V1 flow and trigger your login depends on, including custom claims and token logic.
  • The written scope maps each V1 behavior to a request, response, function or event condition in Actions V2.
  • Scope records which customizations do not map one-to-one, so you decide on each before build starts.

How we build

  • We host the Actions V2 endpoints in your environment, with access controls and secrets handled as agreed in scope.
  • We rework each mapped behavior into its V2 target and execution, keeping the original V1 logic available for comparison.
  • We test each flow against representative login paths in a staging instance before any production change.

How we hand over

  • You receive a mapping document showing each V1 flow, its V2 replacement and the test evidence behind it.
  • Runbooks cover how the endpoints are deployed, rotated, monitored and rolled back if a login issue appears.
  • We agree a switch checklist with your team so the move to Login V2 is a documented decision, not an assumption.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Ask any partner to confirm in writing which Zitadel versions and Login V2 components their quote covers.

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.