Zitadel NextGen 0.4.0
0.4.0 settles where the API lives and hardens the session, ahead of 1.0.0. Install it with npx @zitadel/cli@latest. NextGen is still a preview: until 1.0.0, a minor release can include breaking changes, and this one has several. Update a self-hosted server first, then everything that calls it, as Upgrading from 0.3.0 below lists.
What's new
- The API under /api/v1. The server answers there, and the SDKs, the console and the CLI call it there; the old paths keep working until 1.0.0. More
- A session cookie no other site can plant.
__Host-zitadel_session, and security headers on every page the server serves. More - Setup ends with a deployed release.
zitadel setupdeploys.zitadel/once it has committed the project. More - Deploy from CI without
-m. A release takes its message from the pull request or the commit, andrelease getshows what it pins. More - Skills for your coding agents.
zitadel skills addadds the skills of the CLI version you run. More - Every list, every page.
@zitadel/api's list methods follow the cursor withitems(),pages()andall(). More - In the console. A schema's revisions and who is on each, how every admin holds access, and the policy a release pins. Schemas, access and policies
- Safer user deletion. Deleting a user revokes their grants, and never removes a project's last owner. More
- For self-hosting. The console signs in with the configuration its server ships, and
server.console_originsnames more addresses it is reached at. More
Upgrading from 0.3.0
- Upgrade a self-hosted server first, then set every
@zitadel/*package to0.4.0, the CLI and@zitadel/testingincluded: clients from this release call the API under/api/v1, and a server and an SDK from different sides of this release keep no session together (#2359, #2488). - Breaking: every browser signs in again, because the session cookie is now
__Host-zitadel_sessionand__nextgen_sessionis no longer read. preview.zitadel.com has used the new names since 30 October, so update apps that sign in there (more). - Breaking: in a single-page app set up by an earlier
zitadel setup, runzitadel doctor --fix: sign-in fails through the dev proxy it wrote until then. A production proxy you wrote for a single-page app must add the project secret toPOST /api/v1/sessions/exchange(#2357, #2359). - Breaking: a self-hosted console signs in only at
server.public_baseor a loopback address, new console passwords need at least 15 characters, and configuration set on the platform project through the API no longer applies. Setserver.public_baseto the address you use, and list others inserver.console_origins(#2469, #2462). - Move clients that call the API at its old paths to
/api/v1: until 1.0.0 the server answers them with aDeprecationheader (#2358). DELETE /users/{user_id}answers409proj.last_ownerfor the last active member of a project's owning team (#2398).- A client you generate from the API document now names the session cookie's security scheme
sessionCookieinstead ofnextgenSession(#2475). - If sign-in behind a compressing edge failed with "got no response" after a successful exchange, update the SDKs: their proxies no longer forward a
content-encodingfor a bodyfetchhas already decoded (#2503). - A self-hosted server's event webhook and stdout sinks no longer miss an event that commits after a later one, and servers that start together on PostgreSQL no longer deadlock on a migration (#2551, #2499).
Every change since 0.3.0 is in the release notes on GitHub.