Allowed Namespaces Now Apply to Files Read by URI
For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append.mdto anykestra.io/docs/*URL for plain Markdown.
Available on: Enterprise EditionCloud
Kestra 2.1.0 applies Allowed Namespaces to files in internal storage that a task reaches by their kestra:// URI.
Before 2.1.0, Allowed Namespaces covered subflows, Flow triggers, namespace files, the KV store, secrets, and assets, but not files reached by URI.
What changed
A task that reads, writes, lists, or deletes a file by its kestra:// URI now fails when the file’s namespace, or one of its parents, restricts Allowed Namespaces and doesn’t list the flow’s namespace.
A flow can still always reach:
- the execution outputs, cache, and state files of its own flow;
- its namespace’s files and state, and the files of other flows in its namespace or a parent namespace;
- the files of the execution that started it through a Flow trigger or a
Subflowtask.
By default, a namespace doesn’t restrict Allowed Namespaces, so its files stay reachable from every namespace.
Who is affected
The change affects flows that pass another namespace’s file URI to a task when that namespace restricts Allowed Namespaces, for example:
- a flow that reads another flow’s outputs from a URI written in its source or stored in the KV store;
- a flow that receives a file passed down more than one subflow level, or relayed through a third flow, since the file is checked against the namespace that produced it.
What to do
Find the namespace that owns each file and add the reading flow’s namespace to its Allowed Namespaces, on the namespace’s Edit tab or with the allowed_namespaces block of the kestra_namespace Terraform resource. Access to a namespace extends to its child namespaces.
Related
Was this page helpful?