Skip to content

Zitadel NextGen v0.5.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 23:47
8b6bab5

Generated Release Facts

This section is maintained by release automation. Edit product notes outside this block.

Release commit: 8b6bab513b6f

Container Images

Image Reference
container ghcr.io/zitadel/nextgen:0.5.0
container ghcr.io/zitadel/nextgen:latest

npm Packages

Package Version
@zitadel/cli 0.5.0
@zitadel/server 0.5.0
@zitadel/server-linux-x64 0.5.0
@zitadel/server-linux-arm64 0.5.0
@zitadel/server-darwin-x64 0.5.0
@zitadel/server-darwin-arm64 0.5.0
@zitadel/server-win32-x64 0.5.0
@zitadel/api 0.5.0
@zitadel/config 0.5.0
@zitadel/components 0.5.0
@zitadel/sdk-core 0.5.0
@zitadel/sdk-next 0.5.0
@zitadel/sdk-nuxt 0.5.0
@zitadel/sdk-react 0.5.0
@zitadel/sdk-vue 0.5.0
@zitadel/sdk-angular 0.5.0
@zitadel/sdk-solid 0.5.0
@zitadel/sdk-svelte 0.5.0
@zitadel/sdk-qwik 0.5.0
@zitadel/sdk-sveltekit 0.5.0
@zitadel/sdk-solid-start 0.5.0
@zitadel/sdk-qwik-router 0.5.0
@zitadel/sdk-tanstack-start 0.5.0
@zitadel/testing 0.5.0

Package Changes

