What Changed in Kestra 2.1.0 and How to Migrate

For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append .md to any kestra.io/docs/* URL for plain Markdown.

Kestra 2.1.0 requires no flow rewrites, except flow outputs typed with an input-only type such as SELECT. The changes below affect API clients, CLI scripts, role definitions, and server configuration, so review them before upgrading from 2.0.

If you upgrade from a 2.0 version earlier than 2.0.8, also check the 2.0.0 migration guide for changes that shipped in 2.0 patch releases, such as Parallel and Dag interrupting running tasks when one fails.

What changed in 2.1.0

ChangeWho is affectedWhat to do
Concurrency limit APIAPI clients and scripts that read or update concurrency limitsSwitch to PUT /api/v1/{tenant}/concurrency-limit with the scope in the body, and page through search results.
SYSTEM_SETTINGS and TENANT_SETTINGS removed (EE)Role definitions in the API, kestractl, or TerraformRemove both permissions. Requests that include them fail with a 422. Stored roles need no change.
USER: IMPERSONATE removed (EE)Role definitions in the API, kestractl, or Terraform, and API clients that impersonate with the X-Kestra-Impersonate headerRemove the action from your roles. Requests that include it fail with a 422. Only Instance Owners can impersonate.
Namespace binding scope (EE)Roles bound to namespaces, and Terraform or API callers that create namespace bindingsA namespace binding can only grant namespace-level permissions. The upgrade moves existing namespace bindings of roles with tenant-level permissions to a <Role name> (namespace) copy, and requests that bind such a role to a namespace fail with a 422.
REVIEW permission for approvals (EE, Cloud)Custom roles whose users approve, deny, or cancel Approval tasksAdd EXECUTION: REVIEW and CASE: VIEW, LIST to those roles. Managed roles are updated automatically at startup.
Allowed Namespaces for internal storage URIs (EE)Flows that read, write, or delete another namespace’s files by kestra:// URIAdd the reading flow’s namespace to the Allowed Namespaces of the namespace that owns the files. Tasks that reach a restricted namespace’s files now fail.
Namespace IDs with an empty segmentNamespaces whose ID ends with a dot or contains .., such as team.Move their flows, namespace files, KV pairs, and role bindings to a valid namespace. Saving a flow in such a namespace fails, and its namespace files and KV store stop working.
Server CLI commands deprecatedScripts that call kestra flow, kestra namespace kv, kestra auths, kestra tenants, or kestra workers commandsMove to the kestractl equivalents. Deprecated commands now print a deprecation line to stdout.
Helm worker group selector (EE)Helm installations with entries under workerGroupsDelete each <fullname>-workergroup-<name> Deployment before helm upgrade. The upgrade recreates it with its own pod selector.
Queue configuration keys (EE)Kafka, Redis, and AMQP deploymentsMove settings under kestra.queue.<type>. The old keys still work but log a deprecation warning.
POST-only logout (EE)SSO deployments, configurations with get-allowed: true, and direct links to /logoutRegister <your Kestra URL>/ui as the post-logout redirect URI in your identity provider and remove get-allowed overrides. GET /logout now returns 405.
Asset relations (EE)Users of the lineage-events API, kestractl assets lineage-events, or PurgeAssets lineage optionsRead lineage from the relations API instead. Flows with an invalid asset id are now rejected on save.
Asset write timing (EE)Tasks or flows that write the same declared asset concurrently, status filters on active, and API clients reading assetEmitsExpect WARNING on the task that finds the asset locked, include pending and updating in status filters, and read lineage from the relations API.
Webhook responses without waitWebhook triggers that set responseCode without wait: trueThe immediate response now uses responseCode. If it reads outputs, set wait: true or remove it: otherwise the webhook responds with 500.
Audit log history endpoint (EE)API clients and scripts that call GET /api/v1/{tenant}/auditlogs/history/{detailId}Call GET /api/v1/{tenant}/auditlogs/history with filters on the resource type, ID, and namespace, and read the paged results. The old endpoint is removed.
Restart on another revision deprecatedAPI clients, scripts, and kestractl commands that restart executions on another revisionReplay the execution on the revision you want. The deprecated parameters will be removed in 2.2.
Flow output typesFlow outputs typed SELECT, MULTISELECT, EMAIL, FORM, or REUSABLE_INPUTSChange the type to STRING, or ARRAY for a list. Existing flows still run, but saving them fails until you do.

REVIEW Permission for Approvals

In 2.1.0, approving, denying, or cancelling an Approval task requires the new EXECUTION REVIEW permission. Managed roles get it automatically; custom roles must be updated by a tenant admin.

Asset Relations

In 2.1.0, Kestra stores asset lineage as asset relations. The upgrade migrates existing lineage, removes the lineage-events API, kestractl commands, and the PurgeAssets purgeAssetLineages property, and validates assets blocks when flows are saved.

Asset Write Timing

In 2.1.0, Kestra writes assets while the task runs instead of when it ends, locks a task's declared outputs during each attempt, and restores them when the attempt fails. The execution API no longer returns assetEmits on task runs.

Audit Log History Endpoint

In 2.1.0, the Enterprise Edition removes GET /api/v1/{tenant}/auditlogs/history/{detailId}. Request a resource's audit log history with filters on its type, ID, and namespace instead.

Concurrency Limit API

In 2.1.0, the concurrency counter update endpoint takes its scope in the request body, the search endpoint is paged, and Enterprise Edition adds the FLOW UPDATE_CONCURRENCY_LIMIT permission for resetting counters.

Flow Output Types

In 2.1.0, flow outputs have their own list of types. SELECT, MULTISELECT, EMAIL, FORM, and REUSABLE_INPUTS are input-only types, and saving a flow that uses one as an output type fails.

Helm Worker Group Selector

In the 2.1.0 Helm chart, each worker group Deployment has its own pod selector so worker groups can autoscale. Delete the worker group Deployments before helm upgrade, since a Deployment's selector can't change.

Impersonate Permission Removed

In 2.1.0, the USER IMPERSONATE action is removed and impersonation is reserved to Instance Owners. Existing roles ignore the action, and API calls or Terraform role definitions that still send it must be updated.

Namespace Binding Scope

In 2.1.0, a binding restricted to a namespace can only grant namespace-level permissions. Existing namespace bindings of roles with tenant-level permissions move to a namespace-only copy of the role at upgrade, and managing bindings requires the BINDING permission on the whole tenant.

Namespace IDs

In 2.1.0, a namespace ID can't end with a dot or contain two dots in a row. Flows in such a namespace are rejected on their next save, and its namespace files, KV store, state, and cache stop working.

Queue Backend Configuration

In 2.1.0, the Kafka, Redis, and AMQP queue backends read their configuration under kestra.queue.. The previous keys still work and log a deprecation warning.

Restart on Another Revision

In 2.1.0, a restart always runs on the revision the execution already ran on. Restarting on another revision is deprecated in the API and will be removed in 2.2. Replay instead.

Server CLI Commands Deprecated

Seven kestra server CLI commands that call the Kestra API are deprecated in 2.1.0 and will be removed in a future release. Each one has a kestractl replacement.

Settings Permissions Removed

In 2.1.0, the SYSTEM_SETTINGS and TENANT_SETTINGS RBAC permissions are removed. They never granted access to anything. Existing roles ignore them, and API calls or Terraform role definitions that still send them must be updated.

POST-Only Logout

In 2.1.0, the Enterprise Edition accepts logout only as a POST request. GET /logout returns 405. Register /ui as the post-logout redirect URI in your identity provider and remove get-allowed overrides from your configuration.

Internal Storage URIs

In 2.1.0, a task that reads, writes, lists, or deletes another namespace's file by its kestra:// URI fails when that namespace restricts Allowed Namespaces and doesn't list the flow's namespace.

Webhook Responses Without wait

In 2.1.0, a Webhook trigger that doesn't wait for the execution applies responseCode and responseContentType to its immediate response. A responseCode that reads outputs now makes the webhook respond with 500.

Was this page helpful?