Minor Changes

  • @zitadel/cli, @zitadel/api: #2568 cbab822 - Every CLI command that deletes, revokes or rolls back something now asks first, and needs --force when nobody can be asked. When nobody can be asked and --force is missing, the command fails with E_CONFIRMATION_REQUIRED (exit 3) and puts the question it would have asked in details.question, so a coding agent asks the user before it runs the --force retry in next_commands. @zitadel/api's operation list marks those operations with a new destructive field and a destructiveOperations list.

    Breaking: A destructive command refused for want of --force now fails with E_CONFIRMATION_REQUIRED instead of E_VALIDATION; the exit code stays 3. zitadel api now asks before an operation that deletes, revokes or rolls back, and refuses it without --force when non-interactive. doctor --fix asks before making a preview issuer origin primary; when non-interactive it skips that repair with a warning unless its new --force is passed. setup --dev-port asks before removing the app's previous origin; without --force in a non-interactive run it keeps the old origin and warns.

  • @zitadel/cli: #2601 a4a5349 - zitadel doctor now groups its checks into categories with color, and shows them when a check fails instead of only an error. It also says when a newer CLI exists, and so does zitadel --version in a box with the command to run. The new zitadel upgrade moves the project's exactly pinned @zitadel/* packages to the latest release, shows the breaking changes on the way, and refreshes generated files. The update check asks the npm registry at most once a day, skips CI, and ZITADEL_UPDATE_CHECK=0 turns it off. Every command now colors warnings, errors and next steps the same way, and project ids are no longer yellow, so yellow always means a warning. Piped output is unchanged.

  • @zitadel/cli: #2632 2cb9cec - zitadel api ls now takes --plain, and every list command (origin list, deployment list, preview list, variable list, variable resolve, env list, resources and the generated <resource> list commands) prints its terminal table, its piped rows and its next-page hint the same way. variable resolve now shows its count as N variables with the deployment it was frozen by on the line below.

  • @zitadel/cli: #2747 4a1bc20 - zitadel setup reports what sign-in is configured to do, in every mode, not
    only in the wizard. Its summary box has a Sign-in section, and --json
    carries data.sign_in: the method the login starts with, every method the
    user schema enables (password-first enables passkeys too), each registration
    field and whether it is required, the minimum password length and the external
    providers. The wizard's note now names the optional fields as well.

  • @zitadel/cli: #2781 9128bf1 - zitadel deploy and deploy --dry-run now also warn when the config disables a sign-in method that some existing users depend on, such as passkeys for users who signed up with only a passkey. The warning names the schema and the method and counts those users.

  • @zitadel/cli: #2598 503e27b - zitadel deploy and deploy --dry-run now warn when the config would lock existing users out. It names the schema and counts the users who lack the property a schema now signs in with (its x-identifier), and the users with an SSO link whose schema no flow uses any more. The check only warns and is skipped when the users cannot be read.

  • @zitadel/cli, @zitadel/server, @zitadel/api, @zitadel/testing: 3b7660e - Breaking: targets on POST /deployments is "primary" or a list of preview URLs. ["primary"], which CLIs and test kits released before this send, still deploys to every primary origin until 1.0.0, and its answer carries a Deprecation header.

    Breaking: a --dry-run --json from zitadel deploy and zitadel deployment create prints data.targets as the request sends it: "primary", not ["primary"].

  • @zitadel/cli, @zitadel/server, @zitadel/api, @zitadel/config, @zitadel/components: #2533 450cb58 - A login flow now chooses whether <zitadel-login> switches between sign-in and sign-up on its own, except on a step offering a provider that creates users, and { "purpose": "register" } alone moves to another purpose. zitadel deploy --dry-run warns about a switch left out (flows and schemas).

    Breaking: a flow definition read back through the API (GET and list) leaves out a transition's target when the transition only names a purpose, and a client generated from an earlier API spec fails to read it because it requires target. Upgrade @zitadel/api, or regenerate your client from the new spec, before deploying a flow that uses the short form. A transition's target may no longer be "": leave it out instead.

  • @zitadel/cli, @zitadel/server, @zitadel/components, @zitadel/testing: #2553 e7799e9 - A sign-in runs only what is deployed. zitadel origin rm warns that a project with no origins admits no origin except a loopback origin, and the test kit deploys the bootstrapped release to its primary origins, which default to a loopback origin. zitadel setup --dev-port deploys the release the old port ran to the new one, and zitadel doctor --fix does the same for the issuer it makes primary, or says to deploy. <zitadel-login> says to deploy when it cannot start a flow because nothing is deployed.

    Breaking: a project with no origins no longer serves a flow to an arbitrary host. A flow with no Origin, or from a console origin the project does not list, needs a primary deployment and otherwise answers rel.no_default. A listed origin or a live preview with nothing deployed answers rel.not_deployed, and so does a primary origin added since the last deploy. A loopback origin the project does not list is no longer served the newest primary deployment: it answers rel.not_deployed until it is added as a primary origin and deployed to. The test kit registers appOrigins as primary origins, so each must be an exact URL; a wildcard pattern is refused.

  • @zitadel/cli, @zitadel/server: #2821 6885a0e - PATCH /users/{user_id} takes dry_run in its body to check an update or schema migration without changing anything, and zitadel users update --dry-run asks the server the same question. See Migrate users between schema revisions.

    Breaking: zitadel users update --dry-run now calls the server, so it needs a server and a credential. A failure inside an array item now names the item in details.details.fields, such as attributes.phones.0.fax instead of attributes.phones, so match those names by prefix.

  • @zitadel/cli, @zitadel/api: #2698 f818392 - createZitadelClient now takes a userAgent, which it sends on every request it makes. The CLI sets its own User-Agent through that option instead of replacing the process-wide undici dispatcher, so a request made by anything else in the process keeps the agent it chose.

  • @zitadel/cli, @zitadel/server, @zitadel/testing: #2554 6b49566 - A request is served only what its release pins: a flow, user schema, identity provider, branding, or policy the release leaves out is not served, and a request with no release answers rel.not_deployed. setUserPassword applies the password policy of the release that serves the caller's Origin, so a frontend on a preview URL gets that preview's policy; the console's own origin and a caller with no Origin get the project's newest primary deployment. createAuthAttempt always follows the newest primary deployment. With no primary deployment both answer 409 with rel.no_default. A release that pins no flow answers flowdef.not_found saying so, zitadel deploy warns that such a release strands every existing user, and the console's project page shows the password policy the primary origins' release pins rather than the newest published one.

    Breaking: publishing a flow, schema, identity provider, branding, or policy no longer changes sign-in or setUserPassword until a release that pins it is deployed. That includes a project the test kit starts: what a test publishes after startZitadel applies once a release that pins it is deployed.

  • @zitadel/cli, @zitadel/server: #2552 a79bc7e - Breaking: POST /flow is served the project's newest primary deployment, not the newest revisions, when there is one and the request has no Origin. The same holds for a request from an origin the project does not list but the server lets in anyway, such as a loopback origin like http://localhost:3000 or a console origin like https://console.example.com, when nothing is deployed to that origin. That deployment stays live whatever the project lists, so its release cannot be revoked.

  • @zitadel/server: #2570 6dc824b - In the console, the Users list's revision filter picks one schema revision, or Older revisions for every user not yet on the newest. Its Latest only choice is gone: pick the newest revision instead, and a link carrying revision=latest opens the schema's whole list. The revision menu there and on a schema's detail page shows each revision the same way: a shortened id, its creation time, and Latest and In use badges. An older revision no longer carries a note and migration-guide link under Field definitions; its badges say where it stands. Ids that do not fit their slot are cut in the middle, keeping their start and the end that tells them apart (user_0…PQFJA0, https://part…/v2/profile.schema.json): in id columns, the revision pickers, a schema's id under its title, and a user's revision box.

  • @zitadel/server: #2731 c2c8454 - The console's user page now says when a newer schema revision is available, and lets you move that user to any revision of their schema, asking only for the values the move needs. See Migrate users between schema revisions.

  • @zitadel/server: #2686 bb83d04 - The console's Add user and user edit forms now build their controls from the whole user schema, including nested objects, arrays, nullable types and enums. Rules show as help and errors on the affected field. A property no control can write points to the CLI or API. The identifier is marked, labels name their API property on hover, and objects can be collapsed.

  • @zitadel/server: #2679 c2b79af - A project secret can no longer read a granted platform user's profile through the grants API, and a project that has not been claimed can no longer grant platform users or teams.

    Breaking: expand=principal on GET /grants/{id} and POST /grants/query now answers 403 user.permission_denied unless the caller can read the platform project. POST /grants on a project that has not been claimed answers 403 grant.project_unclaimed; claim the project first.

  • @zitadel/server: #2534 ec3c199 - The server writes an api error log line for every error it answers. That includes a sign-in step it refuses (for example a wrong password, a rejected passkey or a failed external sign-in), a refusal with its own response body, a path or method no operation serves, and the external sign-in callback. Each line carries the error's cause and the place it was raised, and shares the request_id of the request's request served line, which holds the status. Values a user submitted, such as an email or a pasted client secret, are left out of these lines.

  • @zitadel/server: #2689 0aff39f - Serve the OpenAPI document this binary was built from at GET /api/v1/openapi.json, with no authentication, so clients and agents can read the contract of a specific deployment.

  • @zitadel/api: #2613 7f2568d - @zitadel/api/runtime/paging now exports one class, Paging: build one from a list's page readers, or with Paging.byField() from the names of its fields, then walk() its pages and collect() them.

    It replaces pages(), nextToken() and itemsOf(): use new Paging({ items, next }).walk(fetch), paging.next(page) and Paging.byField(field).items(page). A fetch function now also receives the page number as a second argument.

    A client function's all() no longer throws a RangeError on a very large page.

  • @zitadel/config: #2493 bbc6bc5 - Add the Node-only @zitadel/config/bootstrap-user export so setup tools can generate bootstrap user documents using the same password hashing and document format as zitadel start.

Patch Changes

  • @zitadel/cli, @zitadel/server, @zitadel/api: #2454 1746222 - The API reference explains each operation for developers new to Zitadel: where
    each required ID comes from, what else a call changes, and how to recover from
    a refusal, in short sentences with consistent terms. An operation it names
    carries its method and path, such as createRelease (POST /releases). The @zitadel/api JSDoc
    and the zitadel CLI's flag help, which come from the same descriptions,
    follow.

  • @zitadel/cli, @zitadel/config: #2752 6777ed8 - zitadel auth-method password|passkey|sso disable --dry-run now refuses to remove a schema's last way to sign in without --force, as the real run does, and zitadel deploy warns when a login flow can finish without verifying a password, passkey or SSO sign-in.

  • @zitadel/cli: #2271 43cb628 - zitadel setup writes a working link to the worked flow examples into AGENTS.md again.

  • @zitadel/cli: #2642 96dab2d - zitadel api -h and zitadel api help now show the command's help, as zitadel api --help does, instead of failing with No operation is called help. -h works as --help on every command.

  • @zitadel/cli: #2599 6a7cd64 - zitadel claim now waits on its normal, growing delay after the platform rate-limits a status check, and the browser is opened through the open package, which takes a BROWSER setting as the program to open the link with.

  • @zitadel/cli: #2599 6a7cd64 - Pressing Ctrl-C while zitadel claim waits between status checks now ends the wait at once instead of after the next check.

  • @zitadel/cli: #2638 5a26a18 - Every command now checks its flags, their combinations and what it needs from the project before it runs, so a bad value or a missing precondition is refused up front rather than part way through. Each refusal keeps the code that says what went wrong — E_VALIDATION for a bad flag, and the code the precondition already used, such as E_LOCAL_SERVER_NOT_RUNNING or E_CONFLICT — so a caller that branches on the code still can. The wording of some refusals changed.

    Colour is decided once for a run, by where its output goes rather than by what is piped into it, so --color, --no-color, NO_COLOR and FORCE_COLOR now mean the same thing in every command: deploy, logs, preview and release honour FORCE_COLOR as their --color flag already promised, and output stays coloured when input is redirected but the terminal is still the destination.

  • @zitadel/cli: #2751 ddc2e1c - zitadel auth-method password disable and auth-method passkey disable now say, when a login flow still uses the method, what each step keeps without it, which purpose it starts and which transitions lead to it, instead of only saying to remove the method from those steps.

  • @zitadel/cli: #2761 0474c78 - zitadel doctor shows the command that repairs a warning right under it, instead of repeating the warning in plain words among the next steps. The local server's row says whether it is running, the hint to run with -v moves to the end and says how many checks there are, and the warning about other local servers on the machine says so in plain words.

  • @zitadel/cli: #2674 bd2611e - zitadel deploy --dry-run now stops on a flow whose user_schema names a schema that neither .zitadel/schemas/ nor the project holds, instead of passing it for the deploy to be refused.

  • @zitadel/cli: #2750 00501d1 - zitadel auth-method password enable and passkey enable now say what to add to which flow file when no login flow offers the method yet, instead of only that one should.

  • @zitadel/cli: #2645 841266e - zitadel reset now says what it deletes before it asks: the local server's database in the project's .zitadel/local/nextgen-data, which cannot be undone, and that it keeps the local admin sign-in and the rest of the project.

  • @zitadel/cli: #2753 b83f129 - zitadel auth-method commands now accept a user schema's objectType in --schema, the name login flows use, as well as its file name. When a schema is missing or the name fits more than one, the error lists each schema by both names, and --schema <file>.json picks the file, as the commands' own suggestions do for such a name.

  • @zitadel/cli: #2771 26f8264 - zitadel setup tells you how to add social sign-in later when you skip it.

  • @zitadel/cli: #2749 6f4e241 - zitadel setup lists sso among the sign-in methods in its summary box and in
    data.sign_in.methods when you choose an external provider.

  • @zitadel/cli: #2746 1b39fe1 - The agent skill bundled with the CLI now says consistently that zitadel setup
    deploys .zitadel/ after it scaffolds the project, so an agent no longer runs
    an extra deploy or tells you nothing was published.

  • @zitadel/cli: #2698 f818392 - A JSON body is now spelled with the escapes JSON itself uses, so zitadel api and a --dry-run preview stay parseable, and a refusal worth retrying is reported as one: 429 fails with E_NETWORK and 410 with E_NOT_FOUND rather than E_VALIDATION.

  • @zitadel/cli: #2755 cdf3c92 - zitadel auth-method sso disable now says what it keeps (the provider's connection file, which every deploy still publishes, its credential variables and its sign-in steps) and how to remove the file and the variables.

  • @zitadel/cli: #2754 913dcb9 - zitadel auth-method sso disable --provider now fails with E_NOT_FOUND for a provider that nothing offers, the catalog does not list and no connection under .zitadel/idps/ names, such as a typo, and lists the providers and connections the project has, instead of reporting success.

  • @zitadel/cli: #2758 5a39e2b - zitadel auth-method sso enable --dry-run now prints the callback URI and where to register the OAuth client, and lists the connection file, schema and flow updates and credential variables the real run would write (would_store in --json), without asking for credentials.

  • @zitadel/cli: #2579 4dc2b22 - List tables in the zitadel CLI now keep their columns lined up after wide text such as Chinese, and show control characters in a value as escapes instead of sending them to your terminal.

  • @zitadel/cli, @zitadel/config: #2757 2e14564 - zitadel deploy --dry-run and zitadel doctor now refuse a user schema whose x-auth-methods holds a key that is not an authentication method, such as a misspelt pasword, and suggest the method it was likely meant to be. An unknown key inside a method and an empty x-auth-methods are refused too. Before, the dry run passed and the deploy failed with a generic request error.

  • @zitadel/cli: #2848 0453aca - zitadel deploy from an uncommitted tree now says its release records an approximate commit and suggests the commit as the next step, and the CLI skill tells agents to commit .zitadel/ before every deploy, not to deploy changes they cannot account for, and that a project has no OAuth client, only a project id and secret.

  • @zitadel/cli: #2823 415f995 - zitadel deploy --dry-run and the deploy diff now show changes to the policy files in .zitadel/policies/, leaving out its test files, README.md and subdirectories, which no release carries.

  • @zitadel/cli, @zitadel/server, @zitadel/config: #2597 9b687fe - zitadel deploy now prints which schema or flow the server rejected and why, instead of only release: invalid. A schema that fails the meta-schema names the failing property path and keyword. The warn/password-without-identifier warning no longer fires for a password step reached through an SSO email collision, so the scaffolded flow deploys without a false sso-conflict warning.

  • @zitadel/cli: #2685 183b009 - A Next.js app that zitadel setup creates titles its sign-in, sign-up and profile pages "Sign in", "Create account" and "Profile" instead of create-next-app's "Create Next App". An existing app keeps its own titles.

  • @zitadel/cli, @zitadel/config: #2824 db8ecc2 - zitadel policies test --help now says that test cases go in <operation>.test.json beside the policy, not on the command line, and that the server evaluates them; the policies README that setup writes says that a policy applies once a deployed release carries it, for passwords set through the API too, that a pull request's preview applies it only on that pull request's preview URLs, and that a history case needs history_depth 2 or more.

  • @zitadel/cli, @zitadel/server, @zitadel/api, @zitadel/config: #2693 8f490a4 - Update dependencies that have published security advisories. @zitadel/cli now
    requires undici 7.30.1 or later, which fixes TLS certificate validation being
    skipped, cache poisoning across redirects and several denial-of-service bugs.
    @zitadel/cli, @zitadel/api and @zitadel/config require zod 4.6.6 or
    later, which stops oversized collections from exhausting memory during
    validation. The console embedded in the server picks up the seroval and zod
    fixes.

  • @zitadel/cli: #2778 9b8b6fe - zitadel setup now creates a new app in a folder whose name is not a valid npm package name, such as one made by mktemp -d, instead of stopping with Fresh app directory name … is not npm-package-safe. The app is generated in a subfolder with a valid name and moved up into the folder.

  • @zitadel/cli: #2774 930eb66 - zitadel setup now asks "Which sign-in method would you like your users to see first?" and words its two answers by what users see first and what is secondary, so email and password and passkey no longer read as the same choice from opposite directions.

  • @zitadel/server: #2614 e562907 - The console shows a failed action's whole error message instead of cutting it off after one line, so the reason and the next step stay readable, for example when deleting a project's last owner is refused.

  • @zitadel/server: #2820 c5eb07b - The console now shows the Zitadel favicon on self-hosted servers, which used to serve none: it linked files only the hosted cloud provides.

  • @zitadel/server: #2845 43d2a8d - The console's project page no longer shows a warning when the password policy's minimum length is under 15 characters: it states the rules the policy sets without grading them.

  • @zitadel/server: #2814 f417309 - The console's team details label the team's name "Team name", matching the rest of the console.

  • @zitadel/server, @zitadel/config, @zitadel/components: #2675 69df981 - <zitadel-login>'s error for an unknown flow-name, the @zitadel/components and @zitadel/config READMEs and the branding API reference now name zitadel deploy instead of the removed zitadel apply and zitadel plan.

  • @zitadel/server: #2272 45c5abe - The session exchange's sess.invalid_ttl error reports ttl and max_ttl with their fractional seconds, instead of rounding them down to the second or writing an empty P below one second.

  • @zitadel/server: #2716 8feb3ec - When an identity provider refuses the code exchange, the server log now includes the provider's error_description, for example invalid client_id / client_secret for a wrong client secret.

  • @zitadel/server, @zitadel/components: #2598 503e27b - An SSO sign-in whose provider account is linked to a user of a schema the flow does not serve now ends with flow.sso_user_schema_mismatch instead of flow.restart_required. <zitadel-login> shows "This account can't sign in with this provider. Please try another way to sign in, or contact your administrator." in English, Italian and German, rather than asking the visitor to start again, which could never succeed.

  • @zitadel/api: #2627 1332c85 - The @zitadel/api JSDoc links to docs pages by full URL, on
    https://preview.zitadel.com, so they open from an editor. The OpenAPI
    document the docs serve at /docs/openapi.json links them on the host that
    served it.

  • @zitadel/config: #2682 14d27d8 - The .zitadel/flows/README.md that zitadel setup writes now lists its edits by goal, each with the JSON to change, and says that a required schema property must be collected by a step. The docs add Edit the login flow.

  • @zitadel/config: #2756 aa65acf - The .zitadel/schemas/README.md and .zitadel/flows/README.md that zitadel setup writes now name the zitadel auth-method password|passkey commands and show how a flow step offers each method. The docs add Turn password and passkey sign-in on and off.

  • @zitadel/components: #2677 1420ccb - <zitadel-login> no longer carries a typed password or one-time code to the next step: after "Use another account", or on any later step that asks for one, the field starts empty. A value the same step refuses is kept so it can be corrected.

  • @zitadel/components: #2681 f76173b - <zitadel-login> checks a field's minimum and maximum length before submitting. <zl-field> shows only the error under a field while it has one, and its help text again once the error clears. A wrong password (error.invalid_credentials) now shows on the password field instead of in the form-level alert, so a custom template must render that field's error (f.name | fieldError: errors) to show it.

  • @zitadel/components: #2676 48d8872 - <zitadel-login> now says which attribute is wrong when it cannot start a flow: a purpose that is not a flow purpose (with the valid ones), a flow-name that is not a valid name, a project id the server refuses or does not have, and a purpose no active flow serves.

  • @zitadel/sdk-nuxt: #2585 f227766 - Pages that import from @zitadel/sdk-nuxt no longer fail to load in the browser (does not provide an export named 'toWebRequest') in apps installed with npm, which paired the SDK with h3 2. Its h3 peer range is now ^1.15.0, the h3 line Nuxt 4 runs on.

  • @zitadel/sdk-nuxt: #2584 18965d9 - nuxt dev now pre-bundles the dependencies of <zitadel-login> and the other widgets when it starts, so the first page that shows a widget loads them as one module instead of fetching lit, lucide and @zitadel/components file by file (about 2,000 requests in a new app).