A workspace with a parent, and every fork (including a fork whose parent was deleted), counts
- as a dev workspace. Every job is covered: runs, previews, schedules, triggers, flow steps, AI
- agent tools and dependency jobs, and inline runs are refused on workers not serving dev
- workspaces. A job whose tag no serving worker listens to stays queued: it never falls back to
- the other worker groups. Dedicated workers keep their own tags.
+ as a dev workspace, unless forks of non-dev workspaces are left out below. Every job is
+ covered: runs, previews, schedules, triggers, flow steps, AI agent tools and dependency jobs,
+ and inline runs are refused on workers not serving dev workspaces. A job whose tag no serving
+ worker listens to stays queued: it never falls back to the other worker groups. Dedicated
+ workers keep their own tags.
+
Worker groups serving dev workspaces
diff --git a/frontend/src/lib/components/DevWorkspaceSetting.svelte b/frontend/src/lib/components/DevWorkspaceSetting.svelte
index bd31752d83..9f8f536bd7 100644
--- a/frontend/src/lib/components/DevWorkspaceSetting.svelte
+++ b/frontend/src/lib/components/DevWorkspaceSetting.svelte
@@ -31,6 +31,8 @@
import { GitFork, ExternalLink, Check, Minus, Pen, Server } from 'lucide-svelte'
import {
devWorkspaceTagSuffix,
+ devWorkspaceSkipNonDevForks,
+ isIsolatedWorkspaceId,
loadDevWorkspaceTagSuffix,
withDevSuffix
} from '$lib/devWorkspaceTags'
@@ -555,7 +557,7 @@
{/snippet}
{#snippet devWorkersNotice()}
- {#if $devWorkspaceTagSuffix}
+ {#if $devWorkspaceTagSuffix && isIsolatedWorkspaceId($workspaceStore, $userWorkspaces, $devWorkspaceSkipNonDevForks)}
diff --git a/frontend/src/lib/components/WorkerTagSelect.svelte b/frontend/src/lib/components/WorkerTagSelect.svelte
index 4747ba7f41..cc6b3ebb95 100644
--- a/frontend/src/lib/components/WorkerTagSelect.svelte
+++ b/frontend/src/lib/components/WorkerTagSelect.svelte
@@ -12,7 +12,8 @@
import Popover from './Popover.svelte'
import {
devWorkspaceTagSuffix,
- isDevOrForkWorkspaceId,
+ devWorkspaceSkipNonDevForks,
+ isIsolatedWorkspaceId,
loadDevWorkspaceTagSuffix,
withDevSuffix
} from '$lib/devWorkspaceTags'
@@ -160,7 +161,8 @@
loadDevWorkspaceTagSuffix()
let devSuffix = $derived(
- $devWorkspaceTagSuffix && isDevOrForkWorkspaceId(effectiveWorkspace, $userWorkspaces)
+ $devWorkspaceTagSuffix &&
+ isIsolatedWorkspaceId(effectiveWorkspace, $userWorkspaces, $devWorkspaceSkipNonDevForks)
? $devWorkspaceTagSuffix
: undefined
)
diff --git a/frontend/src/lib/components/jobs/MissingWorkerTagAlert.svelte b/frontend/src/lib/components/jobs/MissingWorkerTagAlert.svelte
index 1c68e1be0e..1dbeb984bd 100644
--- a/frontend/src/lib/components/jobs/MissingWorkerTagAlert.svelte
+++ b/frontend/src/lib/components/jobs/MissingWorkerTagAlert.svelte
@@ -7,7 +7,8 @@
import { userWorkspaces } from '$lib/stores'
import {
devWorkspaceTagSuffix,
- isDevOrForkWorkspaceId,
+ devWorkspaceSkipNonDevForks,
+ isIsolatedWorkspaceId,
loadDevWorkspaceTagSuffix,
withDevSuffix
} from '$lib/devWorkspaceTags'
@@ -33,7 +34,8 @@
// those instances.
// A dev workspace's jobs run on the suffixed tag, which only groups serving dev workspaces pull.
let devSuffix = $derived(
- $devWorkspaceTagSuffix && isDevOrForkWorkspaceId(ws, $userWorkspaces)
+ $devWorkspaceTagSuffix &&
+ isIsolatedWorkspaceId(ws, $userWorkspaces, $devWorkspaceSkipNonDevForks)
? $devWorkspaceTagSuffix
: undefined
)
diff --git a/frontend/src/lib/components/runs/RunBadges.svelte b/frontend/src/lib/components/runs/RunBadges.svelte
index ba58431439..a04b6e646a 100644
--- a/frontend/src/lib/components/runs/RunBadges.svelte
+++ b/frontend/src/lib/components/runs/RunBadges.svelte
@@ -11,7 +11,8 @@
import { userWorkspaces } from '$lib/stores'
import {
devWorkspaceTagSuffix,
- isDevOrForkWorkspaceId,
+ devWorkspaceSkipNonDevForks,
+ isIsolatedWorkspaceId,
loadDevWorkspaceTagSuffix
} from '$lib/devWorkspaceTags'
@@ -76,7 +77,7 @@
Tag: {job.tag}
- {#if $devWorkspaceTagSuffix && job.tag.endsWith($devWorkspaceTagSuffix) && isDevOrForkWorkspaceId(job.workspace_id, $userWorkspaces)}
+ {#if $devWorkspaceTagSuffix && job.tag.endsWith($devWorkspaceTagSuffix) && isIsolatedWorkspaceId(job.workspace_id, $userWorkspaces, $devWorkspaceSkipNonDevForks)}
{#snippet text()}
Suffixed with {$devWorkspaceTagSuffix} because this workspace is a dev workspace
diff --git a/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte b/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte
index 9495010ffb..378a96733f 100644
--- a/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte
+++ b/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte
@@ -11,7 +11,12 @@
type CompletedJob
} from '$lib/gen'
import { validateUsername } from '$lib/utils'
- import { devWorkspaceTagSuffix, loadDevWorkspaceTagSuffix } from '$lib/devWorkspaceTags'
+ import {
+ devWorkspaceTagSuffix,
+ devWorkspaceSkipNonDevForks,
+ isForkOfIsolated,
+ loadDevWorkspaceTagSuffix
+ } from '$lib/devWorkspaceTags'
import { logoutWithRedirect } from '$lib/logoutKit'
import { page } from '$app/state'
import {
@@ -987,6 +992,11 @@
>).
{/if}
+ {:else if baseWorkspaceId && $devWorkspaceTagSuffix && !isForkOfIsolated(baseWorkspaceId, $userWorkspaces, $devWorkspaceSkipNonDevForks)}
+
+ Forks of non-dev workspaces are not isolated on this instance: jobs of this fork run on
+ the same workers as {baseWorkspaceId}.
+
{:else if baseWorkspaceId && $devWorkspaceTagSuffix}
Jobs of this fork run on the worker groups serving dev workspaces (tags suffixed with
diff --git a/frontend/src/lib/consts.ts b/frontend/src/lib/consts.ts
index a15c431640..a6bbc25d49 100644
--- a/frontend/src/lib/consts.ts
+++ b/frontend/src/lib/consts.ts
@@ -49,6 +49,8 @@ export const FORK_WORKSPACE_TAG_APPEND_FORK_SUFFIX_SETTING = 'fork_workspace_tag
export const PREVIEW_TAGS_OVERRIDE_SETTING = 'preview_tags_override'
export const DEPENDENCY_JOB_TAG_SETTING = 'dependency_job_tag'
export const DEV_WORKSPACE_ISOLATION_SETTING = 'dev_workspace_isolation'
+export const DEV_WORKSPACE_ISOLATION_SKIP_NON_DEV_FORKS_SETTING =
+ 'dev_workspace_isolation_skip_non_dev_forks'
export const DEV_WORKSPACE_TAG_SUFFIX_SETTING = 'dev_workspace_tag_suffix'
export const WORKSPACE_FAIRNESS_ENABLED_SETTING = 'workspace_fairness_enabled'
diff --git a/frontend/src/lib/devWorkspaceTags.ts b/frontend/src/lib/devWorkspaceTags.ts
index 313730eab7..60352576eb 100644
--- a/frontend/src/lib/devWorkspaceTags.ts
+++ b/frontend/src/lib/devWorkspaceTags.ts
@@ -8,14 +8,24 @@ const WM_FORK_PREFIX = 'wm-fork-'
/** Mirrors `is_valid_dev_workspace_tag_suffix`: the suffix ends up in SQL literals and tag lists. */
export const DEV_WORKSPACE_TAG_SUFFIX_PATTERN = /^[A-Za-z0-9_.-]{1,32}$/
+export type DevWorkspaceIsolationState = {
+ enabled: boolean
+ suffix: string
+ /** Forks of a workspace with no dev workspace in its lineage run on their parent's workers. */
+ skip_non_dev_forks: boolean
+}
+
/** `undefined` until loaded. */
-export const devWorkspaceIsolation = writable<{ enabled: boolean; suffix: string } | undefined>(
- undefined
-)
+export const devWorkspaceIsolation = writable(undefined)
/** The suffix new dev workspace and fork jobs get: `null` while isolation is off. */
export const devWorkspaceTagSuffix = derived(devWorkspaceIsolation, (i) =>
i === undefined ? undefined : i.enabled ? i.suffix : null
)
+/** Whether forks with no dev workspace in their lineage run on their parent's workers. */
+export const devWorkspaceSkipNonDevForks = derived(
+ devWorkspaceIsolation,
+ (i) => i?.skip_non_dev_forks ?? false
+)
/** The suffix worker groups serving dev workspaces listen with, isolation on or off. */
export const devWorkspaceListenSuffix = derived(
devWorkspaceIsolation,
@@ -32,7 +42,11 @@ export function loadDevWorkspaceTagSuffix(force = false): Promise {
.then(() => WorkerService.getDevWorkspaceIsolation())
.then((i) => devWorkspaceIsolation.set(i))
.catch(() =>
- devWorkspaceIsolation.set({ enabled: false, suffix: DEFAULT_DEV_WORKSPACE_TAG_SUFFIX })
+ devWorkspaceIsolation.set({
+ enabled: false,
+ suffix: DEFAULT_DEV_WORKSPACE_TAG_SUFFIX,
+ skip_non_dev_forks: false
+ })
)
.finally(() => (inflight = undefined))
return inflight
@@ -60,20 +74,68 @@ export function devTagNoWorkerHint(tag: string): string {
)
}
-/** Whether a workspace's jobs run on dev workers: it has a parent, or is (or was) a fork. */
-export function isDevOrForkWorkspace(w: {
+type LineageWorkspace = {
id: string
parent_workspace_id?: string | null
-}): boolean {
+ is_dev_workspace?: boolean
+ deleted?: boolean
+}
+
+/** Whether a workspace has a parent, or is (or was) a fork. */
+export function isDevOrForkWorkspace(w: LineageWorkspace): boolean {
return !!w.parent_workspace_id || w.id.startsWith(WM_FORK_PREFIX)
}
+/** Mirrors `in_dev_lineage` in `windmill-queue/src/tags.rs`: a dev workspace on the ancestor chain,
+ * `w` included, an orphaned fork or an archived ancestor with a parent counting as one (archiving a
+ * dev workspace clears its flag). The server reads the whole chain; here an
+ * ancestor missing from `workspaces` (one the user is not a member of) also counts as one, so a
+ * hint errs toward the dev workers rather than claiming a job reaches the parent's. */
+function isInDevLineage(w: LineageWorkspace, workspaces: LineageWorkspace[]): boolean {
+ let current: LineageWorkspace | undefined = w
+ for (let depth = 0; current && depth <= 20; depth++) {
+ const parentId = current.parent_workspace_id
+ if (current.is_dev_workspace || (current.deleted && parentId)) return true
+ if (!parentId) return current.id.startsWith(WM_FORK_PREFIX)
+ current = workspaces.find((x) => x.id === parentId)
+ }
+ return true
+}
+
+/** Whether a workspace's jobs run on dev workers while isolation is on. Mirrors
+ * `is_isolated_workspace` in `windmill-common/src/worker.rs`. */
+export function isIsolatedWorkspace(
+ w: LineageWorkspace,
+ workspaces: LineageWorkspace[],
+ skipNonDevForks: boolean
+): boolean {
+ return isDevOrForkWorkspace(w) && (!skipNonDevForks || isInDevLineage(w, workspaces))
+}
+
/** The same check for a workspace id, looked up in `workspaces` (pass the store's value so a
* reactive caller recomputes once the list loads). */
-export function isDevOrForkWorkspaceId(
+export function isIsolatedWorkspaceId(
workspaceId: string | undefined,
- workspaces: { id: string; parent_workspace_id?: string | null }[]
+ workspaces: LineageWorkspace[],
+ skipNonDevForks: boolean
): boolean {
if (!workspaceId) return false
- return isDevOrForkWorkspace(workspaces.find((w) => w.id === workspaceId) ?? { id: workspaceId })
+ return isIsolatedWorkspace(
+ workspaces.find((w) => w.id === workspaceId) ?? { id: workspaceId },
+ workspaces,
+ skipNonDevForks
+ )
+}
+
+/** Whether a new throwaway fork of `baseId` would run on dev workers while isolation is on. */
+export function isForkOfIsolated(
+ baseId: string,
+ workspaces: LineageWorkspace[],
+ skipNonDevForks: boolean
+): boolean {
+ return isIsolatedWorkspace(
+ { id: `${WM_FORK_PREFIX}new`, parent_workspace_id: baseId, is_dev_workspace: false },
+ workspaces,
+ skipNonDevForks
+ )
}
From 6f7737f9f9baa6a26011882c2ad4aca5a84275fe Mon Sep 17 00:00:00 2001
From: AlexRV12 <71396855+AlexRV12@users.noreply.github.com>
Date: Fri, 16 Oct 2026 20:40:04 +0200
Subject: [PATCH 03/46] fix: reserve handler group names for admins (#11823)
---
backend/windmill-api-groups/src/groups.rs | 7 ++++
.../tests/groups.rs | 35 +++++++++++++++++++
backend/windmill-common/src/lib.rs | 3 ++
.../src/lib/components/GroupEditor.svelte | 6 ++--
4 files changed, 48 insertions(+), 3 deletions(-)
diff --git a/backend/windmill-api-groups/src/groups.rs b/backend/windmill-api-groups/src/groups.rs
index d9550d2f5b..860e486a75 100644
--- a/backend/windmill-api-groups/src/groups.rs
+++ b/backend/windmill-api-groups/src/groups.rs
@@ -238,6 +238,13 @@ async fn create_group(
Json(ng): Json,
) -> Result {
crate::check_demo_workspace_restriction(&authed, &w_id, "Group creation")?;
+ // Admins stay allowed: `wmill sync push` recreates exported groups through this endpoint.
+ if !authed.is_admin && windmill_common::RESERVED_GROUP_NAMES.contains(&ng.name.as_str()) {
+ return Err(Error::BadRequest(format!(
+ "Group name {} is reserved by Windmill; only an admin can create it",
+ ng.name
+ )));
+ }
let mut tx = user_db.begin(&authed).await?;
check_name_conflict(&mut tx, &w_id, &ng.name).await?;
diff --git a/backend/windmill-api-integration-tests/tests/groups.rs b/backend/windmill-api-integration-tests/tests/groups.rs
index 9928d1c060..20e866cc37 100644
--- a/backend/windmill-api-integration-tests/tests/groups.rs
+++ b/backend/windmill-api-integration-tests/tests/groups.rs
@@ -1116,3 +1116,38 @@ async fn test_instance_group_member_that_is_not_an_email_is_skipped(
Ok(())
}
+
+/// A non-admin who creates a reserved group first becomes its member and inherits every grant
+/// Windmill later gives it.
+#[sqlx::test(migrations = "../migrations", fixtures("base"))]
+async fn test_reserved_group_names_admin_only(db: Pool) -> anyhow::Result<()> {
+ initialize_tracing().await;
+ let server = ApiServer::start(db.clone()).await?;
+ let base = format!(
+ "http://localhost:{}/api/w/test-workspace/groups",
+ server.addr.port()
+ );
+
+ for name in windmill_common::RESERVED_GROUP_NAMES {
+ let resp = client()
+ .post(format!("{base}/create"))
+ .header("Authorization", "Bearer SECRET_TOKEN_2")
+ .json(&json!({ "name": name }))
+ .send()
+ .await?;
+ assert_eq!(resp.status(), 400, "non-admin creating {name}");
+ assert!(resp.text().await?.contains("reserved"));
+
+ let resp = authed(client().post(format!("{base}/create")))
+ .json(&json!({ "name": name }))
+ .send()
+ .await?;
+ assert_eq!(
+ resp.status(),
+ 200,
+ "admin creating {name}: {}",
+ resp.text().await?
+ );
+ }
+ Ok(())
+}
diff --git a/backend/windmill-common/src/lib.rs b/backend/windmill-common/src/lib.rs
index 58a477d7b9..3b0a8e207f 100644
--- a/backend/windmill-common/src/lib.rs
+++ b/backend/windmill-common/src/lib.rs
@@ -170,6 +170,9 @@ pub const DEFAULT_SERVICE_LOG_RETENTION_SECS: i64 = 60 * 60 * 24 * 14; // 2 week
pub const DEFAULT_OTEL_TRACES_RETENTION_SECS: i64 = 60 * 60 * 24 * 7; // 1 week retention period for HTTP request spans
pub const DEFAULT_AI_SHARED_ARTIFACT_RETENTION_SECS: i64 = 60 * 60 * 24 * 30;
pub const WM_DEPLOYERS_GROUP: &str = "wm_deployers";
+/// Groups Windmill creates lazily (`ON CONFLICT DO NOTHING`) and grants permissions to before
+/// they exist; a member who created one first would inherit those grants.
+pub const RESERVED_GROUP_NAMES: &[&str] = &["error_handler", "success_handler", "slack", "teams"];
/// A century. Every consumer has to survive `now - retention`, and the ceilings are much lower
/// than an `i64`: `DateTime` subtraction panics past year 262143, and the `( s)::interval`
diff --git a/frontend/src/lib/components/GroupEditor.svelte b/frontend/src/lib/components/GroupEditor.svelte
index b4229cf9f6..2c256207e1 100644
--- a/frontend/src/lib/components/GroupEditor.svelte
+++ b/frontend/src/lib/components/GroupEditor.svelte
@@ -330,10 +330,10 @@
} catch (e) {
sendUserToast(e.body ?? String(e), true)
// A failed create is not proof the group is absent: `create_group` commits before a
- // git-sync step that can still fail the request, including with a 4xx. Only the name
- // conflict says it was never written. Report rather than resolve — a group found by
+ // git-sync step that can still fail the request, including with a 4xx. Only a name
+ // conflict or reservation proves absence. Report rather than resolve — a group found by
// name may be someone else's, and adopting it would send this draft's writes there.
- const nameTaken = String(e?.body ?? '').includes('already exists')
+ const nameTaken = /already exists|is reserved/.test(String(e?.body ?? ''))
if (created && !alreadyCreated && !nameTaken) {
sendUserToast(`Group ${name} may have been created anyway — reopen it to check`, true)
}
From 95da6165ea9b7a472d7f21bdfb226dfe1d43550e Mon Sep 17 00:00:00 2001
From: Ruben Fiszel
Date: Fri, 16 Oct 2026 20:40:29 +0200
Subject: [PATCH 04/46] chore(main): release 1.838.0 (#11807)
* chore(main): release 1.838.0
* Apply automatic changes
---------
Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com>
---
.release-please-manifest.json | 2 +-
CHANGELOG.md | 21 +++
backend/Cargo.lock | 166 +++++++++---------
backend/Cargo.toml | 4 +-
.../parsers/windmill-parser-wasm/Cargo.lock | 48 ++---
.../parsers/windmill-parser-wasm/Cargo.toml | 2 +-
backend/windmill-api/openapi.yaml | 2 +-
benchmarks/lib.ts | 2 +-
chat-sdk/package-lock.json | 4 +-
chat-sdk/package.json | 2 +-
cli/src/core/constants.ts | 2 +-
frontend/package-lock.json | 4 +-
frontend/package.json | 2 +-
lsp/Pipfile | 2 +-
openflow.openapi.yaml | 2 +-
.../WindmillClient/WindmillClient.psd1 | 2 +-
python-client/wmill/pyproject.toml | 2 +-
typescript-client/jsr.json | 2 +-
typescript-client/package.json | 2 +-
version.txt | 2 +-
windmill-yaml-validator/package-lock.json | 4 +-
windmill-yaml-validator/package.json | 2 +-
22 files changed, 151 insertions(+), 130 deletions(-)
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 6f66e1e10b..35f61c2247 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "1.837.0"
+ ".": "1.838.0"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8e1db486d4..ef1c05022a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,26 @@
# Changelog
+## [1.838.0](https://github.com/windmill-labs/windmill/compare/v1.837.0...v1.838.0) (2026-10-16)
+
+
+### Features
+
+* accept Ed25519-signed license keys alongside RSA ([#11810](https://github.com/windmill-labs/windmill/issues/11810)) ([33d4049](https://github.com/windmill-labs/windmill/commit/33d4049db029e1dc478b1251c562232f0127fc8a))
+* make the frontend installable as a progressive web app ([#11805](https://github.com/windmill-labs/windmill/issues/11805)) ([b86909f](https://github.com/windmill-labs/windmill/commit/b86909fc81b21447414266f47a83a43492204e50))
+* name mcp script and flow tools after their last path segment ([#11817](https://github.com/windmill-labs/windmill/issues/11817)) ([d1a13d9](https://github.com/windmill-labs/windmill/commit/d1a13d9054d5994b5ed9c0f8566b86154662caa0))
+* route dev workspace and fork jobs to their own worker groups ([#11811](https://github.com/windmill-labs/windmill/issues/11811)) ([6e565b0](https://github.com/windmill-labs/windmill/commit/6e565b0dcb0fb56b69131c262d482c82bb6c527b))
+
+
+### Bug Fixes
+
+* **ai-chat:** tell the session chat that an agent is an ai_agent resource ([#11798](https://github.com/windmill-labs/windmill/issues/11798)) ([a521548](https://github.com/windmill-labs/windmill/commit/a52154877caa5c3e473ee56c1eaf040b7da2375f))
+* emit a single email claim in job OIDC tokens ([#11804](https://github.com/windmill-labs/windmill/issues/11804)) ([2ef0c0d](https://github.com/windmill-labs/windmill/commit/2ef0c0d8e14fcd5ff1c06f6113ffaf2792b9d4c9))
+* give inline script runs their own job dir ([#11822](https://github.com/windmill-labs/windmill/issues/11822)) ([6aec448](https://github.com/windmill-labs/windmill/commit/6aec4488ebe8f377b4ea9bb4948649831cba0dbc))
+* hold mcp token references to resource reference scopes ([#11803](https://github.com/windmill-labs/windmill/issues/11803)) ([c09038b](https://github.com/windmill-labs/windmill/commit/c09038b10698042209fd6aa26c466fb53d6dc7d0))
+* let deployed low-code apps run database studio queries again ([#11816](https://github.com/windmill-labs/windmill/issues/11816)) ([7c63a30](https://github.com/windmill-labs/windmill/commit/7c63a30edd650f49eff85066dcc7916cec1b7010))
+* truncate long row titles instead of wrapping ([#11815](https://github.com/windmill-labs/windmill/issues/11815)) ([153a871](https://github.com/windmill-labs/windmill/commit/153a871550e3ae9ad6282aa59b3a4f9897fec6c1))
+* use the session workspace's user in three AI session places ([#11808](https://github.com/windmill-labs/windmill/issues/11808)) ([19fc07f](https://github.com/windmill-labs/windmill/commit/19fc07faa95a8a2247e726f9d0a2adc3cfa42bd2))
+
## [1.837.0](https://github.com/windmill-labs/windmill/compare/v1.836.0...v1.837.0) (2026-10-15)
diff --git a/backend/Cargo.lock b/backend/Cargo.lock
index 15b4e190fe..e7317a8d5e 100644
--- a/backend/Cargo.lock
+++ b/backend/Cargo.lock
@@ -11709,9 +11709,9 @@ checksum = "ece8e78b2f38ec51c51f5d475df0a7187ba5111b2a28bdc761ee05b075d40a71"
[[package]]
name = "schannel"
-version = "0.1.29"
+version = "0.1.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
+checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5"
dependencies = [
"windows-sys 0.61.2",
]
@@ -15486,7 +15486,7 @@ dependencies = [
[[package]]
name = "windmill"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-nats",
@@ -15576,7 +15576,7 @@ dependencies = [
[[package]]
name = "windmill-ai"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"async-stream",
"async-trait",
@@ -15611,7 +15611,7 @@ dependencies = [
[[package]]
name = "windmill-alerting"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -15624,7 +15624,7 @@ dependencies = [
[[package]]
name = "windmill-api"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"argon2",
@@ -15767,7 +15767,7 @@ dependencies = [
[[package]]
name = "windmill-api-agent-workers"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -15790,7 +15790,7 @@ dependencies = [
[[package]]
name = "windmill-api-assets"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -15807,7 +15807,7 @@ dependencies = [
[[package]]
name = "windmill-api-auth"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"axum",
@@ -15833,7 +15833,7 @@ dependencies = [
[[package]]
name = "windmill-api-client"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"reqwest 0.12.28",
"serde",
@@ -15843,7 +15843,7 @@ dependencies = [
[[package]]
name = "windmill-api-configs"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -15860,7 +15860,7 @@ dependencies = [
[[package]]
name = "windmill-api-debug"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"base64 0.22.1",
@@ -15882,7 +15882,7 @@ dependencies = [
[[package]]
name = "windmill-api-embeddings"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"axum",
@@ -15905,7 +15905,7 @@ dependencies = [
[[package]]
name = "windmill-api-flow-conversations"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -15921,7 +15921,7 @@ dependencies = [
[[package]]
name = "windmill-api-flows"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -15943,7 +15943,7 @@ dependencies = [
[[package]]
name = "windmill-api-groups"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -15965,7 +15965,7 @@ dependencies = [
[[package]]
name = "windmill-api-inputs"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -15979,7 +15979,7 @@ dependencies = [
[[package]]
name = "windmill-api-integration-tests"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-nats",
@@ -16015,7 +16015,7 @@ dependencies = [
[[package]]
name = "windmill-api-jobs"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"axum",
@@ -16041,7 +16041,7 @@ dependencies = [
[[package]]
name = "windmill-api-npm-proxy"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -16069,7 +16069,7 @@ dependencies = [
[[package]]
name = "windmill-api-openapi"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"axum",
@@ -16091,7 +16091,7 @@ dependencies = [
[[package]]
name = "windmill-api-schedule"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -16111,7 +16111,7 @@ dependencies = [
[[package]]
name = "windmill-api-scripts"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"axum",
@@ -16153,7 +16153,7 @@ dependencies = [
[[package]]
name = "windmill-api-settings"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"axum",
@@ -16183,7 +16183,7 @@ dependencies = [
[[package]]
name = "windmill-api-sse"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"lazy_static",
"serde",
@@ -16195,7 +16195,7 @@ dependencies = [
[[package]]
name = "windmill-api-users"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"argon2",
"axum",
@@ -16219,7 +16219,7 @@ dependencies = [
[[package]]
name = "windmill-api-workers"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -16234,7 +16234,7 @@ dependencies = [
[[package]]
name = "windmill-api-workspaces"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"axum",
"chrono",
@@ -16273,7 +16273,7 @@ dependencies = [
[[package]]
name = "windmill-audit"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"chrono",
"lazy_static",
@@ -16288,7 +16288,7 @@ dependencies = [
[[package]]
name = "windmill-autoscaling"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"axum",
@@ -16307,7 +16307,7 @@ dependencies = [
[[package]]
name = "windmill-common"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"aes-gcm",
"aho-corasick",
@@ -16423,7 +16423,7 @@ dependencies = [
[[package]]
name = "windmill-dep-map"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"chrono",
"futures",
@@ -16443,7 +16443,7 @@ dependencies = [
[[package]]
name = "windmill-git-sync"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"regex",
"serde",
@@ -16460,7 +16460,7 @@ dependencies = [
[[package]]
name = "windmill-indexer"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"astral-tokio-tar",
@@ -16487,7 +16487,7 @@ dependencies = [
[[package]]
name = "windmill-jseval"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"futures",
@@ -16504,7 +16504,7 @@ dependencies = [
[[package]]
name = "windmill-macros"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"itertools 0.14.0",
"lazy_static",
@@ -16520,7 +16520,7 @@ dependencies = [
[[package]]
name = "windmill-mcp"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -16542,7 +16542,7 @@ dependencies = [
[[package]]
name = "windmill-native-triggers"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -16573,7 +16573,7 @@ dependencies = [
[[package]]
name = "windmill-oauth"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"arc-swap",
@@ -16598,7 +16598,7 @@ dependencies = [
[[package]]
name = "windmill-object-store"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-stream",
@@ -16634,7 +16634,7 @@ dependencies = [
[[package]]
name = "windmill-operator"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"futures",
@@ -16653,7 +16653,7 @@ dependencies = [
[[package]]
name = "windmill-parser"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"convert_case 0.6.0",
"serde",
@@ -16662,7 +16662,7 @@ dependencies = [
[[package]]
name = "windmill-parser-bash"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16674,7 +16674,7 @@ dependencies = [
[[package]]
name = "windmill-parser-csharp"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"serde_json",
@@ -16686,7 +16686,7 @@ dependencies = [
[[package]]
name = "windmill-parser-go"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"gosyn",
@@ -16698,7 +16698,7 @@ dependencies = [
[[package]]
name = "windmill-parser-graphql"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16710,7 +16710,7 @@ dependencies = [
[[package]]
name = "windmill-parser-java"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"serde_json",
@@ -16722,7 +16722,7 @@ dependencies = [
[[package]]
name = "windmill-parser-nu"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"nu-parser",
@@ -16733,7 +16733,7 @@ dependencies = [
[[package]]
name = "windmill-parser-php"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"itertools 0.14.0",
@@ -16744,7 +16744,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"itertools 0.14.0",
@@ -16756,7 +16756,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py-asset"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"ruff_python_ast",
@@ -16767,7 +16767,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py-imports"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-recursion",
@@ -16790,7 +16790,7 @@ dependencies = [
[[package]]
name = "windmill-parser-r"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"serde_json",
@@ -16802,7 +16802,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ruby"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16816,7 +16816,7 @@ dependencies = [
[[package]]
name = "windmill-parser-rust"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"convert_case 0.6.0",
@@ -16833,7 +16833,7 @@ dependencies = [
[[package]]
name = "windmill-parser-sql"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16846,7 +16846,7 @@ dependencies = [
[[package]]
name = "windmill-parser-sql-asset"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"serde",
@@ -16858,7 +16858,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ts"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16876,7 +16876,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ts-asset"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"serde-wasm-bindgen",
@@ -16892,7 +16892,7 @@ dependencies = [
[[package]]
name = "windmill-parser-wac"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"ruff_python_ast",
@@ -16909,7 +16909,7 @@ dependencies = [
[[package]]
name = "windmill-parser-yaml"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16923,7 +16923,7 @@ dependencies = [
[[package]]
name = "windmill-queue"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-recursion",
@@ -16962,7 +16962,7 @@ dependencies = [
[[package]]
name = "windmill-runtime-nativets"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"const_format",
@@ -17000,7 +17000,7 @@ dependencies = [
[[package]]
name = "windmill-sql-datatype-parser-wasm"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"getrandom 0.3.4",
"wasm-bindgen",
@@ -17011,7 +17011,7 @@ dependencies = [
[[package]]
name = "windmill-store"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-recursion",
@@ -17046,7 +17046,7 @@ dependencies = [
[[package]]
name = "windmill-test-utils"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17070,7 +17070,7 @@ dependencies = [
[[package]]
name = "windmill-trigger"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17103,7 +17103,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-amqp"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17130,7 +17130,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-azure"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17163,7 +17163,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-email"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17183,7 +17183,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-gcp"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17217,7 +17217,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-http"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17254,7 +17254,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-kafka"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17277,7 +17277,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-mqtt"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17301,7 +17301,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-nats"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-nats",
@@ -17325,7 +17325,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-postgres"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17360,7 +17360,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-sqs"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17388,7 +17388,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-websocket"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17413,7 +17413,7 @@ dependencies = [
[[package]]
name = "windmill-types"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"bitflags 2.13.2",
@@ -17432,7 +17432,7 @@ dependencies = [
[[package]]
name = "windmill-worker"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-once-cell",
@@ -17550,7 +17550,7 @@ dependencies = [
[[package]]
name = "windmill-worker-volumes"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"bytes",
"futures",
@@ -18372,9 +18372,9 @@ dependencies = [
[[package]]
name = "zip"
-version = "7.2.0"
+version = "7.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c42e33efc22a0650c311c2ef19115ce232583abbe80850bc8b66509ebef02de0"
+checksum = "cc12baa6db2b15a140161ce53d72209dacea594230798c24774139b54ecaa980"
dependencies = [
"crc32fast",
"indexmap 2.14.2",
diff --git a/backend/Cargo.toml b/backend/Cargo.toml
index 3daf4af371..dae4298a10 100644
--- a/backend/Cargo.toml
+++ b/backend/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "windmill"
-version = "1.837.0"
+version = "1.838.0"
authors.workspace = true
edition.workspace = true
@@ -88,7 +88,7 @@ members = [
exclude = ["./windmill-duckdb-ffi-internal", "./parsers/windmill-parser-wasm"]
[workspace.package]
-version = "1.837.0"
+version = "1.838.0"
authors = ["Ruben Fiszel "]
edition = "2021"
diff --git a/backend/parsers/windmill-parser-wasm/Cargo.lock b/backend/parsers/windmill-parser-wasm/Cargo.lock
index 9b266a21ee..210ad3baad 100644
--- a/backend/parsers/windmill-parser-wasm/Cargo.lock
+++ b/backend/parsers/windmill-parser-wasm/Cargo.lock
@@ -6340,7 +6340,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windmill-common"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"aes-gcm",
"aho-corasick",
@@ -6430,7 +6430,7 @@ dependencies = [
[[package]]
name = "windmill-macros"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"proc-macro2",
"quote",
@@ -6442,7 +6442,7 @@ dependencies = [
[[package]]
name = "windmill-parser"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"convert_case",
"serde",
@@ -6451,7 +6451,7 @@ dependencies = [
[[package]]
name = "windmill-parser-bash"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6463,7 +6463,7 @@ dependencies = [
[[package]]
name = "windmill-parser-csharp"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"serde_json",
@@ -6475,7 +6475,7 @@ dependencies = [
[[package]]
name = "windmill-parser-go"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"gosyn",
@@ -6487,7 +6487,7 @@ dependencies = [
[[package]]
name = "windmill-parser-graphql"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6499,7 +6499,7 @@ dependencies = [
[[package]]
name = "windmill-parser-java"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"serde_json",
@@ -6511,7 +6511,7 @@ dependencies = [
[[package]]
name = "windmill-parser-nu"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"nu-parser",
@@ -6522,7 +6522,7 @@ dependencies = [
[[package]]
name = "windmill-parser-php"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"itertools 0.14.0",
@@ -6533,7 +6533,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"itertools 0.14.0",
@@ -6545,7 +6545,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py-asset"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"ruff_python_ast",
@@ -6556,7 +6556,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py-imports"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"async-recursion",
@@ -6579,7 +6579,7 @@ dependencies = [
[[package]]
name = "windmill-parser-r"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"serde_json",
@@ -6591,7 +6591,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ruby"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6605,7 +6605,7 @@ dependencies = [
[[package]]
name = "windmill-parser-rust"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"convert_case",
@@ -6622,7 +6622,7 @@ dependencies = [
[[package]]
name = "windmill-parser-sql"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6635,7 +6635,7 @@ dependencies = [
[[package]]
name = "windmill-parser-sql-asset"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"serde",
@@ -6647,7 +6647,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ts"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6665,7 +6665,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ts-asset"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"serde-wasm-bindgen",
@@ -6681,7 +6681,7 @@ dependencies = [
[[package]]
name = "windmill-parser-wac"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"ruff_python_ast",
@@ -6698,7 +6698,7 @@ dependencies = [
[[package]]
name = "windmill-parser-wasm"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"getrandom 0.2.17",
@@ -6730,7 +6730,7 @@ dependencies = [
[[package]]
name = "windmill-parser-yaml"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6744,7 +6744,7 @@ dependencies = [
[[package]]
name = "windmill-types"
-version = "1.837.0"
+version = "1.838.0"
dependencies = [
"anyhow",
"bitflags",
diff --git a/backend/parsers/windmill-parser-wasm/Cargo.toml b/backend/parsers/windmill-parser-wasm/Cargo.toml
index 3de0a1353e..bffb89e309 100644
--- a/backend/parsers/windmill-parser-wasm/Cargo.toml
+++ b/backend/parsers/windmill-parser-wasm/Cargo.toml
@@ -12,7 +12,7 @@ resolver = "2"
members = ["."]
[workspace.package]
-version = "1.837.0"
+version = "1.838.0"
edition = "2021"
authors = ["Ruben Fiszel "]
diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml
index 443931d3a8..1fb5cb400e 100644
--- a/backend/windmill-api/openapi.yaml
+++ b/backend/windmill-api/openapi.yaml
@@ -1,7 +1,7 @@
openapi: "3.0.3"
info:
- version: 1.837.0
+ version: 1.838.0
title: Windmill API
contact:
diff --git a/benchmarks/lib.ts b/benchmarks/lib.ts
index 6cd5afc3c2..8be34695d8 100644
--- a/benchmarks/lib.ts
+++ b/benchmarks/lib.ts
@@ -2,7 +2,7 @@ import { sleep } from "https://deno.land/x/sleep@v1.2.1/mod.ts";
import * as windmill from "https://deno.land/x/windmill@v1.174.0/mod.ts";
import * as api from "https://deno.land/x/windmill@v1.174.0/windmill-api/index.ts";
-export const VERSION = "v1.837.0";
+export const VERSION = "v1.838.0";
export async function login(email: string, password: string): Promise {
return await windmill.UserService.login({
diff --git a/chat-sdk/package-lock.json b/chat-sdk/package-lock.json
index 58b042307a..3f6046b333 100644
--- a/chat-sdk/package-lock.json
+++ b/chat-sdk/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@windmill-labs/chat-sdk",
- "version": "1.837.0",
+ "version": "1.838.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@windmill-labs/chat-sdk",
- "version": "1.837.0",
+ "version": "1.838.0",
"license": "Apache-2.0",
"devDependencies": {
"@ai-sdk/react": "^4.0.102",
diff --git a/chat-sdk/package.json b/chat-sdk/package.json
index f2e146b4de..20c015571d 100644
--- a/chat-sdk/package.json
+++ b/chat-sdk/package.json
@@ -1,7 +1,7 @@
{
"name": "@windmill-labs/chat-sdk",
"description": "Build chat interfaces on Windmill flows deployed in chat mode, from any frontend or raw app",
- "version": "1.837.0",
+ "version": "1.838.0",
"author": "Ruben Fiszel",
"license": "Apache-2.0",
"homepage": "https://github.com/windmill-labs/windmill/tree/main/chat-sdk#readme",
diff --git a/cli/src/core/constants.ts b/cli/src/core/constants.ts
index 481c71af1b..5ee633da50 100644
--- a/cli/src/core/constants.ts
+++ b/cli/src/core/constants.ts
@@ -10,4 +10,4 @@ export const WM_FORK_PREFIX = "wm-fork";
// (e.g. utils.ts) can read it without importing main.ts and creating a circular
// dependency (main → workspace → utils → main) that triggers a TDZ.
// Re-exported from main.ts for backwards compatibility.
-export const VERSION = "1.837.0";
+export const VERSION = "1.838.0";
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 337525a347..244afb2229 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@windmill-labs/components",
- "version": "1.837.0",
+ "version": "1.838.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@windmill-labs/components",
- "version": "1.837.0",
+ "version": "1.838.0",
"hasInstallScript": true,
"license": "AGPL-3.0",
"dependencies": {
diff --git a/frontend/package.json b/frontend/package.json
index 42f1bdc9b0..9da5a41395 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,6 +1,6 @@
{
"name": "@windmill-labs/components",
- "version": "1.837.0",
+ "version": "1.838.0",
"scripts": {
"dev": "vite dev",
"dev:ui-builder": "mv static/ui_builder static/ui_builder.dev-disabled 2>/dev/null || true ; trap 'mv static/ui_builder.dev-disabled static/ui_builder 2>/dev/null || true' EXIT ; vite dev",
diff --git a/lsp/Pipfile b/lsp/Pipfile
index abc7821016..8df7a058cd 100644
--- a/lsp/Pipfile
+++ b/lsp/Pipfile
@@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi"
[packages]
-wmill = ">=1.837.0"
+wmill = ">=1.838.0"
sendgrid = "*"
mysql-connector-python = "*"
pymongo = "*"
diff --git a/openflow.openapi.yaml b/openflow.openapi.yaml
index 8f95e8c525..e34638c014 100644
--- a/openflow.openapi.yaml
+++ b/openflow.openapi.yaml
@@ -1,7 +1,7 @@
openapi: '3.0.3'
info:
- version: 1.837.0
+ version: 1.838.0
title: OpenFlow Spec
contact:
name: Ruben Fiszel
diff --git a/powershell-client/WindmillClient/WindmillClient.psd1 b/powershell-client/WindmillClient/WindmillClient.psd1
index d9f1b1ae3a..6d58635f0a 100644
--- a/powershell-client/WindmillClient/WindmillClient.psd1
+++ b/powershell-client/WindmillClient/WindmillClient.psd1
@@ -12,7 +12,7 @@
RootModule = 'WindmillClient.psm1'
# Version number of this module.
- ModuleVersion = '1.837.0'
+ ModuleVersion = '1.838.0'
# Supported PSEditions
# CompatiblePSEditions = @()
diff --git a/python-client/wmill/pyproject.toml b/python-client/wmill/pyproject.toml
index 1fccab1881..e564514e24 100644
--- a/python-client/wmill/pyproject.toml
+++ b/python-client/wmill/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "wmill"
-version = "1.837.0"
+version = "1.838.0"
description = "A client library for accessing Windmill server wrapping the Windmill client API"
license = "Apache-2.0"
homepage = "https://windmill.dev"
diff --git a/typescript-client/jsr.json b/typescript-client/jsr.json
index ee230b4c6b..a5680a40d6 100644
--- a/typescript-client/jsr.json
+++ b/typescript-client/jsr.json
@@ -1,6 +1,6 @@
{
"name": "@windmill/windmill",
- "version": "1.837.0",
+ "version": "1.838.0",
"exports": "./src/index.ts",
"publish": {
"exclude": ["!src", "./s3Types.ts", "./sqlUtils.ts", "./client.ts", "./wacError.ts"]
diff --git a/typescript-client/package.json b/typescript-client/package.json
index 6439de1d1b..db385069bb 100644
--- a/typescript-client/package.json
+++ b/typescript-client/package.json
@@ -1,7 +1,7 @@
{
"name": "windmill-client",
"description": "Windmill SDK client for browsers and Node.js",
- "version": "1.837.0",
+ "version": "1.838.0",
"author": "Ruben Fiszel",
"license": "Apache 2.0",
"homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme",
diff --git a/version.txt b/version.txt
index 1350f135f8..6ae9c3f1df 100644
--- a/version.txt
+++ b/version.txt
@@ -1 +1 @@
-1.837.0
+1.838.0
diff --git a/windmill-yaml-validator/package-lock.json b/windmill-yaml-validator/package-lock.json
index ff919945b2..2ce6b6765c 100644
--- a/windmill-yaml-validator/package-lock.json
+++ b/windmill-yaml-validator/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "windmill-yaml-validator",
- "version": "1.837.0",
+ "version": "1.838.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "windmill-yaml-validator",
- "version": "1.837.0",
+ "version": "1.838.0",
"license": "Apache 2.0",
"dependencies": {
"@stoplight/yaml": "^4.3.0",
diff --git a/windmill-yaml-validator/package.json b/windmill-yaml-validator/package.json
index d5d5aad1e6..296cadecf2 100644
--- a/windmill-yaml-validator/package.json
+++ b/windmill-yaml-validator/package.json
@@ -1,6 +1,6 @@
{
"name": "windmill-yaml-validator",
- "version": "1.837.0",
+ "version": "1.838.0",
"description": "YAML validator for Windmill flow, schedule, and trigger files",
"main": "dist/index.js",
"types": "dist/index.d.ts",
From efd9f048920097fe40916fa50174724c86557e96 Mon Sep 17 00:00:00 2001
From: hugocasa
Date: Fri, 16 Oct 2026 20:53:11 +0200
Subject: [PATCH 05/46] oauth: add asana provider (#11814)
Co-authored-by: Claude Opus 5.5
---
backend/oauth_connect.json | 8 ++++++++
frontend/src/lib/components/AuthSettings.svelte | 3 ++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/backend/oauth_connect.json b/backend/oauth_connect.json
index d3ac7a3809..c52350486b 100644
--- a/backend/oauth_connect.json
+++ b/backend/oauth_connect.json
@@ -317,6 +317,14 @@
"type": "web_server"
}
},
+ "asana": {
+ "auth_url": "https://app.asana.com/-/oauth_authorize",
+ "token_url": "https://app.asana.com/-/oauth_token",
+ "scopes": ["default"],
+ "scope_options": [
+ { "value": "default", "label": "Full permissions (the Asana app must be registered with Full permissions)" }
+ ]
+ },
"notion": {
"auth_url": "https://api.notion.com/v1/oauth/authorize",
"token_url": "https://api.notion.com/v1/oauth/token",
diff --git a/frontend/src/lib/components/AuthSettings.svelte b/frontend/src/lib/components/AuthSettings.svelte
index d1dd5fa08b..801fc24499 100644
--- a/frontend/src/lib/components/AuthSettings.svelte
+++ b/frontend/src/lib/components/AuthSettings.svelte
@@ -98,7 +98,8 @@
'salesforce',
'outreach',
'notion',
- 'hubspot'
+ 'hubspot',
+ 'asana'
]
// Providers whose registry entry (`backend/oauth_connect.json`) carries a
// `sandbox` URL block. Each one gets a sibling `_sandbox` dropdown
From 141f93033a7f158cd0f210f1da70585b47cd8a97 Mon Sep 17 00:00:00 2001
From: hugocasa
Date: Fri, 16 Oct 2026 20:53:35 +0200
Subject: [PATCH 06/46] oauth: add shopify provider (managed client
credentials) (#11812)
Co-authored-by: Claude Opus 5.5
---
backend/oauth_connect.json | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/backend/oauth_connect.json b/backend/oauth_connect.json
index c52350486b..69d397bbb3 100644
--- a/backend/oauth_connect.json
+++ b/backend/oauth_connect.json
@@ -388,6 +388,20 @@
}
}
},
+ "shopify": {
+ "grant_types": ["client_credentials"],
+ "connect_config_template": {
+ "display_name": "Shopify",
+ "label": "Shopify store",
+ "placeholder": "your-store",
+ "help_url": "https://shopify.dev/docs/apps/build/authentication-authorization/access-tokens/client-credentials-grant",
+ "token_url": "https://{instance}.myshopify.com/admin/oauth/access_token",
+ "strip_suffix": ".myshopify.com",
+ "resource_mapping": {
+ "store_name": "{instance}"
+ }
+ }
+ },
"sage_intacct": {
"auth_url": "https://api.intacct.com/ia/api/v1/oauth2/authorize",
"token_url": "https://api.intacct.com/ia/api/v1/oauth2/token",
From 0b1935f251605926760565fb7693f345f1a56312 Mon Sep 17 00:00:00 2001
From: Alexander Petric
Date: Fri, 16 Oct 2026 14:55:27 -0400
Subject: [PATCH 07/46] fix: verify Bot Framework JWT on incoming Teams
activities (#11818)
* fix: verify Bot Framework JWT on incoming Teams activities
Co-Authored-By: Claude Opus 5.5 (1M context)
* chore: bump ee-repo-ref for Teams JWKS review fixes
Co-Authored-By: Claude Opus 5.5 (1M context)
* chore: update ee-repo-ref to bd6a7f4fd07578710b072dc3bd4d9e31d4561f8e
This commit updates the EE repository reference after PR #888 was merged in windmill-ee-private.
Previous ee-repo-ref: 66bed6266c5836dcae4e34c6dbe3f917c29c0500
New ee-repo-ref: bd6a7f4fd07578710b072dc3bd4d9e31d4561f8e
Automated by sync-ee-ref workflow.
---------
Co-authored-by: Claude Opus 5.5 (1M context)
Co-authored-by: windmill-internal-app[bot]
Co-authored-by: Ruben Fiszel
---
backend/ee-repo-ref.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt
index b27ab48e9f..4b08826046 100644
--- a/backend/ee-repo-ref.txt
+++ b/backend/ee-repo-ref.txt
@@ -1 +1 @@
-42134a29d7aacd651e6f10e648a50469f3918c61
+bd6a7f4fd07578710b072dc3bd4d9e31d4561f8e
From a70ec992f58239e2e6dfeed10d6ab43baf8bcc5d Mon Sep 17 00:00:00 2001
From: hugocasa
Date: Fri, 16 Oct 2026 20:58:43 +0200
Subject: [PATCH 08/46] oauth: add zendesk provider (#11813)
* oauth: add zendesk provider
Co-Authored-By: Claude Opus 5.5
* oauth: default zendesk auth-code scopes in the connect template
Templated providers build the instance client's connect_config from
connect_config_template, so the top-level scopes never reached the
authorization-code dialog.
Co-Authored-By: Claude Opus 5.5
Claude-Session: https://claude.ai/code/session_019pZhg9BJcsnU56GP4WzzrU
---------
Co-authored-by: Claude Opus 5.5
---
backend/oauth_connect.json | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/backend/oauth_connect.json b/backend/oauth_connect.json
index 69d397bbb3..5eef6ba5a7 100644
--- a/backend/oauth_connect.json
+++ b/backend/oauth_connect.json
@@ -615,5 +615,29 @@
"optional_scope": "tickets crm.objects.line_items.read crm.objects.line_items.write e-commerce crm.objects.quotes.read crm.objects.quotes.write crm.objects.leads.read crm.objects.leads.write crm.objects.custom.read crm.objects.custom.write crm.schemas.custom.read crm.lists.read crm.lists.write sales-email-read forms files content crm.objects.marketing_events.read marketing.campaigns.read communication_preferences.read_write automation automation.sequences.read automation.sequences.enrollments.write conversations.read conversations.write scheduler.meetings.meeting-link.read"
},
"req_body_auth": true
+ },
+ "zendesk": {
+ "grant_types": ["authorization_code", "client_credentials"],
+ "scopes": ["read", "write"],
+ "cc_scopes": ["read", "write"],
+ "scope_options": [
+ { "value": "read", "label": "Read tickets, users, organizations and Help Center content" },
+ { "value": "write", "label": "Create, update and delete tickets, users, organizations and Help Center content" }
+ ],
+ "req_body_auth": true,
+ "connect_config_template": {
+ "display_name": "Zendesk",
+ "label": "Zendesk subdomain",
+ "placeholder": "yourcompany (from yourcompany.zendesk.com)",
+ "help_url": "https://developer.zendesk.com/documentation/api-basics/authentication/oauth-migration/",
+ "auth_url": "https://{instance}.zendesk.com/oauth/authorizations/new",
+ "token_url": "https://{instance}.zendesk.com/oauth/tokens",
+ "scopes": ["read", "write"],
+ "req_body_auth": true,
+ "strip_suffix": ".zendesk.com",
+ "resource_mapping": {
+ "subdomain": "{instance}"
+ }
+ }
}
}
From e7088e7f4766cd662890cdf61f2b6a5a0fce06a8 Mon Sep 17 00:00:00 2001
From: hugocasa
Date: Fri, 16 Oct 2026 21:00:52 +0200
Subject: [PATCH 09/46] feat: one Entra app for the Teams bot and ms_teams
Graph connect (#11718)
* feat: one Entra app for the Teams bot and ms_teams Graph connect
Adds the ms_teams registry provider (Microsoft Graph) and moves the Teams OAuth setting
from key teams to ms_teams: a migration copies the entry and keeps teams for rolling
upgrades, and readers fall back to teams. The Graph connect URLs come from the setting's
tenant. The settings tile is no longer EE-locked; the bot stays enterprise-only.
Co-Authored-By: Claude Opus 5.5
* fix: read the Teams setting from ms_teams in the workspace and alert views
Only drop the legacy teams key when the Teams tile was switched off.
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref to c8e450396ff4210c3bc253b1fa83b913c1a24c45
This commit updates the EE repository reference after PR #881 was merged in windmill-ee-private.
Previous ee-repo-ref: 618749ff7884f7202b75b091bd4de4790fef202d
New ee-repo-ref: c8e450396ff4210c3bc253b1fa83b913c1a24c45
Automated by sync-ee-ref workflow.
---------
Co-authored-by: Claude Opus 5.5
Co-authored-by: windmill-internal-app[bot]
Co-authored-by: Ruben Fiszel
---
backend/ee-repo-ref.txt | 2 +-
...20261016120000_ms_teams_oauth_key.down.sql | 4 +
.../20261016120000_ms_teams_oauth_key.up.sql | 6 ++
backend/oauth_connect.json | 95 +++++++++++++++++++
backend/windmill-common/src/oauth2.rs | 9 ++
.../src/lib/components/AuthSettings.svelte | 8 +-
.../lib/components/InstanceSettings.svelte | 8 ++
.../src/lib/components/OAuthSetting.svelte | 15 +--
frontend/src/lib/components/icons/index.ts | 1 +
.../CriticalAlertChannels.svelte | 3 +-
.../(logged)/workspace_settings/+page.svelte | 3 +-
11 files changed, 142 insertions(+), 12 deletions(-)
create mode 100644 backend/migrations/20261016120000_ms_teams_oauth_key.down.sql
create mode 100644 backend/migrations/20261016120000_ms_teams_oauth_key.up.sql
diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt
index 4b08826046..029c272236 100644
--- a/backend/ee-repo-ref.txt
+++ b/backend/ee-repo-ref.txt
@@ -1 +1 @@
-bd6a7f4fd07578710b072dc3bd4d9e31d4561f8e
+c8e450396ff4210c3bc253b1fa83b913c1a24c45
diff --git a/backend/migrations/20261016120000_ms_teams_oauth_key.down.sql b/backend/migrations/20261016120000_ms_teams_oauth_key.down.sql
new file mode 100644
index 0000000000..77a3e3dc5f
--- /dev/null
+++ b/backend/migrations/20261016120000_ms_teams_oauth_key.down.sql
@@ -0,0 +1,4 @@
+-- Fold edits made under ms_teams back into `teams`, which the previous version reads.
+UPDATE global_settings
+SET value = (value - 'ms_teams') || jsonb_build_object('teams', value -> 'ms_teams')
+WHERE name = 'oauths' AND value ? 'ms_teams';
diff --git a/backend/migrations/20261016120000_ms_teams_oauth_key.up.sql b/backend/migrations/20261016120000_ms_teams_oauth_key.up.sql
new file mode 100644
index 0000000000..ab2462db8b
--- /dev/null
+++ b/backend/migrations/20261016120000_ms_teams_oauth_key.up.sql
@@ -0,0 +1,6 @@
+-- The Teams Entra app now lives under oauths.ms_teams (bot + Graph connect). Copy the old
+-- `teams` entry and keep it, so servers still on the previous version keep working during a
+-- rolling upgrade.
+UPDATE global_settings
+SET value = value || jsonb_build_object('ms_teams', value -> 'teams')
+WHERE name = 'oauths' AND value ? 'teams' AND NOT value ? 'ms_teams';
diff --git a/backend/oauth_connect.json b/backend/oauth_connect.json
index 5eef6ba5a7..611e3f7c17 100644
--- a/backend/oauth_connect.json
+++ b/backend/oauth_connect.json
@@ -500,6 +500,101 @@
}
}
},
+ "ms_teams": {
+ "req_body_auth": true,
+ "scopes": [
+ "offline_access",
+ "User.Read",
+ "Team.ReadBasic.All",
+ "Channel.ReadBasic.All",
+ "ChannelMessage.Send",
+ "Chat.ReadWrite",
+ "OnlineMeetings.ReadWrite"
+ ],
+ "scope_options": [
+ {
+ "value": "offline_access",
+ "label": "Stay connected (refresh token)"
+ },
+ {
+ "value": "User.Read",
+ "label": "Read your profile"
+ },
+ {
+ "value": "Team.ReadBasic.All",
+ "label": "List your teams"
+ },
+ {
+ "value": "Channel.ReadBasic.All",
+ "label": "List channels"
+ },
+ {
+ "value": "ChannelMessage.Send",
+ "label": "Post and reply in channels"
+ },
+ {
+ "value": "Chat.ReadWrite",
+ "label": "Read, create and send in your chats"
+ },
+ {
+ "value": "Chat.ReadBasic",
+ "label": "List your chats"
+ },
+ {
+ "value": "Chat.Read",
+ "label": "Read your chat messages"
+ },
+ {
+ "value": "Chat.Create",
+ "label": "Create chats"
+ },
+ {
+ "value": "ChatMessage.Send",
+ "label": "Send chat messages"
+ },
+ {
+ "value": "OnlineMeetings.ReadWrite",
+ "label": "Create and read online meetings"
+ },
+ {
+ "value": "ChannelMessage.Read.All",
+ "label": "Read channel messages (admin consent)"
+ },
+ {
+ "value": "ChannelMember.Read.All",
+ "label": "List channel members (admin consent)"
+ },
+ {
+ "value": "TeamMember.Read.All",
+ "label": "List team members (admin consent)"
+ },
+ {
+ "value": "Channel.Create",
+ "label": "Create channels (admin consent)"
+ },
+ {
+ "value": "Schedule.Read.All",
+ "label": "Read Shifts schedules (admin consent)"
+ }
+ ],
+ "connect_config_template": {
+ "label": "Microsoft Entra tenant",
+ "placeholder": "organizations, or your tenant id",
+ "help_url": "https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols#endpoints",
+ "auth_url": "https://login.microsoftonline.com/{instance}/oauth2/v2.0/authorize",
+ "token_url": "https://login.microsoftonline.com/{instance}/oauth2/v2.0/token",
+ "req_body_auth": true,
+ "scopes": [
+ "offline_access",
+ "User.Read",
+ "Team.ReadBasic.All",
+ "Channel.ReadBasic.All",
+ "ChannelMessage.Send",
+ "Chat.ReadWrite",
+ "OnlineMeetings.ReadWrite"
+ ]
+ }
+ },
"netsuite": {
"connect_config_template": {
"display_name": "NetSuite",
diff --git a/backend/windmill-common/src/oauth2.rs b/backend/windmill-common/src/oauth2.rs
index faa1f1b942..04a8a6f227 100644
--- a/backend/windmill-common/src/oauth2.rs
+++ b/backend/windmill-common/src/oauth2.rs
@@ -21,6 +21,15 @@ pub const GLOBAL_SLACK_BOT_TOKEN_PATH: &str = "f/slack_bot/global_bot_token";
pub const GLOBAL_TEAMS_BOT_TOKEN_PATH: &str = "f/teams_bot/global_bot_token";
pub const GLOBAL_TEAMS_API_TOKEN_PATH: &str = "f/teams_bot/global_api_token";
+
+/// Key under the `oauths` setting holding the Teams Entra app (id, secret, tenant). One app
+/// serves the Enterprise bot and Graph connect for the `ms_teams` resource type.
+pub const TEAMS_OAUTH_KEY: &str = "ms_teams";
+
+/// Pre-rename key for the same entry. The 20261016120000 migration copies it to `ms_teams`
+/// and keeps it so servers still on the old version work during a rolling upgrade.
+/// TODO: drop this fallback once every supported version reads `ms_teams`.
+pub const LEGACY_TEAMS_OAUTH_KEY: &str = "teams";
lazy_static::lazy_static! {
pub static ref REQUIRE_PREEXISTING_USER_FOR_OAUTH: AtomicBool = AtomicBool::new(std::env::var("REQUIRE_PREEXISTING_USER_FOR_OAUTH")
diff --git a/frontend/src/lib/components/AuthSettings.svelte b/frontend/src/lib/components/AuthSettings.svelte
index 801fc24499..cdf847e8fb 100644
--- a/frontend/src/lib/components/AuthSettings.svelte
+++ b/frontend/src/lib/components/AuthSettings.svelte
@@ -90,7 +90,6 @@
'visma',
'sage_intacct',
'spotify',
- 'teams',
'zoho',
'xero',
'apify',
@@ -121,6 +120,8 @@
const connectConfigTemplates: Record = Object.fromEntries(
Object.entries(oauthConnectRegistry)
.filter(([, cfg]) => cfg && typeof cfg === 'object' && 'connect_config_template' in cfg)
+ // ms_teams has the pinned Teams tile instead: its tenant field fills the template.
+ .filter(([name]) => name !== 'ms_teams')
.map(([name, cfg]) => [name, (cfg as any).connect_config_template])
)
const windmillBuiltinsTemplated = Object.keys(connectConfigTemplates)
@@ -491,12 +492,13 @@
-
+
{#each Object.keys(oauths) as k}
{#if oauths[k] && !(oauths[k] && 'login_config' in oauths[k])}
- {#if !['slack', 'teams'].includes(k) && oauths[k]}
+
+ {#if !['slack', 'ms_teams', 'teams'].includes(k) && oauths[k]}
{@const IconComponent = getOAuthProviderIcon(k) as any}
{@const headerLabel = k.endsWith('_sandbox')
? `${k.slice(0, -'_sandbox'.length)} (sandbox)`
diff --git a/frontend/src/lib/components/InstanceSettings.svelte b/frontend/src/lib/components/InstanceSettings.svelte
index a1a0f214d3..b417744365 100644
--- a/frontend/src/lib/components/InstanceSettings.svelte
+++ b/frontend/src/lib/components/InstanceSettings.svelte
@@ -307,6 +307,8 @@
const connectConfigTemplates: Record = Object.fromEntries(
Object.entries(oauthConnectRegistry)
.filter(([, cfg]) => cfg && typeof cfg === 'object' && 'connect_config_template' in cfg)
+ // ms_teams takes its tenant from the pinned Teams tile; the backend fills the URLs.
+ .filter(([name]) => name !== 'ms_teams')
.map(([name, cfg]) => [name, (cfg as any).connect_config_template])
)
@@ -326,6 +328,12 @@
// instance name + its registry template (substituting {instance} into the
// URLs). Replaces the old per-provider setup functions.
function setupTemplatedOauthUrls() {
+ // The backend falls back to the pre-rename `teams` key when `ms_teams` is absent, so
+ // turning the Teams tile off (ms_teams saved before, gone now) has to drop both.
+ // TODO: remove with the backend fallback.
+ if (oauths && initialOauths?.['ms_teams'] && !oauths['ms_teams'] && oauths['teams']) {
+ delete oauths['teams']
+ }
for (const [name, tmpl] of Object.entries(connectConfigTemplates)) {
if (!oauths?.[name]) continue
const key = tmpl.extra_params_key ?? 'instance'
diff --git a/frontend/src/lib/components/OAuthSetting.svelte b/frontend/src/lib/components/OAuthSetting.svelte
index 60f8e8ef5f..59cbb9247e 100644
--- a/frontend/src/lib/components/OAuthSetting.svelte
+++ b/frontend/src/lib/components/OAuthSetting.svelte
@@ -90,7 +90,7 @@
disabled={eeOnly && !$enterpriseLicense}
on:change={(e) => {
if (e.detail) {
- if (name === 'teams') {
+ if (name === 'ms_teams') {
value = { id: '', secret: '', tenant: '' }
} else {
value = { id: '', secret: '' }
@@ -106,7 +106,7 @@
{#if enabled}
- {#if name != 'slack' && name != 'teams'}
+ {#if name != 'slack' && name != 'ms_teams'}
Custom Name
- {#if name == 'microsoft' || name == 'teams'}
+ {#if name == 'microsoft' || name == 'ms_teams'}
Tenant Id
- {#if name === 'teams'}
+ {#if name === 'ms_teams'}
- {:else if name == 'teams'}
+ {:else if name == 'ms_teams'}
Follow this guide on
Windmill Docs to create a new Microsoft Teams App. Then paste Client ID, Tenant ID, and Client Secret
- here.
+ here. The same app serves the Teams bot (Enterprise Edition) and the Microsoft Teams
+ OAuth resource: to connect that resource, also add the redirect URI
+
BASE_URL/oauth/callback/ms_teams and the delegated Microsoft Graph
+ permissions you need to the app.
{/if}
diff --git a/frontend/src/lib/components/icons/index.ts b/frontend/src/lib/components/icons/index.ts
index 8cb8ce7bb3..c8f4cd8f38 100644
--- a/frontend/src/lib/components/icons/index.ts
+++ b/frontend/src/lib/components/icons/index.ts
@@ -452,6 +452,7 @@ export const APP_TO_ICON_COMPONENT = {
resend: ResendIcon,
pushover: PushoverIcon,
quickbooks: QuickbooksIcon,
+ ms_teams: MsTeamsIcon,
ms_teams_webhook: MsTeamsIcon,
teams: MsTeamsIcon,
ms_outlook: OutlookIcon,
diff --git a/frontend/src/lib/components/instanceSettings/CriticalAlertChannels.svelte b/frontend/src/lib/components/instanceSettings/CriticalAlertChannels.svelte
index 5b1289eefc..6df7dd51d6 100644
--- a/frontend/src/lib/components/instanceSettings/CriticalAlertChannels.svelte
+++ b/frontend/src/lib/components/instanceSettings/CriticalAlertChannels.svelte
@@ -42,7 +42,8 @@
)
}
- const isTeamsConnected = $derived(isTeamsOAuthConfigured(oauths?.teams))
+ // TODO: drop the pre-rename `teams` fallback with the backend one.
+ const isTeamsConnected = $derived(isTeamsOAuthConfigured(oauths?.ms_teams ?? oauths?.teams))
// Compute dynamic order based on channel presence
const slackOrder = $derived(slackChannels.length > 0 ? 1 : 4)
diff --git a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte
index 9ce48e63f8..58bb2b16e9 100644
--- a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte
+++ b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte
@@ -510,7 +510,8 @@
}
const isSlackOAuthEnabled = $derived(isSlackOAuthConfigured(oauths?.slack))
- const isTeamsOAuthEnabled = $derived(isTeamsOAuthConfigured(oauths?.teams))
+ // TODO: drop the pre-rename `teams` fallback with the backend one.
+ const isTeamsOAuthEnabled = $derived(isTeamsOAuthConfigured(oauths?.ms_teams ?? oauths?.teams))
async function editWorkspaceCommand(platform: 'slack' | 'teams'): Promise {
if (platform === 'slack') {
From de340eed6f5520414b59166f8dc16938f7ac6c36 Mon Sep 17 00:00:00 2001
From: Ruben Fiszel
Date: Fri, 16 Oct 2026 21:03:57 +0200
Subject: [PATCH 10/46] feat: route python S3 client settings through the S3
proxy (#11819)
* feat: route the python SDK's S3 client settings through the S3 proxy
Co-Authored-By: Claude Opus 5.5
* fix: drop the boto3 config key and expose the proxied bucket to polars
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* fix: proxy S3 settings only for server-signed tokens and keep tls verify
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref to cd3395013d8484cd3917cdb6ee7837b6ac91e577
This commit updates the EE repository reference after PR #889 was merged in windmill-ee-private.
Previous ee-repo-ref: e90873bba9dde1e899741d111137f94dde2e5ff8
New ee-repo-ref: cd3395013d8484cd3917cdb6ee7837b6ac91e577
Automated by sync-ee-ref workflow.
---------
Co-authored-by: Claude Opus 5.5
Co-authored-by: windmill-internal-app[bot]
---
backend/ee-repo-ref.txt | 2 +-
.../windmill-api-workspaces/src/workspaces.rs | 9 ++
backend/windmill-api/openapi.yaml | 25 ++++
backend/windmill-types/src/s3.rs | 6 +
cli/src/guidance/skills.gen.ts | 22 +++-
.../wmill/tests/test_s3_proxy_settings.py | 68 ++++++++++
python-client/wmill/wmill/client.py | 124 +++++++++++++++++-
python-client/wmill/wmill/s3_types.py | 2 +
system_prompts/auto-generated/prompts.ts | 22 +++-
system_prompts/auto-generated/script.md | 22 +++-
system_prompts/auto-generated/sdks/python.md | 22 +++-
.../skills/write-script-python3/SKILL.md | 22 +++-
12 files changed, 327 insertions(+), 19 deletions(-)
create mode 100644 python-client/wmill/tests/test_s3_proxy_settings.py
diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt
index 029c272236..6f07da341c 100644
--- a/backend/ee-repo-ref.txt
+++ b/backend/ee-repo-ref.txt
@@ -1 +1 @@
-c8e450396ff4210c3bc253b1fa83b913c1a24c45
+cd3395013d8484cd3917cdb6ee7837b6ac91e577
diff --git a/backend/windmill-api-workspaces/src/workspaces.rs b/backend/windmill-api-workspaces/src/workspaces.rs
index 002b11ed2b..d76f5c9cc2 100644
--- a/backend/windmill-api-workspaces/src/workspaces.rs
+++ b/backend/windmill-api-workspaces/src/workspaces.rs
@@ -2168,6 +2168,15 @@ async fn edit_large_file_storage_config(
windmill_types::s3::DEFAULT_STORAGE
)));
}
+ if lfs_config
+ .secondary_storage
+ .contains_key(windmill_types::s3::BUCKET_ADDRESSED_SEGMENT)
+ {
+ return Err(Error::BadRequest(format!(
+ "`{}` is reserved by the S3 proxy and cannot name a secondary storage",
+ windmill_types::s3::BUCKET_ADDRESSED_SEGMENT
+ )));
+ }
if !windmill_common::workspaces::filesystem_storage_allowed() {
let named = std::iter::once(("primary storage", &lfs_config.large_file_storage)).chain(
diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml
index 1fb5cb400e..81a4e3274a 100644
--- a/backend/windmill-api/openapi.yaml
+++ b/backend/windmill-api/openapi.yaml
@@ -25248,6 +25248,31 @@ paths:
schema:
$ref: "#/components/schemas/S3Resource"
+ /w/{workspace}/job_helpers/v2/s3_proxy_bucket:
+ get:
+ summary: Returns the bucket S3 clients name to reach a workspace storage
+ through the S3 proxy, or null when that storage is not S3
+ operationId: s3ProxyBucket
+ tags:
+ - helpers
+ parameters:
+ - $ref: "#/components/parameters/WorkspaceId"
+ - name: storage
+ in: query
+ schema:
+ type: string
+ responses:
+ "200":
+ description: The storage's bucket
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ bucket:
+ type: string
+ nullable: true
+
/w/{workspace}/job_helpers/test_connection:
get:
summary: Test connection to the workspace object storage
diff --git a/backend/windmill-types/src/s3.rs b/backend/windmill-types/src/s3.rs
index 3af4b7f99a..e6a219a370 100644
--- a/backend/windmill-types/src/s3.rs
+++ b/backend/windmill-types/src/s3.rs
@@ -9,6 +9,12 @@ use std::fmt;
/// it as the primary one.
pub const DEFAULT_STORAGE: &str = "_default_";
+/// The s3-proxy path segment under which a request names the storage's real bucket
+/// (`s3_proxy/_wm_bucket_/{storage}/{bucket}/{key}`), for S3 clients that address
+/// `s3:///`. Reserved like `DEFAULT_STORAGE`: a secondary storage of that name
+/// would be shadowed by the bucket-addressed routes.
+pub const BUCKET_ADDRESSED_SEGMENT: &str = "_wm_bucket_";
+
#[derive(Debug, Deserialize, Serialize, Clone)]
pub struct FilesystemSettings {
pub root_path: String,
diff --git a/cli/src/guidance/skills.gen.ts b/cli/src/guidance/skills.gen.ts
index bcef0d5d3e..d1cf9672a8 100644
--- a/cli/src/guidance/skills.gen.ts
+++ b/cli/src/guidance/skills.gen.ts
@@ -4731,15 +4731,31 @@ def get_flow_user_state(key: str) -> Any
def version()
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection from DuckDB
+# initiate an S3 connection from DuckDB.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: address it as \`\`s3:///\`\` with the
+# storage's own bucket, returned as \`\`s3_bucket\`\`. Pass the resource path to connect with
+# the storage's own credentials instead.
def get_duckdb_connection_settings(s3_resource_path: str = '') -> DuckDbConnectionSettings | None
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection from Polars
+# initiate an S3 connection from Polars.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: address it as \`\`s3:///\`\` with the
+# storage's own bucket, returned as \`\`s3_bucket\`\`. Pass the resource path to connect with
+# the storage's own credentials instead.
def get_polars_connection_settings(s3_resource_path: str = '') -> PolarsConnectionSettings
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection using boto3
+# initiate an S3 connection using boto3.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: pass the storage's own bucket as \`\`Bucket\`\`. The proxy
+# serves object reads, writes, deletes, listing and multipart uploads of that bucket only;
+# presigned URLs, other buckets and bucket-level APIs need the storage's own credentials,
+# which passing the resource path returns.
def get_boto3_connection_settings(s3_resource_path: str = '') -> Boto3ConnectionSettings
# Load a file from the workspace s3 bucket and returns its content as bytes.
diff --git a/python-client/wmill/tests/test_s3_proxy_settings.py b/python-client/wmill/tests/test_s3_proxy_settings.py
new file mode 100644
index 0000000000..52db4fc8a9
--- /dev/null
+++ b/python-client/wmill/tests/test_s3_proxy_settings.py
@@ -0,0 +1,68 @@
+"""The default S3 connection settings go through the S3 proxy only when the server can verify
+the token's SigV4 signature and serves the bucket-addressed routes; otherwise they keep the
+storage's own credentials."""
+
+import pytest
+
+from wmill.client import Windmill
+
+JOB_TOKEN = "jwt_header.payload.signature"
+
+
+class _Response:
+ def __init__(self, status_code, body):
+ self.status_code = status_code
+ self._body = body
+
+ def json(self):
+ return self._body
+
+
+def _client(token, status_code=200, body=None):
+ client = Windmill(base_url="https://wm.example", token=token, workspace="ws")
+ calls = []
+
+ def get(endpoint, raise_for_status=True, **kwargs):
+ calls.append(endpoint)
+ return _Response(status_code, body if body is not None else {"bucket": "data"})
+
+ def post(endpoint, raise_for_status=True, **kwargs):
+ calls.append(endpoint)
+ resource = {"endPoint": "s3.example", "useSSL": True, "region": "eu-west-1"}
+ return _Response(200, {**resource, "accessKey": "raw", "secretKey": "raw-secret"})
+
+ client.get = get
+ client.post = post
+ return client, calls
+
+
+def test_job_token_goes_through_the_proxy():
+ client, _ = _client(JOB_TOKEN)
+ settings = client.get_boto3_connection_settings()
+ assert settings["endpoint_url"] == "https://wm.example/api/w/ws/s3_proxy/_wm_bucket_/_default_"
+ assert settings["aws_access_key_id"] == "jwt_header.payload"
+ assert settings["aws_secret_access_key"] == "signature"
+ assert client.get_polars_connection_settings()["s3_bucket"] == "data"
+
+
+@pytest.mark.parametrize(
+ "token,status_code,body",
+ [
+ ("personaltokenwithoutdots", 200, None),
+ ("jwt_ext_header.payload.signature", 200, None),
+ (JOB_TOKEN, 404, None),
+ (JOB_TOKEN, 200, {"bucket": None}),
+ ],
+ ids=["personal token", "external jwt", "older server", "non-S3 storage"],
+)
+def test_falls_back_to_the_storage_credentials(token, status_code, body):
+ client, calls = _client(token, status_code, body)
+ settings = client.get_boto3_connection_settings()
+ assert settings["aws_access_key_id"] == "raw"
+ assert calls[-1].endswith("/job_helpers/v2/s3_resource_info")
+
+
+def test_explicit_resource_path_never_asks_for_the_proxy():
+ client, calls = _client(JOB_TOKEN)
+ client.get_boto3_connection_settings("u/admin/s3")
+ assert calls == ["/w/ws/job_helpers/v2/s3_resource_info"]
diff --git a/python-client/wmill/wmill/client.py b/python-client/wmill/wmill/client.py
index 824db9741f..f0d0134fa7 100644
--- a/python-client/wmill/wmill/client.py
+++ b/python-client/wmill/wmill/client.py
@@ -872,15 +872,75 @@ class Windmill:
"""
return self.get("version").text
+ def _s3_proxy_connection(self) -> dict | None:
+ """Where an S3 client reaches the workspace storage through Windmill's S3 proxy, so the
+ storage's permission rules apply and its credentials stay on the server.
+
+ None when the workspace storage is not S3, when the token is not one the server signs
+ itself (the proxy re-derives the SigV4 secret from a ``jwt_`` token's header and payload,
+ which an external ``jwt_ext_`` token's signature does not match), or when the server
+ predates the proxy's bucket-addressed routes: the caller then connects with the
+ storage's own credentials.
+ """
+ if (
+ not self.token
+ or not self.token.startswith("jwt_")
+ or self.token.startswith(("jwt_ext_", "jwt_agent_"))
+ ):
+ return None
+ resp = self.get(
+ f"/w/{self.workspace}/job_helpers/v2/s3_proxy_bucket",
+ raise_for_status=False,
+ )
+ if resp.status_code != 200:
+ return None
+ bucket = resp.json().get("bucket")
+ if bucket is None:
+ return None
+ access_key, secret_key = self.token.rsplit(".", 1)
+ return {
+ "endpoint_url": f"{self.base_url}/w/{self.workspace}/s3_proxy/_wm_bucket_/_default_",
+ "use_ssl": self.base_url.startswith("https://"),
+ "access_key": access_key,
+ "secret_key": secret_key,
+ # The proxy checks the signature with whatever region the client signed for.
+ "region": "us-east-1",
+ "bucket": bucket,
+ }
+
def get_duckdb_connection_settings(
self,
s3_resource_path: str = "",
) -> DuckDbConnectionSettings | None:
"""
Convenient helpers that takes an S3 resource as input and returns the settings necessary to
- initiate an S3 connection from DuckDB
+ initiate an S3 connection from DuckDB.
+
+ Without a resource path, the connection goes to the workspace storage through Windmill's
+ S3 proxy when that storage is S3: address it as ``s3:///`` with the
+ storage's own bucket, returned as ``s3_bucket``. Pass the resource path to connect with
+ the storage's own credentials instead.
"""
s3_resource_path = parse_resource_syntax(s3_resource_path) or s3_resource_path
+ proxy = self._s3_proxy_connection() if s3_resource_path == "" else None
+ if proxy is not None:
+ endpoint = proxy["endpoint_url"].split("://", 1)[1]
+ settings = (
+ "SET home_directory='./';\n"
+ "INSTALL 'httpfs';\n"
+ "SET s3_url_style='path';\n"
+ f"SET s3_region='{proxy['region']}';\n"
+ f"SET s3_endpoint='{endpoint}';\n"
+ f"SET s3_access_key_id='{proxy['access_key']}';\n"
+ f"SET s3_secret_access_key='{proxy['secret_key']}';\n"
+ )
+ if not proxy["use_ssl"]:
+ settings += "SET s3_use_ssl=0;\n"
+ if self.verify is False:
+ settings += "SET enable_server_cert_verification=false;\n"
+ return DuckDbConnectionSettings(
+ {"connection_settings_str": settings, "s3_bucket": proxy["bucket"]}
+ )
try:
raw_obj = self.post(
f"/w/{self.workspace}/job_helpers/v2/duckdb_connection_settings",
@@ -888,6 +948,7 @@ class Windmill:
if s3_resource_path == ""
else {"s3_resource_path": s3_resource_path},
).json()
+ raw_obj.setdefault("s3_bucket", None)
return DuckDbConnectionSettings(raw_obj)
except JSONDecodeError as e:
raise Exception(
@@ -900,9 +961,44 @@ class Windmill:
) -> PolarsConnectionSettings:
"""
Convenient helpers that takes an S3 resource as input and returns the settings necessary to
- initiate an S3 connection from Polars
+ initiate an S3 connection from Polars.
+
+ Without a resource path, the connection goes to the workspace storage through Windmill's
+ S3 proxy when that storage is S3: address it as ``s3:///`` with the
+ storage's own bucket, returned as ``s3_bucket``. Pass the resource path to connect with
+ the storage's own credentials instead.
"""
s3_resource_path = parse_resource_syntax(s3_resource_path) or s3_resource_path
+ proxy = self._s3_proxy_connection() if s3_resource_path == "" else None
+ if proxy is not None:
+ client_kwargs = {"region_name": proxy["region"]}
+ storage_options = {
+ "aws_endpoint_url": proxy["endpoint_url"],
+ "aws_access_key_id": proxy["access_key"],
+ "aws_secret_access_key": proxy["secret_key"],
+ "aws_region": proxy["region"],
+ "aws_allow_http": str(not proxy["use_ssl"]).lower(),
+ "aws_virtual_hosted_style_request": "false",
+ }
+ if self.verify is not True:
+ client_kwargs["verify"] = self.verify
+ if self.verify is False:
+ storage_options["allow_invalid_certificates"] = "true"
+ return PolarsConnectionSettings(
+ {
+ "s3fs_args": {
+ "endpoint_url": proxy["endpoint_url"],
+ "key": proxy["access_key"],
+ "secret": proxy["secret_key"],
+ "use_ssl": proxy["use_ssl"],
+ "cache_regions": False,
+ "client_kwargs": client_kwargs,
+ "config_kwargs": {"s3": {"addressing_style": "path"}},
+ },
+ "storage_options": storage_options,
+ "s3_bucket": proxy["bucket"],
+ }
+ )
try:
raw_obj = self.post(
f"/w/{self.workspace}/job_helpers/v2/polars_connection_settings",
@@ -910,6 +1006,7 @@ class Windmill:
if s3_resource_path == ""
else {"s3_resource_path": s3_resource_path},
).json()
+ raw_obj.setdefault("s3_bucket", None)
return PolarsConnectionSettings(raw_obj)
except JSONDecodeError as e:
raise Exception(
@@ -922,9 +1019,30 @@ class Windmill:
) -> Boto3ConnectionSettings:
"""
Convenient helpers that takes an S3 resource as input and returns the settings necessary to
- initiate an S3 connection using boto3
+ initiate an S3 connection using boto3.
+
+ Without a resource path, the connection goes to the workspace storage through Windmill's
+ S3 proxy when that storage is S3: pass the storage's own bucket as ``Bucket``. The proxy
+ serves object reads, writes, deletes, listing and multipart uploads of that bucket only;
+ presigned URLs, other buckets and bucket-level APIs need the storage's own credentials,
+ which passing the resource path returns.
"""
s3_resource_path = parse_resource_syntax(s3_resource_path) or s3_resource_path
+ proxy = self._s3_proxy_connection() if s3_resource_path == "" else None
+ if proxy is not None:
+ # botocore addresses a custom endpoint path-style, which the proxy's routes need.
+ settings = Boto3ConnectionSettings(
+ {
+ "endpoint_url": proxy["endpoint_url"],
+ "region_name": proxy["region"],
+ "use_ssl": proxy["use_ssl"],
+ "aws_access_key_id": proxy["access_key"],
+ "aws_secret_access_key": proxy["secret_key"],
+ }
+ )
+ if self.verify is not True:
+ settings["verify"] = self.verify
+ return settings
try:
s3_resource = self.post(
f"/w/{self.workspace}/job_helpers/v2/s3_resource_info",
diff --git a/python-client/wmill/wmill/s3_types.py b/python-client/wmill/wmill/s3_types.py
index 1b43b65972..058eab68fe 100644
--- a/python-client/wmill/wmill/s3_types.py
+++ b/python-client/wmill/wmill/s3_types.py
@@ -57,6 +57,7 @@ class PolarsConnectionSettings(dict):
"""Polars S3 connection settings containing S3FS args and storage options."""
s3fs_args: S3FsArgs
storage_options: StorageOptions
+ s3_bucket: Optional[str]
def __getattr__(self, attr):
return _item_as_attr(self, attr)
@@ -78,6 +79,7 @@ class Boto3ConnectionSettings(dict):
class DuckDbConnectionSettings(dict):
"""DuckDB S3 connection settings as a configuration string."""
connection_settings_str: str
+ s3_bucket: Optional[str]
def __getattr__(self, attr):
return _item_as_attr(self, attr)
diff --git a/system_prompts/auto-generated/prompts.ts b/system_prompts/auto-generated/prompts.ts
index 59b00c2821..417f7bbe7e 100644
--- a/system_prompts/auto-generated/prompts.ts
+++ b/system_prompts/auto-generated/prompts.ts
@@ -2623,15 +2623,31 @@ def get_flow_user_state(key: str) -> Any
def version()
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection from DuckDB
+# initiate an S3 connection from DuckDB.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: address it as \`\`s3:///\`\` with the
+# storage's own bucket, returned as \`\`s3_bucket\`\`. Pass the resource path to connect with
+# the storage's own credentials instead.
def get_duckdb_connection_settings(s3_resource_path: str = '') -> DuckDbConnectionSettings | None
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection from Polars
+# initiate an S3 connection from Polars.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: address it as \`\`s3:///\`\` with the
+# storage's own bucket, returned as \`\`s3_bucket\`\`. Pass the resource path to connect with
+# the storage's own credentials instead.
def get_polars_connection_settings(s3_resource_path: str = '') -> PolarsConnectionSettings
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection using boto3
+# initiate an S3 connection using boto3.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: pass the storage's own bucket as \`\`Bucket\`\`. The proxy
+# serves object reads, writes, deletes, listing and multipart uploads of that bucket only;
+# presigned URLs, other buckets and bucket-level APIs need the storage's own credentials,
+# which passing the resource path returns.
def get_boto3_connection_settings(s3_resource_path: str = '') -> Boto3ConnectionSettings
# Load a file from the workspace s3 bucket and returns its content as bytes.
diff --git a/system_prompts/auto-generated/script.md b/system_prompts/auto-generated/script.md
index 8271a528b4..096cabab93 100644
--- a/system_prompts/auto-generated/script.md
+++ b/system_prompts/auto-generated/script.md
@@ -2370,15 +2370,31 @@ def get_flow_user_state(key: str) -> Any
def version()
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection from DuckDB
+# initiate an S3 connection from DuckDB.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: address it as ``s3:///`` with the
+# storage's own bucket, returned as ``s3_bucket``. Pass the resource path to connect with
+# the storage's own credentials instead.
def get_duckdb_connection_settings(s3_resource_path: str = '') -> DuckDbConnectionSettings | None
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection from Polars
+# initiate an S3 connection from Polars.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: address it as ``s3:///`` with the
+# storage's own bucket, returned as ``s3_bucket``. Pass the resource path to connect with
+# the storage's own credentials instead.
def get_polars_connection_settings(s3_resource_path: str = '') -> PolarsConnectionSettings
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection using boto3
+# initiate an S3 connection using boto3.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: pass the storage's own bucket as ``Bucket``. The proxy
+# serves object reads, writes, deletes, listing and multipart uploads of that bucket only;
+# presigned URLs, other buckets and bucket-level APIs need the storage's own credentials,
+# which passing the resource path returns.
def get_boto3_connection_settings(s3_resource_path: str = '') -> Boto3ConnectionSettings
# Load a file from the workspace s3 bucket and returns its content as bytes.
diff --git a/system_prompts/auto-generated/sdks/python.md b/system_prompts/auto-generated/sdks/python.md
index 1964c88685..1a772ae6ee 100644
--- a/system_prompts/auto-generated/sdks/python.md
+++ b/system_prompts/auto-generated/sdks/python.md
@@ -265,15 +265,31 @@ def get_flow_user_state(key: str) -> Any
def version()
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection from DuckDB
+# initiate an S3 connection from DuckDB.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: address it as ``s3:///`` with the
+# storage's own bucket, returned as ``s3_bucket``. Pass the resource path to connect with
+# the storage's own credentials instead.
def get_duckdb_connection_settings(s3_resource_path: str = '') -> DuckDbConnectionSettings | None
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection from Polars
+# initiate an S3 connection from Polars.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: address it as ``s3:///`` with the
+# storage's own bucket, returned as ``s3_bucket``. Pass the resource path to connect with
+# the storage's own credentials instead.
def get_polars_connection_settings(s3_resource_path: str = '') -> PolarsConnectionSettings
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection using boto3
+# initiate an S3 connection using boto3.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: pass the storage's own bucket as ``Bucket``. The proxy
+# serves object reads, writes, deletes, listing and multipart uploads of that bucket only;
+# presigned URLs, other buckets and bucket-level APIs need the storage's own credentials,
+# which passing the resource path returns.
def get_boto3_connection_settings(s3_resource_path: str = '') -> Boto3ConnectionSettings
# Load a file from the workspace s3 bucket and returns its content as bytes.
diff --git a/system_prompts/auto-generated/skills/write-script-python3/SKILL.md b/system_prompts/auto-generated/skills/write-script-python3/SKILL.md
index c12c44e4f0..3afa72e5a9 100644
--- a/system_prompts/auto-generated/skills/write-script-python3/SKILL.md
+++ b/system_prompts/auto-generated/skills/write-script-python3/SKILL.md
@@ -476,15 +476,31 @@ def get_flow_user_state(key: str) -> Any
def version()
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection from DuckDB
+# initiate an S3 connection from DuckDB.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: address it as ``s3:///`` with the
+# storage's own bucket, returned as ``s3_bucket``. Pass the resource path to connect with
+# the storage's own credentials instead.
def get_duckdb_connection_settings(s3_resource_path: str = '') -> DuckDbConnectionSettings | None
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection from Polars
+# initiate an S3 connection from Polars.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: address it as ``s3:///`` with the
+# storage's own bucket, returned as ``s3_bucket``. Pass the resource path to connect with
+# the storage's own credentials instead.
def get_polars_connection_settings(s3_resource_path: str = '') -> PolarsConnectionSettings
# Convenient helpers that takes an S3 resource as input and returns the settings necessary to
-# initiate an S3 connection using boto3
+# initiate an S3 connection using boto3.
+#
+# Without a resource path, the connection goes to the workspace storage through Windmill's
+# S3 proxy when that storage is S3: pass the storage's own bucket as ``Bucket``. The proxy
+# serves object reads, writes, deletes, listing and multipart uploads of that bucket only;
+# presigned URLs, other buckets and bucket-level APIs need the storage's own credentials,
+# which passing the resource path returns.
def get_boto3_connection_settings(s3_resource_path: str = '') -> Boto3ConnectionSettings
# Load a file from the workspace s3 bucket and returns its content as bytes.
From e0138a7374a4c87291b10e3699de7c3fd7232f12 Mon Sep 17 00:00:00 2001
From: Ruben Fiszel
Date: Fri, 16 Oct 2026 21:57:37 +0200
Subject: [PATCH 11/46] test: find the mcp preprocessor probe tool by its new
name (#11833)
Co-authored-by: Claude Opus 5.5
---
.../tests/mcp_preprocessor_headers.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/windmill-api-integration-tests/tests/mcp_preprocessor_headers.rs b/backend/windmill-api-integration-tests/tests/mcp_preprocessor_headers.rs
index 25942e845c..7ae631b5dc 100644
--- a/backend/windmill-api-integration-tests/tests/mcp_preprocessor_headers.rs
+++ b/backend/windmill-api-integration-tests/tests/mcp_preprocessor_headers.rs
@@ -127,7 +127,7 @@ async fn test_mcp_preprocessor_receives_the_callers_headers(
.and_then(|list| {
list.iter()
.filter_map(|t| t["name"].as_str())
- .find(|n| n.contains("mcp__hdr__probe"))
+ .find(|n| *n == "mcp_hdr_probe")
})
.ok_or_else(|| anyhow::anyhow!("the deployed script was not listed as a tool: {tools}"))?
.to_string();
From 9375805fdf7501347a4dfb37e58f1be7fa2c5658 Mon Sep 17 00:00:00 2001
From: Ruben Fiszel
Date: Fri, 16 Oct 2026 22:21:38 +0200
Subject: [PATCH 12/46] feat: isolate fork object storage under a per-fork
prefix (#11829)
* feat: route the python SDK's S3 client settings through the S3 proxy
Co-Authored-By: Claude Opus 5.5
* fix: drop the boto3 config key and expose the proxied bucket to polars
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* fix: proxy S3 settings only for server-signed tokens and keep tls verify
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* feat: isolate fork object storage under a per-fork prefix with read-through
Co-Authored-By: Claude Opus 5.5
* fix: guard fork storage isolation against traversal, shared lakes and orphaning
Co-Authored-By: Claude Opus 5.5
* fix: serialize fork purges with same-id creation and guard shared middle forks
Co-Authored-By: Claude Opus 5.5
* fix: drop fork storage mappings on every replica and lock fork deletion against child creation
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref to 455681e55eb7cdfcfdb7cd79cbae75b333e07943
This commit updates the EE repository reference after PR #893 was merged in windmill-ee-private.
Previous ee-repo-ref: 93f26e3cf816e4eb97b7d4dbbb5fc97fdf9821af
New ee-repo-ref: 455681e55eb7cdfcfdb7cd79cbae75b333e07943
Automated by sync-ee-ref workflow.
---------
Co-authored-by: Claude Opus 5.5
Co-authored-by: windmill-internal-app[bot]
---
AGENTS.md | 3 +
...b2d57a07e2047a704d9a7d8eab3416ff1d9d5.json | 23 +
...a49857237cd57134dbc467b53601c1ec942d2.json | 22 +
...2224ab49659213638230be7f9acbf82d8e1b0.json | 28 ++
...6309b24b658cac3c99d8d0bdb84cdd00c413a.json | 28 ++
...72ae5b7858a087cb4eb5869573fff69c1c6b9.json | 35 ++
...f6db33d63ff7bf55329452dc84dae2560c23e.json | 22 +
...415fe710c5fbbc7380c5088c7069fa2caf990.json | 15 +
...92249e32b1184a146463094289c604bbd0332.json | 16 +
backend/ee-repo-ref.txt | 2 +-
...1016160346_fork_storage_namespace.down.sql | 1 +
...261016160346_fork_storage_namespace.up.sql | 24 ++
.../windmill-api-workspaces/src/workspaces.rs | 159 +++++++
.../src/workspaces_extra.rs | 156 +++++++
backend/windmill-api/openapi.yaml | 5 +
backend/windmill-api/src/apps.rs | 59 ++-
backend/windmill-api/src/args.rs | 4 +-
.../windmill-api/src/triggers/http/handler.rs | 13 +-
backend/windmill-common/src/fork_storage.rs | 394 ++++++++++++++++++
backend/windmill-common/src/lib.rs | 1 +
.../windmill-object-store/src/fork_store.rs | 260 ++++++++++++
backend/windmill-object-store/src/lib.rs | 2 +
backend/windmill-queue/src/tags.rs | 6 +-
docs/fork-object-storage.md | 56 +++
.../CreateWorkspaceInner.svelte | 4 +
.../ForkStorageSection.svelte | 71 ++++
26 files changed, 1391 insertions(+), 18 deletions(-)
create mode 100644 backend/.sqlx/query-45b73345f2009122142f3410736b2d57a07e2047a704d9a7d8eab3416ff1d9d5.json
create mode 100644 backend/.sqlx/query-4640ac69b297127cd0f5c369fa4a49857237cd57134dbc467b53601c1ec942d2.json
create mode 100644 backend/.sqlx/query-7796f40e349bf0771cceff037fa2224ab49659213638230be7f9acbf82d8e1b0.json
create mode 100644 backend/.sqlx/query-98aebe8ead7d3f6e84ad88e6d006309b24b658cac3c99d8d0bdb84cdd00c413a.json
create mode 100644 backend/.sqlx/query-a37dec4e86f537880d45da01ce872ae5b7858a087cb4eb5869573fff69c1c6b9.json
create mode 100644 backend/.sqlx/query-bdc39bdd63c38217834a0c0d858f6db33d63ff7bf55329452dc84dae2560c23e.json
create mode 100644 backend/.sqlx/query-c37f34ea3603af1496825ec54a3415fe710c5fbbc7380c5088c7069fa2caf990.json
create mode 100644 backend/.sqlx/query-eb6dc43ac53a853eab20ef804a092249e32b1184a146463094289c604bbd0332.json
create mode 100644 backend/migrations/20261016160346_fork_storage_namespace.down.sql
create mode 100644 backend/migrations/20261016160346_fork_storage_namespace.up.sql
create mode 100644 backend/windmill-common/src/fork_storage.rs
create mode 100644 backend/windmill-object-store/src/fork_store.rs
create mode 100644 docs/fork-object-storage.md
create mode 100644 frontend/src/lib/components/workspaceSettings/ForkStorageSection.svelte
diff --git a/AGENTS.md b/AGENTS.md
index 8c30fed2f9..6516e0e095 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -33,6 +33,9 @@ Open-source platform for internal tools, workflows, API integrations, background
administers behind `external_instance` data tables and Ducklake catalogs: its invariants (one
lifecycle lock, managed-object markers, the setup gate, per-cluster roles, fork copy ownership)
and how to run one locally
+- **Fork object storage**: `docs/fork-object-storage.md` — how a fork's object keys map under
+ `__wm_forks//` with read-through to its ancestors, where the mapping must be applied,
+ and why `__wm_forks/` is reachable only through a workspace's own chain
- **Data table viewer roles**: `docs/datatable-viewer-roles.md`, on what a connection naming no
role holds: the default role as a floor, whose roles are added (the job's own, or its viewer's
for an inline app runnable that opts in), why an admin's roles are not added, the per-role-set
diff --git a/backend/.sqlx/query-45b73345f2009122142f3410736b2d57a07e2047a704d9a7d8eab3416ff1d9d5.json b/backend/.sqlx/query-45b73345f2009122142f3410736b2d57a07e2047a704d9a7d8eab3416ff1d9d5.json
new file mode 100644
index 0000000000..2c22ae1d7e
--- /dev/null
+++ b/backend/.sqlx/query-45b73345f2009122142f3410736b2d57a07e2047a704d9a7d8eab3416ff1d9d5.json
@@ -0,0 +1,23 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "SELECT EXISTS (SELECT 1 FROM fork_storage_namespace WHERE workspace_id = ANY($1))\n AND EXISTS (SELECT 1 FROM workspace WHERE parent_workspace_id = $2)",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "?column?",
+ "type_info": "Bool"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "TextArray",
+ "Text"
+ ]
+ },
+ "nullable": [
+ null
+ ]
+ },
+ "hash": "45b73345f2009122142f3410736b2d57a07e2047a704d9a7d8eab3416ff1d9d5"
+}
diff --git a/backend/.sqlx/query-4640ac69b297127cd0f5c369fa4a49857237cd57134dbc467b53601c1ec942d2.json b/backend/.sqlx/query-4640ac69b297127cd0f5c369fa4a49857237cd57134dbc467b53601c1ec942d2.json
new file mode 100644
index 0000000000..5ad778d3c0
--- /dev/null
+++ b/backend/.sqlx/query-4640ac69b297127cd0f5c369fa4a49857237cd57134dbc467b53601c1ec942d2.json
@@ -0,0 +1,22 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "SELECT EXISTS (SELECT 1 FROM fork_storage_namespace WHERE workspace_id = $1)",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "exists",
+ "type_info": "Bool"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Text"
+ ]
+ },
+ "nullable": [
+ null
+ ]
+ },
+ "hash": "4640ac69b297127cd0f5c369fa4a49857237cd57134dbc467b53601c1ec942d2"
+}
diff --git a/backend/.sqlx/query-7796f40e349bf0771cceff037fa2224ab49659213638230be7f9acbf82d8e1b0.json b/backend/.sqlx/query-7796f40e349bf0771cceff037fa2224ab49659213638230be7f9acbf82d8e1b0.json
new file mode 100644
index 0000000000..cf9dc458c2
--- /dev/null
+++ b/backend/.sqlx/query-7796f40e349bf0771cceff037fa2224ab49659213638230be7f9acbf82d8e1b0.json
@@ -0,0 +1,28 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "SELECT storage, storage_ref FROM fork_storage_namespace WHERE workspace_id = $1",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "storage",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 1,
+ "name": "storage_ref",
+ "type_info": "Text"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Text"
+ ]
+ },
+ "nullable": [
+ false,
+ false
+ ]
+ },
+ "hash": "7796f40e349bf0771cceff037fa2224ab49659213638230be7f9acbf82d8e1b0"
+}
diff --git a/backend/.sqlx/query-98aebe8ead7d3f6e84ad88e6d006309b24b658cac3c99d8d0bdb84cdd00c413a.json b/backend/.sqlx/query-98aebe8ead7d3f6e84ad88e6d006309b24b658cac3c99d8d0bdb84cdd00c413a.json
new file mode 100644
index 0000000000..f81b66ccb0
--- /dev/null
+++ b/backend/.sqlx/query-98aebe8ead7d3f6e84ad88e6d006309b24b658cac3c99d8d0bdb84cdd00c413a.json
@@ -0,0 +1,28 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "SELECT large_file_storage, ducklake FROM workspace_settings WHERE workspace_id = $1",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "large_file_storage",
+ "type_info": "Jsonb"
+ },
+ {
+ "ordinal": 1,
+ "name": "ducklake",
+ "type_info": "Jsonb"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Text"
+ ]
+ },
+ "nullable": [
+ true,
+ true
+ ]
+ },
+ "hash": "98aebe8ead7d3f6e84ad88e6d006309b24b658cac3c99d8d0bdb84cdd00c413a"
+}
diff --git a/backend/.sqlx/query-a37dec4e86f537880d45da01ce872ae5b7858a087cb4eb5869573fff69c1c6b9.json b/backend/.sqlx/query-a37dec4e86f537880d45da01ce872ae5b7858a087cb4eb5869573fff69c1c6b9.json
new file mode 100644
index 0000000000..7733ad9fa5
--- /dev/null
+++ b/backend/.sqlx/query-a37dec4e86f537880d45da01ce872ae5b7858a087cb4eb5869573fff69c1c6b9.json
@@ -0,0 +1,35 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "SELECT c.id AS \"id!\", ws.large_file_storage,\n EXISTS (SELECT 1 FROM fork_storage_namespace f\n WHERE f.workspace_id = c.id AND f.storage = $2) AS \"isolated!\"\n FROM unnest($1::text[]) WITH ORDINALITY AS c(id, ord)\n LEFT JOIN workspace_settings ws ON ws.workspace_id = c.id\n ORDER BY c.ord",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "id!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 1,
+ "name": "large_file_storage",
+ "type_info": "Jsonb"
+ },
+ {
+ "ordinal": 2,
+ "name": "isolated!",
+ "type_info": "Bool"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "TextArray",
+ "Text"
+ ]
+ },
+ "nullable": [
+ null,
+ true,
+ null
+ ]
+ },
+ "hash": "a37dec4e86f537880d45da01ce872ae5b7858a087cb4eb5869573fff69c1c6b9"
+}
diff --git a/backend/.sqlx/query-bdc39bdd63c38217834a0c0d858f6db33d63ff7bf55329452dc84dae2560c23e.json b/backend/.sqlx/query-bdc39bdd63c38217834a0c0d858f6db33d63ff7bf55329452dc84dae2560c23e.json
new file mode 100644
index 0000000000..cb595ad5b3
--- /dev/null
+++ b/backend/.sqlx/query-bdc39bdd63c38217834a0c0d858f6db33d63ff7bf55329452dc84dae2560c23e.json
@@ -0,0 +1,22 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "SELECT EXISTS (SELECT 1 FROM workspace WHERE id = $1)",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "exists",
+ "type_info": "Bool"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Text"
+ ]
+ },
+ "nullable": [
+ null
+ ]
+ },
+ "hash": "bdc39bdd63c38217834a0c0d858f6db33d63ff7bf55329452dc84dae2560c23e"
+}
diff --git a/backend/.sqlx/query-c37f34ea3603af1496825ec54a3415fe710c5fbbc7380c5088c7069fa2caf990.json b/backend/.sqlx/query-c37f34ea3603af1496825ec54a3415fe710c5fbbc7380c5088c7069fa2caf990.json
new file mode 100644
index 0000000000..bb82fbf97e
--- /dev/null
+++ b/backend/.sqlx/query-c37f34ea3603af1496825ec54a3415fe710c5fbbc7380c5088c7069fa2caf990.json
@@ -0,0 +1,15 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "DELETE FROM fork_storage_namespace WHERE workspace_id = $1 AND storage = $2",
+ "describe": {
+ "columns": [],
+ "parameters": {
+ "Left": [
+ "Text",
+ "Text"
+ ]
+ },
+ "nullable": []
+ },
+ "hash": "c37f34ea3603af1496825ec54a3415fe710c5fbbc7380c5088c7069fa2caf990"
+}
diff --git a/backend/.sqlx/query-eb6dc43ac53a853eab20ef804a092249e32b1184a146463094289c604bbd0332.json b/backend/.sqlx/query-eb6dc43ac53a853eab20ef804a092249e32b1184a146463094289c604bbd0332.json
new file mode 100644
index 0000000000..b69c453bef
--- /dev/null
+++ b/backend/.sqlx/query-eb6dc43ac53a853eab20ef804a092249e32b1184a146463094289c604bbd0332.json
@@ -0,0 +1,16 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "INSERT INTO fork_storage_namespace (workspace_id, storage, storage_ref)\n VALUES ($1, $2, $3)",
+ "describe": {
+ "columns": [],
+ "parameters": {
+ "Left": [
+ "Varchar",
+ "Text",
+ "Text"
+ ]
+ },
+ "nullable": []
+ },
+ "hash": "eb6dc43ac53a853eab20ef804a092249e32b1184a146463094289c604bbd0332"
+}
diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt
index 6f07da341c..f6aca2078d 100644
--- a/backend/ee-repo-ref.txt
+++ b/backend/ee-repo-ref.txt
@@ -1 +1 @@
-cd3395013d8484cd3917cdb6ee7837b6ac91e577
+455681e55eb7cdfcfdb7cd79cbae75b333e07943
diff --git a/backend/migrations/20261016160346_fork_storage_namespace.down.sql b/backend/migrations/20261016160346_fork_storage_namespace.down.sql
new file mode 100644
index 0000000000..47c6b58649
--- /dev/null
+++ b/backend/migrations/20261016160346_fork_storage_namespace.down.sql
@@ -0,0 +1 @@
+DROP TABLE IF EXISTS fork_storage_namespace;
diff --git a/backend/migrations/20261016160346_fork_storage_namespace.up.sql b/backend/migrations/20261016160346_fork_storage_namespace.up.sql
new file mode 100644
index 0000000000..247a9e2da9
--- /dev/null
+++ b/backend/migrations/20261016160346_fork_storage_namespace.up.sql
@@ -0,0 +1,24 @@
+-- Workspace storages a fork/dev workspace isolates from its parent: its writes land under
+-- `__wm_forks//` of that storage, and its reads fall back to the parent's keys.
+-- One row per (fork, storage) chosen isolated at fork creation; forks created before this
+-- table have none and keep sharing the parent's keys.
+--
+-- Deliberately NO foreign key to workspace(id), like fork_ducklake_namespace: rows are also the
+-- cleanup ledger and must OUTLIVE the workspace row when deleting the prefix fails after the
+-- delete commits. A recreated same-id fork would otherwise read the deleted fork's objects
+-- under the deterministic prefix; fork creation retries leftover rows and refuses to proceed
+-- while they cannot be cleaned.
+CREATE TABLE fork_storage_namespace (
+ workspace_id VARCHAR(50) NOT NULL,
+ -- '' = the default storage, else a `secondary_storage` name.
+ storage TEXT NOT NULL,
+ -- The storage's resolved identity at fork creation (`:`), so cleanup deletes the prefix from the storage the fork wrote to even if the
+ -- name is repointed later.
+ storage_ref TEXT NOT NULL,
+ created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
+ PRIMARY KEY (workspace_id, storage)
+);
+
+GRANT ALL ON fork_storage_namespace TO windmill_user;
+GRANT ALL ON fork_storage_namespace TO windmill_admin;
diff --git a/backend/windmill-api-workspaces/src/workspaces.rs b/backend/windmill-api-workspaces/src/workspaces.rs
index d76f5c9cc2..17db877834 100644
--- a/backend/windmill-api-workspaces/src/workspaces.rs
+++ b/backend/windmill-api-workspaces/src/workspaces.rs
@@ -515,6 +515,11 @@ struct CreateWorkspaceFork {
/// fork namespace + read-defer.
#[serde(default)]
shared_ducklakes: Vec,
+ /// Workspace storages the fork reads and writes at the parent's keys (`_default_` for the
+ /// primary one). Every other storage is isolated: the fork writes under its own prefix
+ /// and reads through to the parent's objects.
+ #[serde(default)]
+ shared_storages: Vec,
/// Create the fork as a persistent dev workspace: the id is not required to carry the
/// `wm-fork-` prefix, and at most one dev workspace may exist per parent.
#[serde(default)]
@@ -2131,6 +2136,38 @@ async fn edit_dbt_warehouses(
Ok("Updated the workspace's dbt warehouses".to_string())
}
+/// A fork's isolated storage is purged at deletion from the storage recorded at creation: under
+/// another location, its objects would outlive the fork untracked, and a same-id fork would
+/// read them.
+async fn reject_isolated_storage_repoint(
+ tx: &mut Transaction<'_, Postgres>,
+ w_id: &str,
+ new_lfs: &serde_json::Value,
+) -> Result<()> {
+ let rows = sqlx::query!(
+ "SELECT storage, storage_ref FROM fork_storage_namespace WHERE workspace_id = $1",
+ w_id
+ )
+ .fetch_all(&mut **tx)
+ .await?;
+ for row in rows {
+ let new_ref = windmill_common::fork_storage::lfs_entry(new_lfs, &row.storage)
+ .and_then(windmill_common::workspaces::lfs_entry_storage_ref);
+ if new_ref.is_some_and(|r| r != row.storage_ref) {
+ let name = if row.storage.is_empty() {
+ windmill_types::s3::DEFAULT_STORAGE
+ } else {
+ row.storage.as_str()
+ };
+ return Err(Error::BadRequest(format!(
+ "storage `{name}` is isolated from the parent in this fork, so where it points \
+ cannot be changed"
+ )));
+ }
+ }
+ Ok(())
+}
+
async fn edit_large_file_storage_config(
authed: ApiAuthed,
Extension(db): Extension,
@@ -2198,6 +2235,7 @@ async fn edit_large_file_storage_config(
let serialized_lfs_config =
serde_json::to_value::(lfs_config)
.map_err(|err| Error::internal_err(err.to_string()))?;
+ reject_isolated_storage_repoint(&mut tx, &w_id, &serialized_lfs_config).await?;
// A workspace whose AI session backups fell back to the instance store leaves it
// here: the generation moves on, so nothing it left in any instance store is read
@@ -9571,6 +9609,25 @@ async fn create_workspace_fork(
i.msg
);
}
+ // Unlike a dropped lake's files, a deleted fork's objects are live to a same-id fork: it
+ // reads its own prefix first.
+ let leftover_storages = crate::workspaces_extra::prepare_fork_storage_purges(
+ &db,
+ &nw.id,
+ Some(&parent_workspace_id),
+ )
+ .await?;
+ let storage_issues =
+ crate::workspaces_extra::purge_fork_storages_unless_live(&db, &nw.id, leftover_storages)
+ .await?;
+ if !storage_issues.is_empty() {
+ return Err(Error::BadRequest(format!(
+ "a previously deleted workspace with id '{}' left objects in its fork prefix that \
+ could not be deleted: {}; retry once the storage is reachable again",
+ nw.id,
+ storage_issues.join("; ")
+ )));
+ }
#[cfg(not(feature = "enterprise"))]
_check_nb_of_workspaces(&db).await?;
@@ -9964,6 +10021,97 @@ fn copy_requests(
.collect()
}
+/// Record every storage of the fork's cloned settings as isolated, except `shared` ones.
+/// Isolation is a per-fork-creation choice, never inherited: a fork of a shared fork is
+/// isolated unless it asks otherwise.
+async fn isolate_fork_storages(
+ tx: &mut Transaction<'_, Postgres>,
+ fork_id: &str,
+ shared: &[String],
+ shared_ducklakes: &[String],
+) -> Result<()> {
+ use windmill_common::fork_storage::{lfs_entry, registry_storage_name};
+
+ let settings = sqlx::query!(
+ "SELECT large_file_storage, ducklake FROM workspace_settings WHERE workspace_id = $1",
+ fork_id
+ )
+ .fetch_optional(&mut **tx)
+ .await?;
+ let (lfs, ducklake) = settings
+ .map(|s| (s.large_file_storage, s.ducklake))
+ .unwrap_or_default();
+ let lfs = lfs.filter(|v| v.get("type").is_some());
+
+ // A shared lake keeps the parent's data path: its files must land at the parent's keys, or
+ // the parent's catalog would point at objects in the fork's prefix, purged with the fork.
+ if lfs.is_some() {
+ for lake in shared_ducklakes {
+ let lake_storage = ducklake
+ .as_ref()
+ .and_then(|d| {
+ d.get("ducklakes")?
+ .get(lake)?
+ .get("storage")?
+ .get("storage")
+ })
+ .and_then(|s| s.as_str());
+ let storage = registry_storage_name(lake_storage);
+ if !shared
+ .iter()
+ .any(|s| registry_storage_name(Some(s)) == storage)
+ {
+ return Err(Error::BadRequest(format!(
+ "ducklake `{lake}` is shared with the parent, so the storage holding its \
+ data (`{}`) must be shared too",
+ lake_storage.unwrap_or(windmill_types::s3::DEFAULT_STORAGE)
+ )));
+ }
+ }
+ }
+ let mut storages: Vec<&str> = vec![];
+ if let Some(lfs) = &lfs {
+ storages.push("");
+ if let Some(secondary) = lfs.get("secondary_storage").and_then(|s| s.as_object()) {
+ storages.extend(secondary.keys().map(String::as_str));
+ }
+ }
+ for name in shared {
+ if !storages.contains(®istry_storage_name(Some(name))) {
+ return Err(Error::BadRequest(format!(
+ "cannot share storage `{name}` with the parent: no such storage in the workspace \
+ settings"
+ )));
+ }
+ }
+ let Some(lfs) = &lfs else {
+ return Ok(());
+ };
+ for storage in storages {
+ if shared
+ .iter()
+ .any(|s| registry_storage_name(Some(s)) == storage)
+ {
+ continue;
+ }
+ let Some(storage_ref) =
+ lfs_entry(lfs, storage).and_then(windmill_common::workspaces::lfs_entry_storage_ref)
+ else {
+ continue;
+ };
+ sqlx::query!(
+ "INSERT INTO fork_storage_namespace (workspace_id, storage, storage_ref)
+ VALUES ($1, $2, $3)",
+ fork_id,
+ storage,
+ storage_ref
+ )
+ .execute(&mut **tx)
+ .await?;
+ }
+ Ok(())
+}
+
/// Write the fork, with its data tables pointed at `copies`.
async fn write_workspace_fork(
db: DB,
@@ -10229,6 +10377,14 @@ async fn write_workspace_fork(
}
}
+ isolate_fork_storages(
+ &mut tx,
+ &forked_id,
+ &nw.shared_storages,
+ &nw.shared_ducklakes,
+ )
+ .await?;
+
// Lock the parent ("prod") so edits are funneled through this dev workspace.
let locked_prod = nw.is_dev_workspace && (nw.lock_prod_deploy || nw.lock_prod_forking);
if locked_prod {
@@ -10276,6 +10432,9 @@ async fn write_workspace_fork(
.await?;
}
tx.commit().await?;
+ // Same for a mapping cached before the isolation rows were visible: identity, writing the
+ // root's keys.
+ windmill_common::fork_storage::invalidate_fork_storage_keys_cache(&forked_id);
// A pre-creation lookup could have cached an EMPTY ancestor chain for this id, which
// would bypass ducklake fork isolation for the TTL. The same lookup could have cached the id
diff --git a/backend/windmill-api-workspaces/src/workspaces_extra.rs b/backend/windmill-api-workspaces/src/workspaces_extra.rs
index dc40c72d13..0cae90952b 100644
--- a/backend/windmill-api-workspaces/src/workspaces_extra.rs
+++ b/backend/windmill-api-workspaces/src/workspaces_extra.rs
@@ -54,6 +54,23 @@ pub(crate) async fn change_workspace_id(
require_admin(authed.is_admin, &authed.username)?;
}
+ // An isolating fork's objects live under a prefix derived from its id: under a new id it
+ // would see none of them, and descendants would lose them from their read-through.
+ let isolates_storage = sqlx::query_scalar!(
+ "SELECT EXISTS (SELECT 1 FROM fork_storage_namespace WHERE workspace_id = $1)",
+ &old_id
+ )
+ .fetch_one(&db)
+ .await?
+ .unwrap_or(false);
+ if isolates_storage {
+ return Err(Error::BadRequest(
+ "This workspace isolates its object storage from its parent under a prefix derived \
+ from its id, so its id cannot be changed"
+ .to_string(),
+ ));
+ }
+
let mut tx = db.begin().await?;
// The settings copy below carries every data table entry to the new id, which fork cleanup of
@@ -1109,6 +1126,34 @@ pub(crate) async fn delete_workspace(
tracing::warn!("deleting workspace {w_id}: preparing ducklake cleanup: {e:#}");
vec![]
});
+ // A child fork reads through to this fork's prefix, or to the one this fork shares, and a
+ // child sharing the storage writes into it: deleting this link would destroy the child's
+ // data, or leave its chain without the isolating fork, writing the root's own keys. Under the
+ // lock forking this workspace takes, so no child can commit between the check and the delete.
+ windmill_common::workspaces::lock_fork_datatables(&mut tx, &w_id).await?;
+ let chain = windmill_common::workspaces::workspace_with_fork_ancestors(&db, &w_id).await?;
+ let isolating_with_children = sqlx::query_scalar!(
+ "SELECT EXISTS (SELECT 1 FROM fork_storage_namespace WHERE workspace_id = ANY($1))
+ AND EXISTS (SELECT 1 FROM workspace WHERE parent_workspace_id = $2)",
+ &chain,
+ &w_id
+ )
+ .fetch_one(&mut *tx)
+ .await?
+ .unwrap_or(false);
+ if isolating_with_children {
+ return Err(Error::BadRequest(format!(
+ "the forks of {w_id} reach its fork chain's isolated object storage through it: \
+ delete them first"
+ )));
+ }
+ // Nothing can reach a deleted fork's prefix once it is gone, so it is always purged.
+ let fork_storage_purges = prepare_fork_storage_purges(&db, &w_id, None)
+ .await
+ .unwrap_or_else(|e| {
+ tracing::warn!("deleting workspace {w_id}: preparing storage purge: {e:#}");
+ vec![]
+ });
sqlx::query!("DELETE FROM ai_agent_memory WHERE workspace_id = $1", &w_id)
.execute(&mut *tx)
@@ -1379,6 +1424,14 @@ pub(crate) async fn delete_workspace(
e.msg
);
}
+ match purge_fork_storages_unless_live(&db, &w_id, fork_storage_purges).await {
+ Ok(errors) => {
+ for e in errors {
+ tracing::warn!("deleted workspace {w_id}: storage purge: {e}");
+ }
+ }
+ Err(e) => tracing::warn!("deleted workspace {w_id}: storage purge: {e:#}"),
+ }
if let Some(parent) = dev_lock_parent {
windmill_common::workspaces::invalidate_protection_rules_cache(&parent);
@@ -2308,6 +2361,109 @@ async fn delete_fork_ducklake_data(
))
}
+/// A storage a fork isolated, resolved while its `$res:` still exists.
+pub(crate) struct PreparedForkStoragePurge {
+ storage: String,
+ store: std::result::Result<(windmill_types::s3::LargeFileStorage, serde_json::Value), String>,
+}
+
+/// Read-only: one entry per `fork_storage_namespace` row of `w_id`. `res_fallback_w_id` as in
+/// [`prepare_fork_ducklake_cleanups`].
+pub(crate) async fn prepare_fork_storage_purges(
+ db: &DB,
+ w_id: &str,
+ res_fallback_w_id: Option<&str>,
+) -> Result> {
+ let rows = sqlx::query!(
+ "SELECT storage, storage_ref FROM fork_storage_namespace WHERE workspace_id = $1",
+ w_id
+ )
+ .fetch_all(db)
+ .await?;
+ let mut prepared = Vec::with_capacity(rows.len());
+ for row in rows {
+ let storage = Some(row.storage.as_str()).filter(|s| !s.is_empty());
+ let store = resolve_fork_storage(db, w_id, res_fallback_w_id, storage, &row.storage_ref)
+ .await
+ .map_err(|e| e.to_string());
+ prepared.push(PreparedForkStoragePurge { storage: row.storage, store });
+ }
+ Ok(prepared)
+}
+
+/// [`purge_fork_storages`] under the lock same-id fork creation takes, unless a workspace with
+/// that id exists again: the rows are then the new fork's, and its creation already purged the
+/// ones it found.
+pub(crate) async fn purge_fork_storages_unless_live(
+ db: &DB,
+ w_id: &str,
+ prepared: Vec,
+) -> Result> {
+ let mut lock = db.begin().await?;
+ sqlx::query("SELECT pg_advisory_xact_lock(hashtext('fork:' || $1))")
+ .bind(w_id)
+ .execute(&mut *lock)
+ .await?;
+ let live = sqlx::query_scalar!(
+ "SELECT EXISTS (SELECT 1 FROM workspace WHERE id = $1)",
+ w_id
+ )
+ .fetch_one(&mut *lock)
+ .await?
+ .unwrap_or(false);
+ let errors = if live {
+ vec![]
+ } else {
+ purge_fork_storages(db, w_id, prepared).await
+ };
+ lock.commit().await?;
+ Ok(errors)
+}
+
+/// Delete everything under the fork's `__wm_forks//` in each prepared storage, then its
+/// registry row. Returns one message per storage that could not be purged; its row survives.
+async fn purge_fork_storages(
+ db: &DB,
+ w_id: &str,
+ prepared: Vec,
+) -> Vec {
+ let area = format!(
+ "{}/{}",
+ windmill_common::workspaces::FORK_DUCKLAKE_DATA_DIR,
+ windmill_common::workspaces::fork_data_dir_segment(w_id)
+ );
+ let mut errors = vec![];
+ for p in prepared {
+ let name = if p.storage.is_empty() {
+ "default storage"
+ } else {
+ p.storage.as_str()
+ };
+ let purged = match p.store {
+ Ok((lfs, value)) => delete_fork_ducklake_data(lfs, value, &area)
+ .await
+ .map_err(|e| e.to_string()),
+ Err(e) => Err(e),
+ };
+ if let Err(e) = purged {
+ errors.push(format!("{name}: {e}"));
+ continue;
+ }
+ if let Err(e) = sqlx::query!(
+ "DELETE FROM fork_storage_namespace WHERE workspace_id = $1 AND storage = $2",
+ w_id,
+ p.storage
+ )
+ .execute(db)
+ .await
+ {
+ errors.push(format!("{name}: removing registry row: {e}"));
+ }
+ }
+ windmill_common::fork_storage::invalidate_fork_storage_keys_cache(w_id);
+ errors
+}
+
/// Destroying an ATTACHED dev workspace (or its data environments) must be a prod-admin
/// action, not just the dev's own owner (dev ownership can diverge from prod's) — mirrors
/// detach_dev_workspace. Shared by `delete_workspace` and `drop_forked_ducklake_namespaces`
diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml
index 81a4e3274a..806d91e8b8 100644
--- a/backend/windmill-api/openapi.yaml
+++ b/backend/windmill-api/openapi.yaml
@@ -36678,6 +36678,11 @@ components:
items:
type: string
description: "Lake names the fork SHARES with the parent (reads and writes the parent's lake directly). Every lake not listed gets the default isolated fork namespace with read-defer to the parent."
+ shared_storages:
+ type: array
+ items:
+ type: string
+ description: "Workspace storages the fork SHARES with the parent (`_default_` for the primary one): it reads and writes the parent's objects directly. Every storage not listed is isolated: the fork writes under its own prefix and reads through to the parent's objects."
is_dev_workspace:
type: boolean
description: "Create the fork as a persistent dev workspace (id not required to carry the wm-fork- prefix; at most one per parent)"
diff --git a/backend/windmill-api/src/apps.rs b/backend/windmill-api/src/apps.rs
index 8343b4595d..944535dd84 100644
--- a/backend/windmill-api/src/apps.rs
+++ b/backend/windmill-api/src/apps.rs
@@ -5317,10 +5317,14 @@ async fn upload_s3_file_from_app(
let user_db = UserDB::new(db.clone());
- let (s3_resource_opt, file_key, on_behalf_of_email, permissioned_as, username) = if policy
- .as_ref()
- .is_some_and(|p| p.s3_inputs.is_some())
- {
+ let (
+ s3_resource_opt,
+ file_key,
+ on_behalf_of_email,
+ permissioned_as,
+ username,
+ is_workspace_storage,
+ ) = if policy.as_ref().is_some_and(|p| p.s3_inputs.is_some()) {
let policy = policy.unwrap();
let s3_inputs = policy.s3_inputs.as_ref().unwrap();
@@ -5389,6 +5393,7 @@ async fn upload_s3_file_from_app(
email,
permissioned_as,
username,
+ false,
)
} else {
return Err(Error::BadRequest(
@@ -5417,6 +5422,7 @@ async fn upload_s3_file_from_app(
email,
permissioned_as,
username,
+ false,
)
}
} else {
@@ -5434,7 +5440,14 @@ async fn upload_s3_file_from_app(
None,
)
.await?;
- (s3_resource_opt, file_key, email, permissioned_as, username)
+ (
+ s3_resource_opt,
+ file_key,
+ email,
+ permissioned_as,
+ username,
+ true,
+ )
}
} else {
return Err(Error::BadRequest(
@@ -5468,7 +5481,14 @@ async fn upload_s3_file_from_app(
)
.await?;
- (s3_resource_opt, file_key, email, permissioned_as, username)
+ (
+ s3_resource_opt,
+ file_key,
+ email,
+ permissioned_as,
+ username,
+ true,
+ )
}
} else {
// backward compatibility (no policy)
@@ -5500,6 +5520,7 @@ async fn upload_s3_file_from_app(
on_behalf_of_email,
permissioned_as,
username,
+ false,
)
} else {
let db_with_opt_authed = DbWithOptAuthed::from_authed(&authed, db.clone(), None);
@@ -5519,6 +5540,7 @@ async fn upload_s3_file_from_app(
on_behalf_of_email,
permissioned_as,
username,
+ true,
)
}
} else {
@@ -5529,7 +5551,19 @@ async fn upload_s3_file_from_app(
let s3_resource = s3_resource_opt.ok_or(Error::internal_err(
"No files storage resource defined at the workspace level".to_string(),
))?;
- let s3_client = windmill_object_store::build_object_store_client(&s3_resource).await?;
+ // The quota sizes an overwrite by the fork's own copy: a fork's write never replaces the
+ // ancestor's object its reads fall through to.
+ type Client = std::sync::Arc;
+ let (s3_client, _quota_client): (Client, Client) = if is_workspace_storage {
+ let store =
+ windmill_object_store::fork_store::workspace_fork_store(&db, &w_id, None, &s3_resource)
+ .await?;
+ let own_only = store.own_only();
+ (store, own_only)
+ } else {
+ let client = windmill_object_store::build_object_store_client(&s3_resource).await?;
+ (client.clone(), client)
+ };
let options = Attributes::from_iter(vec![
(
@@ -5562,7 +5596,8 @@ async fn upload_s3_file_from_app(
.get(http::header::CONTENT_LENGTH)
.and_then(|h| h.to_str().ok())
.and_then(|s| s.parse::().ok());
- let budget = ce_upload_budget(&db, &w_id, &s3_client, &file_key, content_length).await?;
+ let budget =
+ ce_upload_budget(&db, &w_id, &_quota_client, &file_key, content_length).await?;
(Some(budget.max_size), budget.existing_size)
} else {
(None, 0)
@@ -5644,6 +5679,7 @@ async fn delete_s3_file_from_app(
)
.await?;
+ let is_workspace_storage = s3_resource_path.is_none();
let s3_resource = if let Some(s3_resource_path) = s3_resource_path {
let db_with_opt_authed =
DbWithOptAuthed::from_authed(&on_behalf_authed, db.clone(), Some(user_db.clone()));
@@ -5672,7 +5708,12 @@ async fn delete_s3_file_from_app(
))?
};
- let s3_client = windmill_object_store::build_object_store_client(&s3_resource).await?;
+ let s3_client = if is_workspace_storage {
+ windmill_object_store::fork_store::workspace_object_store(&db, &w_id, None, &s3_resource)
+ .await?
+ } else {
+ windmill_object_store::build_object_store_client(&s3_resource).await?
+ };
s3_client.delete(&path).await.map_err(|err| {
tracing::error!("Error deleting file: {:?}", err);
diff --git a/backend/windmill-api/src/args.rs b/backend/windmill-api/src/args.rs
index 7e676989b2..6c1c9824bd 100644
--- a/backend/windmill-api/src/args.rs
+++ b/backend/windmill-api/src/args.rs
@@ -139,13 +139,13 @@ impl RawWebhookArgs {
get_random_file_name, get_workspace_s3_resource, upload_file_internal,
};
use futures::TryStreamExt;
- use windmill_object_store::build_object_store_client;
+ use windmill_object_store::fork_store::workspace_object_store;
use windmill_object_store::object_store_reexports::{Attribute, Attributes};
let (_, s3_resource) = get_workspace_s3_resource(authed, db, None, w_id, None).await?;
if let Some(s3_resource) = s3_resource {
- let s3_client = build_object_store_client(&s3_resource).await?;
+ let s3_client = workspace_object_store(db, w_id, None, &s3_resource).await?;
let mut parts: Vec<(String, MultipartValue)> = Vec::new();
diff --git a/backend/windmill-api/src/triggers/http/handler.rs b/backend/windmill-api/src/triggers/http/handler.rs
index 3d85904e50..5db6bf303d 100644
--- a/backend/windmill-api/src/triggers/http/handler.rs
+++ b/backend/windmill-api/src/triggers/http/handler.rs
@@ -34,10 +34,7 @@ use windmill_store::resources::try_get_resource_from_db_as;
use windmill_trigger::TriggerMode;
#[cfg(feature = "parquet")]
-use {
- crate::job_helpers_oss::get_workspace_s3_resource,
- windmill_object_store::build_object_store_client,
-};
+use crate::job_helpers_oss::get_workspace_s3_resource;
/// Which router a request's CORS decision must be looked up in.
///
@@ -624,7 +621,13 @@ async fn route_job(
let s3_resource = s3_resource_opt.ok_or_else(|| {
windmill_object_store::workspace_storage_misconfigured(config.storage.as_deref())
})?;
- let s3_client = build_object_store_client(&s3_resource).await?;
+ let s3_client = windmill_object_store::fork_store::workspace_object_store(
+ &db,
+ &trigger.workspace_id,
+ config.storage.as_deref(),
+ &s3_resource,
+ )
+ .await?;
let path = if trigger.is_static_website {
let subpath = params
diff --git a/backend/windmill-common/src/fork_storage.rs b/backend/windmill-common/src/fork_storage.rs
new file mode 100644
index 0000000000..8d2797ab3c
--- /dev/null
+++ b/backend/windmill-common/src/fork_storage.rs
@@ -0,0 +1,394 @@
+//! Where a workspace's object keys live in a storage it may share with its fork ancestors.
+//!
+//! A fork that isolates a storage (a `fork_storage_namespace` row) writes logical key `k` at
+//! `__wm_forks//k` and reads `k` from the first of its own and its ancestors'
+//! locations that has it. Everything under `__wm_forks/` is reachable only through the areas of
+//! the workspace's own chain, which is also what DuckLake's fork namespaces live in: those keys
+//! arrive already prefixed and pass through unchanged.
+
+use std::sync::Arc;
+
+use quick_cache::sync::Cache;
+
+use crate::error::{Error, Result};
+use crate::workspaces::{
+ fork_data_dir_segment, lfs_entry_storage_ref, workspace_with_fork_ancestors,
+ FORK_DUCKLAKE_DATA_DIR,
+};
+use crate::DB;
+
+/// How one workspace's logical keys map to physical keys in one of its storages.
+#[derive(Debug, Clone, PartialEq, Eq)]
+pub struct ForkStorageKeys {
+ /// Prefix of every write: `__wm_forks//` in an isolating fork, `""` otherwise.
+ write_prefix: String,
+ /// Prefixes a read tries in order, nearest first.
+ read_prefixes: Vec,
+ /// `__wm_forks//` of this workspace, writable as is.
+ own_area: String,
+ /// The fork areas of this workspace and its ancestors, readable as is.
+ readable_areas: Vec,
+}
+
+/// A listing request translated to the physical storage.
+#[derive(Debug, Clone, PartialEq, Eq)]
+pub struct ListMapping {
+ pub physical_prefix: String,
+ /// Stripped from each physical key to get the logical key returned to the caller.
+ strip: String,
+ /// Logical keys under `__wm_forks/` are dropped: reached only by listing that area itself.
+ hide_fork_area: bool,
+}
+
+impl ListMapping {
+ /// Whether listed keys differ from what the caller may see: false lets a listing response
+ /// be passed through untouched.
+ pub fn rewrites(&self) -> bool {
+ let fork_dir = format!("{FORK_DUCKLAKE_DATA_DIR}/");
+ !self.strip.is_empty()
+ || (self.hide_fork_area && fork_dir.starts_with(&self.physical_prefix))
+ }
+
+ /// The physical form of a logical key of this listing, e.g. a start-after cursor.
+ pub fn physical_key(&self, logical: &str) -> String {
+ format!("{}{logical}", self.strip)
+ }
+
+ /// The logical key for a listed physical key, or None when the caller must not see it.
+ pub fn logical_key(&self, physical: &str) -> Option {
+ let logical = physical.strip_prefix(self.strip.as_str())?;
+ if self.hide_fork_area && in_fork_area(logical) {
+ return None;
+ }
+ Some(logical.to_string())
+ }
+}
+
+fn in_fork_area(key: &str) -> bool {
+ key == FORK_DUCKLAKE_DATA_DIR
+ || key
+ .strip_prefix(FORK_DUCKLAKE_DATA_DIR)
+ .is_some_and(|rest| rest.starts_with('/'))
+}
+
+fn fork_area(w_id: &str) -> String {
+ format!("{FORK_DUCKLAKE_DATA_DIR}/{}/", fork_data_dir_segment(w_id))
+}
+
+fn forbidden(key: &str) -> Error {
+ Error::NotAuthorized(format!(
+ "`{key}` is in another workspace's fork namespace (`{FORK_DUCKLAKE_DATA_DIR}/`)"
+ ))
+}
+
+/// The S3 proxy forwards mapped keys in a URL, where clients and signers collapse `.` and `..`
+/// segments: `../../k` would reach the parent's `k`.
+fn reject_dot_segments(key: &str) -> Result<&str> {
+ let key = key.trim_start_matches('/');
+ if key.split('/').any(|s| s == "." || s == "..") {
+ return Err(Error::BadRequest(format!(
+ "`{key}` has a `.` or `..` path segment, which object storage keys may not use here"
+ )));
+ }
+ Ok(key)
+}
+
+/// One workspace of a fork chain, nearest first, as the storage mapping needs it.
+#[derive(Debug, Clone)]
+pub struct ChainLink {
+ pub w_id: String,
+ /// Identity of the storage in this workspace's settings (`lfs_entry_storage_ref`).
+ pub storage_ref: Option,
+ pub isolated: bool,
+}
+
+impl ForkStorageKeys {
+ /// The mapping of `chain[0]`. Reads stop at the first ancestor whose storage is a different
+ /// one: its keys are not in this bucket.
+ pub fn from_chain(chain: &[ChainLink]) -> Self {
+ let own = &chain[0];
+ let mut read_prefixes = vec![];
+ let mut reached_root = true;
+ for link in chain {
+ if link.storage_ref != own.storage_ref {
+ reached_root = false;
+ break;
+ }
+ if link.isolated {
+ read_prefixes.push(fork_area(&link.w_id));
+ }
+ }
+ if reached_root || read_prefixes.is_empty() {
+ read_prefixes.push(String::new());
+ }
+ Self {
+ write_prefix: read_prefixes[0].clone(),
+ read_prefixes,
+ own_area: fork_area(&own.w_id),
+ readable_areas: chain.iter().map(|l| fork_area(&l.w_id)).collect(),
+ }
+ }
+
+ /// Whether logical keys map to themselves (only the fork-area boundary applies).
+ pub fn is_identity(&self) -> bool {
+ self.write_prefix.is_empty() && self.read_prefixes.len() == 1
+ }
+
+ /// The same mapping with reads confined to the workspace's own copy, for sizing what a
+ /// write replaces: an ancestor's object is not overwritten by it.
+ pub fn own_only(&self) -> Self {
+ Self { read_prefixes: vec![self.write_prefix.clone()], ..self.clone() }
+ }
+
+ /// The physical key a write (put, multipart, delete, copy destination) of `key` goes to.
+ pub fn write_key(&self, key: &str) -> Result {
+ let key = reject_dot_segments(key)?;
+ if in_fork_area(key) {
+ return if key.starts_with(&self.own_area) {
+ Ok(key.to_string())
+ } else {
+ Err(forbidden(key))
+ };
+ }
+ Ok(format!("{}{key}", self.write_prefix))
+ }
+
+ /// The physical keys a read of `key` tries, in order, until one exists.
+ pub fn read_keys(&self, key: &str) -> Result> {
+ let key = reject_dot_segments(key)?;
+ if in_fork_area(key) {
+ return if self.readable_areas.iter().any(|a| key.starts_with(a)) {
+ Ok(vec![key.to_string()])
+ } else {
+ Err(forbidden(key))
+ };
+ }
+ Ok(self
+ .read_prefixes
+ .iter()
+ .map(|p| format!("{p}{key}"))
+ .collect())
+ }
+
+ /// A listing of `prefix` covers this workspace's own objects only: an isolating fork does
+ /// not list its ancestors' keys.
+ pub fn list(&self, prefix: &str) -> Result {
+ let prefix = reject_dot_segments(prefix)?;
+ if in_fork_area(prefix) {
+ if !self.readable_areas.iter().any(|a| prefix.starts_with(a)) {
+ return Err(forbidden(prefix));
+ }
+ return Ok(ListMapping {
+ physical_prefix: prefix.to_string(),
+ strip: String::new(),
+ hide_fork_area: false,
+ });
+ }
+ Ok(ListMapping {
+ physical_prefix: format!("{}{prefix}", self.write_prefix),
+ strip: self.write_prefix.clone(),
+ hide_fork_area: true,
+ })
+ }
+}
+
+lazy_static::lazy_static! {
+ static ref FORK_STORAGE_KEYS_CACHE: Cache<(String, String), (Arc, i64)> =
+ Cache::new(1000);
+}
+
+/// Drop the cached mappings of a workspace whose isolation rows or lineage just changed.
+pub fn invalidate_fork_storage_keys_cache(w_id: &str) {
+ FORK_STORAGE_KEYS_CACHE.retain(|(w, _), _| w != w_id);
+}
+
+pub fn clear_fork_storage_keys_cache() {
+ FORK_STORAGE_KEYS_CACHE.clear();
+}
+
+/// `storage` as the registry keys it: '' for the default storage.
+pub fn registry_storage_name(storage: Option<&str>) -> &str {
+ match storage {
+ None | Some("") | Some(windmill_types::s3::DEFAULT_STORAGE) => "",
+ Some(s) => s,
+ }
+}
+
+/// The storage entry named `storage` (registry form) in a `large_file_storage` value.
+pub fn lfs_entry<'a>(lfs: &'a serde_json::Value, storage: &str) -> Option<&'a serde_json::Value> {
+ if storage.is_empty() {
+ Some(lfs)
+ } else {
+ lfs.get("secondary_storage")?.get(storage)
+ }
+}
+
+/// How `w_id`'s keys map in `storage`. Reads lineage for any `w_id` with no authorization
+/// check, like [`workspace_with_fork_ancestors`]: callers must be authorized for `w_id`.
+pub async fn fork_storage_keys(
+ db: &DB,
+ w_id: &str,
+ storage: Option<&str>,
+) -> Result> {
+ let storage = registry_storage_name(storage).to_string();
+ let cache_key = (w_id.to_string(), storage.clone());
+ let now = chrono::Utc::now().timestamp();
+ if let Some((keys, expiry)) = FORK_STORAGE_KEYS_CACHE.get(&cache_key) {
+ if expiry > now {
+ return Ok(keys);
+ }
+ }
+
+ let chain_ids = workspace_with_fork_ancestors(db, w_id).await?;
+ let rows = sqlx::query!(
+ r#"SELECT c.id AS "id!", ws.large_file_storage,
+ EXISTS (SELECT 1 FROM fork_storage_namespace f
+ WHERE f.workspace_id = c.id AND f.storage = $2) AS "isolated!"
+ FROM unnest($1::text[]) WITH ORDINALITY AS c(id, ord)
+ LEFT JOIN workspace_settings ws ON ws.workspace_id = c.id
+ ORDER BY c.ord"#,
+ &chain_ids,
+ &storage,
+ )
+ .fetch_all(db)
+ .await?;
+ let chain: Vec = rows
+ .into_iter()
+ .map(|r| ChainLink {
+ storage_ref: r
+ .large_file_storage
+ .as_ref()
+ .and_then(|lfs| lfs_entry(lfs, &storage))
+ .and_then(lfs_entry_storage_ref),
+ w_id: r.id,
+ isolated: r.isolated,
+ })
+ .collect();
+ let keys = Arc::new(if chain.is_empty() {
+ ForkStorageKeys::from_chain(&[ChainLink {
+ w_id: w_id.to_string(),
+ storage_ref: None,
+ isolated: false,
+ }])
+ } else {
+ ForkStorageKeys::from_chain(&chain)
+ });
+ FORK_STORAGE_KEYS_CACHE.insert(cache_key, (keys.clone(), now + 30));
+ Ok(keys)
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ fn link(w_id: &str, storage_ref: &str, isolated: bool) -> ChainLink {
+ ChainLink { w_id: w_id.into(), storage_ref: Some(storage_ref.into()), isolated }
+ }
+
+ #[test]
+ fn root_is_identity_but_keeps_fork_areas_out_of_reach() {
+ let keys = ForkStorageKeys::from_chain(&[link("prod", "S3Storage:u/a/s3", false)]);
+ assert!(keys.is_identity());
+ assert_eq!(keys.write_key("a/b.csv").unwrap(), "a/b.csv");
+ assert_eq!(keys.read_keys("a/b.csv").unwrap(), vec!["a/b.csv"]);
+ let other = fork_area("wm-fork-x");
+ assert!(keys.write_key(&format!("{other}a")).is_err());
+ assert!(keys.read_keys(&format!("{other}a")).is_err());
+ let listing = keys.list("").unwrap();
+ assert_eq!(listing.logical_key("a/b.csv").as_deref(), Some("a/b.csv"));
+ assert_eq!(listing.logical_key(&format!("{other}a")), None);
+ }
+
+ #[test]
+ fn isolated_fork_writes_its_area_and_reads_through_to_ancestors() {
+ let s = "S3Storage:u/a/s3";
+ let chain = [
+ link("wm-fork-b", s, true),
+ link("wm-fork-a", s, false),
+ link("dev", s, true),
+ link("prod", s, false),
+ ];
+ let keys = ForkStorageKeys::from_chain(&chain);
+ let (b, dev) = (fork_area("wm-fork-b"), fork_area("dev"));
+ assert_eq!(keys.write_key("x.csv").unwrap(), format!("{b}x.csv"));
+ assert_eq!(
+ keys.read_keys("x.csv").unwrap(),
+ vec![
+ format!("{b}x.csv"),
+ format!("{dev}x.csv"),
+ "x.csv".to_string()
+ ]
+ );
+ // DuckLake's own fork namespace and its ancestors' pass through as is.
+ assert_eq!(
+ keys.write_key(&format!("{b}lake/f")).unwrap(),
+ format!("{b}lake/f")
+ );
+ let a = fork_area("wm-fork-a");
+ assert_eq!(
+ keys.read_keys(&format!("{a}lake/f")).unwrap(),
+ vec![format!("{a}lake/f")]
+ );
+ assert!(keys.write_key(&format!("{a}lake/f")).is_err());
+ let listing = keys.list("dir/").unwrap();
+ assert_eq!(listing.physical_prefix, format!("{b}dir/"));
+ assert_eq!(
+ listing.logical_key(&format!("{b}dir/f")).as_deref(),
+ Some("dir/f")
+ );
+ }
+
+ #[test]
+ fn shared_fork_writes_where_its_parent_does() {
+ let s = "S3Storage:u/a/s3";
+ let keys = ForkStorageKeys::from_chain(&[
+ link("wm-fork-c", s, false),
+ link("dev", s, true),
+ link("prod", s, false),
+ ]);
+ let dev = fork_area("dev");
+ assert_eq!(keys.write_key("x").unwrap(), format!("{dev}x"));
+ assert_eq!(
+ keys.read_keys("x").unwrap(),
+ vec![format!("{dev}x"), "x".into()]
+ );
+ }
+
+ #[test]
+ fn reads_stop_at_an_ancestor_on_another_storage() {
+ let keys = ForkStorageKeys::from_chain(&[
+ link("wm-fork-d", "S3Storage:u/a/other", true),
+ link("prod", "S3Storage:u/a/s3", false),
+ ]);
+ let d = fork_area("wm-fork-d");
+ assert_eq!(keys.read_keys("x").unwrap(), vec![format!("{d}x")]);
+ }
+
+ #[test]
+ fn dot_segments_cannot_climb_out_of_the_fork_area() {
+ let keys = ForkStorageKeys::from_chain(&[
+ link("wm-fork-a", "S3Storage:u/a/s3", true),
+ link("prod", "S3Storage:u/a/s3", false),
+ ]);
+ let area = fork_area("wm-fork-a");
+ assert!(keys.write_key("../../prod.csv").is_err());
+ assert!(keys.write_key(&format!("{area}lake/../../x")).is_err());
+ assert!(keys.read_keys("a/./b").is_err());
+ assert!(keys.list("..").is_err());
+ assert_eq!(
+ keys.write_key("a..b/c.d").unwrap(),
+ format!("{area}a..b/c.d")
+ );
+ }
+
+ #[test]
+ fn fork_area_match_is_on_whole_segments() {
+ assert!(in_fork_area("__wm_forks/a"));
+ assert!(!in_fork_area("__wm_forks_backup/a"));
+ let keys = ForkStorageKeys::from_chain(&[link("prod", "S3Storage:u/a/s3", false)]);
+ assert_eq!(
+ keys.write_key("__wm_forks_backup/a").unwrap(),
+ "__wm_forks_backup/a"
+ );
+ }
+}
diff --git a/backend/windmill-common/src/lib.rs b/backend/windmill-common/src/lib.rs
index 3b0a8e207f..0b5929025e 100644
--- a/backend/windmill-common/src/lib.rs
+++ b/backend/windmill-common/src/lib.rs
@@ -73,6 +73,7 @@ pub use feature_usage_oss as feature_usage;
pub mod flow_conversations;
pub mod flow_status;
pub mod flows;
+pub mod fork_storage;
pub mod folders;
pub mod global_settings;
pub mod hub_resource_types;
diff --git a/backend/windmill-object-store/src/fork_store.rs b/backend/windmill-object-store/src/fork_store.rs
new file mode 100644
index 0000000000..a7d283a09e
--- /dev/null
+++ b/backend/windmill-object-store/src/fork_store.rs
@@ -0,0 +1,260 @@
+//! An [`ObjectStore`] over one workspace storage that applies the workspace's
+//! [`ForkStorageKeys`]: callers keep using logical keys.
+
+use std::sync::Arc;
+
+use futures::{stream::BoxStream, StreamExt, TryStreamExt};
+use object_store::path::Path;
+use object_store::{
+ GetOptions, GetResult, ListResult, MultipartUpload, ObjectMeta, ObjectStore, PutMultipartOpts,
+ PutOptions, PutPayload, PutResult, Result,
+};
+use windmill_common::fork_storage::{fork_storage_keys, ForkStorageKeys};
+
+use crate::{build_object_store_client, ObjectStoreResource};
+
+/// The client for `w_id`'s storage `storage` (None = default). Every server-side access to a
+/// workspace storage by logical key goes through this, so fork isolation holds on each path.
+///
+/// It checks no authorization: the caller must already have checked that the requester may
+/// use `w_id`'s storage, and its permission rules for each key it reads or writes.
+pub async fn workspace_object_store(
+ db: &windmill_common::DB,
+ w_id: &str,
+ storage: Option<&str>,
+ resource: &ObjectStoreResource,
+) -> windmill_common::error::Result> {
+ Ok(workspace_fork_store(db, w_id, storage, resource).await?)
+}
+
+/// [`workspace_object_store`] as its concrete type, under the same authorization contract.
+pub async fn workspace_fork_store(
+ db: &windmill_common::DB,
+ w_id: &str,
+ storage: Option<&str>,
+ resource: &ObjectStoreResource,
+) -> windmill_common::error::Result> {
+ let inner = build_object_store_client(resource).await?;
+ let keys = fork_storage_keys(db, w_id, storage).await?;
+ Ok(Arc::new(ForkStore { inner, keys }))
+}
+
+#[derive(Debug)]
+pub struct ForkStore {
+ inner: Arc,
+ keys: Arc,
+}
+
+impl ForkStore {
+ pub fn new(inner: Arc, keys: Arc) -> Self {
+ Self { inner, keys }
+ }
+
+ pub fn keys(&self) -> &ForkStorageKeys {
+ &self.keys
+ }
+
+ /// This store with reads confined to the workspace's own copies.
+ pub fn own_only(&self) -> Arc {
+ Arc::new(ForkStore { inner: self.inner.clone(), keys: Arc::new(self.keys.own_only()) })
+ }
+}
+
+impl std::fmt::Display for ForkStore {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(f, "ForkStore({})", self.inner)
+ }
+}
+
+fn denied(location: &Path, e: windmill_common::error::Error) -> object_store::Error {
+ object_store::Error::PermissionDenied { path: location.to_string(), source: Box::new(e) }
+}
+
+fn parse(key: String) -> Result {
+ Path::parse(key).map_err(|source| object_store::Error::InvalidPath { source })
+}
+
+impl ForkStore {
+ fn write_path(&self, location: &Path) -> Result {
+ parse(
+ self.keys
+ .write_key(location.as_ref())
+ .map_err(|e| denied(location, e))?,
+ )
+ }
+
+ fn read_paths(&self, location: &Path) -> Result> {
+ self.keys
+ .read_keys(location.as_ref())
+ .map_err(|e| denied(location, e))?
+ .into_iter()
+ .map(parse)
+ .collect()
+ }
+
+ /// The physical path of the first of `location`'s read paths that exists (the last one
+ /// when none does).
+ pub async fn resolve_read(&self, location: &Path) -> Result {
+ parse(self.resolve_read_key(location.as_ref()).await?)
+ }
+
+ /// [`Self::resolve_read`] on a raw key, for callers that forward the key themselves.
+ pub async fn resolve_read_key(&self, key: &str) -> Result {
+ let location = Path::from(key);
+ let mut keys = self.keys.read_keys(key).map_err(|e| denied(&location, e))?;
+ let last = keys.pop().expect("read_keys returns at least one key");
+ for candidate in keys {
+ match self.inner.head(&parse(candidate.clone())?).await {
+ Ok(_) => return Ok(candidate),
+ Err(object_store::Error::NotFound { .. }) => continue,
+ Err(e) => return Err(e),
+ }
+ }
+ Ok(last)
+ }
+}
+
+#[async_trait::async_trait]
+impl ObjectStore for ForkStore {
+ async fn put_opts(
+ &self,
+ location: &Path,
+ payload: PutPayload,
+ opts: PutOptions,
+ ) -> Result {
+ self.inner
+ .put_opts(&self.write_path(location)?, payload, opts)
+ .await
+ }
+
+ async fn put_multipart_opts(
+ &self,
+ location: &Path,
+ opts: PutMultipartOpts,
+ ) -> Result> {
+ self.inner
+ .put_multipart_opts(&self.write_path(location)?, opts)
+ .await
+ }
+
+ async fn get_opts(&self, location: &Path, options: GetOptions) -> Result {
+ let paths = self.read_paths(location)?;
+ let last = paths.len() - 1;
+ for (i, path) in paths.into_iter().enumerate() {
+ match self.inner.get_opts(&path, options.clone()).await {
+ Err(object_store::Error::NotFound { .. }) if i < last => continue,
+ Ok(mut result) => {
+ result.meta.location = location.clone();
+ return Ok(result);
+ }
+ Err(e) => return Err(e),
+ }
+ }
+ unreachable!("read_keys returns at least one key")
+ }
+
+ async fn head(&self, location: &Path) -> Result {
+ let paths = self.read_paths(location)?;
+ let last = paths.len() - 1;
+ for (i, path) in paths.into_iter().enumerate() {
+ match self.inner.head(&path).await {
+ Err(object_store::Error::NotFound { .. }) if i < last => continue,
+ Ok(meta) => return Ok(ObjectMeta { location: location.clone(), ..meta }),
+ Err(e) => return Err(e),
+ }
+ }
+ unreachable!("read_keys returns at least one key")
+ }
+
+ /// Removes this workspace's copy only: an ancestor's object stays readable through it.
+ async fn delete(&self, location: &Path) -> Result<()> {
+ self.inner.delete(&self.write_path(location)?).await
+ }
+
+ fn list(&self, prefix: Option<&Path>) -> BoxStream<'static, Result> {
+ let prefix = prefix.map(|p| p.as_ref().to_string()).unwrap_or_default();
+ let mapping = match self.keys.list(&prefix) {
+ Ok(m) => m,
+ Err(e) => {
+ let err = denied(&Path::from(prefix), e);
+ return futures::stream::once(async move { Err(err) }).boxed();
+ }
+ };
+ let physical = Path::from(mapping.physical_prefix.clone());
+ self.inner
+ .list(Some(&physical))
+ .try_filter_map(move |meta| {
+ let logical = mapping.logical_key(meta.location.as_ref());
+ futures::future::ready(Ok(logical
+ .and_then(|l| Path::parse(l).ok())
+ .map(|location| ObjectMeta { location, ..meta })))
+ })
+ .boxed()
+ }
+
+ fn list_with_offset(
+ &self,
+ prefix: Option<&Path>,
+ offset: &Path,
+ ) -> BoxStream<'static, Result> {
+ let prefix = prefix.map(|p| p.as_ref().to_string()).unwrap_or_default();
+ let mapping = match self.keys.list(&prefix) {
+ Ok(m) => m,
+ Err(e) => {
+ let err = denied(&Path::from(prefix), e);
+ return futures::stream::once(async move { Err(err) }).boxed();
+ }
+ };
+ let physical = Path::from(mapping.physical_prefix.clone());
+ let physical_offset = match parse(mapping.physical_key(offset.as_ref())) {
+ Ok(p) => p,
+ Err(e) => return futures::stream::once(async move { Err(e) }).boxed(),
+ };
+ self.inner
+ .list_with_offset(Some(&physical), &physical_offset)
+ .try_filter_map(move |meta| {
+ let logical = mapping.logical_key(meta.location.as_ref());
+ futures::future::ready(Ok(logical
+ .and_then(|l| Path::parse(l).ok())
+ .map(|location| ObjectMeta { location, ..meta })))
+ })
+ .boxed()
+ }
+
+ async fn list_with_delimiter(&self, prefix: Option<&Path>) -> Result {
+ let prefix_str = prefix.map(|p| p.as_ref().to_string()).unwrap_or_default();
+ let mapping = self
+ .keys
+ .list(&prefix_str)
+ .map_err(|e| denied(&Path::from(prefix_str.clone()), e))?;
+ let physical = Path::from(mapping.physical_prefix.clone());
+ let listed = self.inner.list_with_delimiter(Some(&physical)).await?;
+ let logical = |p: &Path| {
+ mapping
+ .logical_key(p.as_ref())
+ .and_then(|l| Path::parse(l).ok())
+ };
+ Ok(ListResult {
+ common_prefixes: listed.common_prefixes.iter().filter_map(logical).collect(),
+ objects: listed
+ .objects
+ .into_iter()
+ .filter_map(|meta| {
+ logical(&meta.location).map(|location| ObjectMeta { location, ..meta })
+ })
+ .collect(),
+ })
+ }
+
+ async fn copy(&self, from: &Path, to: &Path) -> Result<()> {
+ let from = self.resolve_read(from).await?;
+ self.inner.copy(&from, &self.write_path(to)?).await
+ }
+
+ async fn copy_if_not_exists(&self, from: &Path, to: &Path) -> Result<()> {
+ let from = self.resolve_read(from).await?;
+ self.inner
+ .copy_if_not_exists(&from, &self.write_path(to)?)
+ .await
+ }
+}
diff --git a/backend/windmill-object-store/src/lib.rs b/backend/windmill-object-store/src/lib.rs
index a9551ad835..4e40d6e313 100644
--- a/backend/windmill-object-store/src/lib.rs
+++ b/backend/windmill-object-store/src/lib.rs
@@ -59,6 +59,8 @@ use windmill_common::utils::rd_string;
pub mod job_s3_helpers_ee;
#[cfg(feature = "parquet")]
pub mod job_s3_helpers_oss;
+#[cfg(feature = "parquet")]
+pub mod fork_store;
// Re-export object_store types so consumers don't need a direct object_store dep
#[cfg(feature = "parquet")]
diff --git a/backend/windmill-queue/src/tags.rs b/backend/windmill-queue/src/tags.rs
index ba045ad451..b31e3d99c3 100644
--- a/backend/windmill-queue/src/tags.rs
+++ b/backend/windmill-queue/src/tags.rs
@@ -61,16 +61,20 @@ const CLEAR_ALL: &str = "*";
pub fn invalidate_fork_parent_cache(workspace_id: &str) {
FORK_PARENT_CACHE.remove(workspace_id);
windmill_common::workspaces::invalidate_root_workspace_cache(workspace_id);
+ windmill_common::fork_storage::invalidate_fork_storage_keys_cache(workspace_id);
}
-/// Apply a broadcast lineage change to this process's caches.
+/// Apply a broadcast lineage change to this process's caches. The object storage key mapping is
+/// among them: a replica keeping a recreated fork's old mapping would write the wrong keys.
pub fn apply_fork_lineage_change(payload: &str) {
if payload == CLEAR_ALL {
FORK_PARENT_CACHE.clear();
windmill_common::workspaces::clear_root_workspace_cache();
+ windmill_common::fork_storage::clear_fork_storage_keys_cache();
} else {
FORK_PARENT_CACHE.remove(payload);
windmill_common::workspaces::invalidate_root_workspace_cache(payload);
+ windmill_common::fork_storage::invalidate_fork_storage_keys_cache(payload);
}
}
diff --git a/docs/fork-object-storage.md b/docs/fork-object-storage.md
new file mode 100644
index 0000000000..6544edf902
--- /dev/null
+++ b/docs/fork-object-storage.md
@@ -0,0 +1,56 @@
+# Fork-isolated workspace object storage
+
+A fork clones its parent's `large_file_storage` settings, so without isolation it reads and
+writes the parent's objects: a script iterating in a fork overwrites production's files. Each
+storage the fork isolates (a `fork_storage_namespace` row, chosen at fork creation, default
+isolated) instead maps logical keys:
+
+- **Writes** (put, multipart, delete, copy destination) go to `__wm_forks//`,
+ the same one-component segment DuckLake's fork namespaces use (`fork_data_dir_segment`).
+- **Reads** try the fork's own key, then each ancestor's mapping, nearest first, then the root's
+ raw key. They stop at the first ancestor whose storage is a different one
+ (`lfs_entry_storage_ref`): its keys are not in this bucket. A shared fork maps like its parent.
+- **Listings** show the workspace's own objects only, as logical keys.
+- **Deletes** remove the fork's copy; an ancestor's object stays readable through it.
+
+The mapping (`windmill_common::fork_storage::ForkStorageKeys`) is applied wherever Windmill
+turns a workspace-storage key into a storage operation: the `ForkStore` object-store wrapper
+(`windmill_object_store::fork_store::workspace_object_store`) for every server-side helper, and
+key rewriting in the S3 proxy's raw S3 forwarding (URI key, list `prefix`/`start-after`/`marker`
+and response keys, `x-amz-copy-source`). A named resource (`s3_resource_path`) is not workspace
+storage and is never mapped. A workspace whose keys are mapped is refused its workspace
+storage's own credentials (`s3_resource_info`, the duckdb/polars settings endpoints): a client
+holding them would write past the mapping.
+
+Not mapped, on purpose: AI sessions and volumes (their keys already carry the workspace id),
+SMTP attachments (job-id keys), the storage usage count (it counts the whole bucket). Known
+gaps: the worker's result-cache hash HEADs the logical key unmapped, and a read of an object
+the fork does not own costs one HEAD per chain level before the GET.
+
+## Invariants
+
+- **`__wm_forks/` is reachable only through the workspace's own chain.** A key under it maps to
+ itself when it is in the workspace's own area (writes) or an area of the chain (reads), and is
+ refused otherwise; listings hide it. This is also what keeps DuckLake working: its fork data
+ paths arrive already prefixed, and its defer attaches read ancestors' raw keys through the
+ read chain. Every workspace gets the rule, isolating or not, so pre-existing forks' lakes keep
+ working.
+- **No `.` or `..` key segments**, in any workspace: the proxy forwards mapped keys in a URL,
+ where they collapse and would climb out of the fork's prefix.
+- **The prefix derives from the workspace id**, so an isolating fork's id cannot be changed
+ (`change_workspace_id` refuses): under a new id it would see none of its objects. Nor can an
+ isolated storage be repointed, since the purge targets the storage recorded at creation.
+- **A shared lake needs its storage shared**: its files must land at the parent's keys, where the
+ parent's catalog looks for them. Fork creation refuses the other combination.
+- **Children before parents**: deleting a fork that has forks of its own is refused when anything
+ in its chain isolates a storage, shared forks included. A child reads through, or writes into,
+ the isolating prefix via that link, and without it the child's chain would map like the root's.
+- **Deletion and same-id creation are serialized** on the `fork:` advisory lock, and a purge
+ skips an id that exists again: the rows are then the new fork's. The proxy caches only the raw
+ client, never a mapping, so fork creation and deletion invalidate the one mapping cache.
+- **Deletion always purges** the fork's area of each isolated storage, post-commit, from the
+ storage identity recorded at creation: nothing can reach it once the fork is gone. Rows have
+ no FK and outlive the workspace when the purge fails; creating a fork with the same id retries
+ them and refuses while they cannot be purged, since a same-id fork would read them.
+- Isolation is a per-fork-creation choice (`shared_storages` on create-fork), never inherited.
+ Forks created before the registry existed have no rows and keep sharing.
diff --git a/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte b/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte
index 378a96733f..33543efa82 100644
--- a/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte
+++ b/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte
@@ -76,6 +76,7 @@
import WorkspaceScopeTrigger from '../WorkspaceScopeTrigger.svelte'
import DarkModeToggle from '../sidebar/DarkModeToggle.svelte'
import ForkDucklakeSection from './ForkDucklakeSection.svelte'
+ import ForkStorageSection from './ForkStorageSection.svelte'
import { createWorkspaceForkAndWait } from '$lib/utils/forkCreation'
interface Props {
@@ -277,6 +278,7 @@
let forkDatatableSection: ReturnType | undefined = $state(undefined)
let forkDucklakeSection: ReturnType | undefined = $state(undefined)
+ let forkStorageSection: ReturnType | undefined = $state(undefined)
let workspaceColor: string | undefined = $state(undefined)
let colorEnabled = $state(false)
@@ -499,6 +501,7 @@
color: colorEnabled && workspaceColor ? workspaceColor : undefined,
forked_datatables: forkedDatatables,
shared_ducklakes: forkDucklakeSection?.getSharedDucklakes() ?? [],
+ shared_storages: forkStorageSection?.getSharedStorages() ?? [],
is_dev_workspace: createAsDevWorkspace,
dev_workspace_label: createAsDevWorkspace ? devWorkspaceLabel : undefined,
lock_prod_deploy: createAsDevWorkspace && effectiveLockProdDeploy,
@@ -1021,6 +1024,7 @@
}}
/>
+
{/if}
{#if !automateUsernameCreation}
diff --git a/frontend/src/lib/components/workspaceSettings/ForkStorageSection.svelte b/frontend/src/lib/components/workspaceSettings/ForkStorageSection.svelte
new file mode 100644
index 0000000000..7a5e11f1f6
--- /dev/null
+++ b/frontend/src/lib/components/workspaceSettings/ForkStorageSection.svelte
@@ -0,0 +1,71 @@
+
+
+
+{#if storages.current && storages.current.length > 0}
+
+
+ By default each storage is isolated in the fork: the fork's writes go to its own prefix, and
+ it reads this workspace's files until it writes its own. Deleting the fork deletes what it
+ wrote.
+
+
+ {#each storages.current as name (name)}
+
+ {storageLabel(name)}
+ behaviors[name] ?? 'isolated', (v) => (behaviors[name] = v)}
+ items={[
+ { value: 'isolated', label: 'Isolated (read through to parent)' },
+ { value: 'shared', label: 'Shared with parent' }
+ ]}
+ />
+
+ {/each}
+
+ {#if anyShared}
+
+
+
+ A shared storage is NOT isolated: scripts in the fork read, overwrite and delete this
+ workspace's files directly.
+
+
+ {/if}
+
+{/if}
From ab4e790a216b92f789e130955d7cd180b394d1fe Mon Sep 17 00:00:00 2001
From: Ruben Fiszel
Date: Fri, 16 Oct 2026 22:40:21 +0200
Subject: [PATCH 13/46] feat: add a Require isolated forks protection rule
(#11834)
* feat: route the python SDK's S3 client settings through the S3 proxy
Co-Authored-By: Claude Opus 5.5
* fix: drop the boto3 config key and expose the proxied bucket to polars
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* fix: proxy S3 settings only for server-signed tokens and keep tls verify
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* feat: isolate fork object storage under a per-fork prefix with read-through
Co-Authored-By: Claude Opus 5.5
* fix: guard fork storage isolation against traversal, shared lakes and orphaning
Co-Authored-By: Claude Opus 5.5
* fix: serialize fork purges with same-id creation and guard shared middle forks
Co-Authored-By: Claude Opus 5.5
* fix: drop fork storage mappings on every replica and lock fork deletion against child creation
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref
Co-Authored-By: Claude Opus 5.5
* wip: require isolated forks rule
* feat: add a Require isolated forks protection rule
Co-Authored-By: Claude Opus 5.5
* fix: recheck isolated forks under the datatable lock and judge bypass in the base
Co-Authored-By: Claude Opus 5.5
* chore: update ee-repo-ref to 455681e55eb7cdfcfdb7cd79cbae75b333e07943
This commit updates the EE repository reference after PR #893 was merged in windmill-ee-private.
Previous ee-repo-ref: 93f26e3cf816e4eb97b7d4dbbb5fc97fdf9821af
New ee-repo-ref: 455681e55eb7cdfcfdb7cd79cbae75b333e07943
Automated by sync-ee-ref workflow.
* fix: exempt only datatables the base does not own, compact fork data choices
Co-Authored-By: Claude Opus 5.5
* test: pin the isolated-forks owner check, fix its docs wording
Co-Authored-By: Claude Opus 5.5
---------
Co-authored-by: Claude Opus 5.5
Co-authored-by: windmill-internal-app[bot]
---
backend/tests/protection_rules.rs | 109 ++++++++++++++++++
.../windmill-api-workspaces/src/workspaces.rs | 106 +++++++++++++++++
backend/windmill-api/openapi.yaml | 4 +
backend/windmill-common/src/workspaces.rs | 6 +
cli/src/guidance/skills.gen.ts | 2 +-
docs/fork-object-storage.md | 12 ++
.../CreateWorkspaceInner.svelte | 85 +++++++++++---
.../ForkDatatableSection.svelte | 76 ++++++++----
.../ForkDucklakeSection.svelte | 46 ++++----
.../ForkStorageSection.svelte | 47 ++++----
.../workspaceSettings/RulesetEditor.svelte | 17 ++-
system_prompts/auto-generated/prompts.ts | 2 +-
.../skills/workspace-settings/SKILL.md | 2 +-
system_prompts/base/workspace-settings.md | 2 +-
14 files changed, 434 insertions(+), 82 deletions(-)
diff --git a/backend/tests/protection_rules.rs b/backend/tests/protection_rules.rs
index 6714b24801..6a96a66f8f 100644
--- a/backend/tests/protection_rules.rs
+++ b/backend/tests/protection_rules.rs
@@ -686,3 +686,112 @@ async fn test_protection_rule_rename(db: Pool) -> anyhow::Result<()> {
Ok(())
}
+
+/// `RequireIsolatedForks` refuses a non-bypassing forker any data shared with the workspace, on
+/// both fork entry points, and lets an admin through.
+#[sqlx::test(fixtures("base"))]
+async fn test_require_isolated_forks(db: Pool) -> anyhow::Result<()> {
+ initialize_tracing().await;
+ invalidate_protection_rules_cache("test-workspace");
+ // `dt2` is a clone governed from `gov`, but its database is this workspace's; `dt3` points
+ // into `gov`'s database.
+ let pg = r#"{"resource_type": "postgresql", "resource_path": "u/test-user/pg"}"#;
+ let gov = r#"{"workspace_id": "gov", "datatable": "src"}"#;
+ sqlx::raw_sql(
+ "INSERT INTO workspace (id, name, owner) VALUES ('gov', 'gov', 'test-user');
+ INSERT INTO workspace_settings (workspace_id) VALUES ('gov')",
+ )
+ .execute(&db)
+ .await?;
+ for (w_id, datatables) in [
+ ("gov", format!(r#"{{"src": {{"database": {pg}}}}}"#)),
+ (
+ "test-workspace",
+ format!(
+ r#"{{"dt1": {{"database": {pg}}}, "dt2": {{"database": {pg}, "governed_by": {gov}}},
+ "dt3": {{"reference": {gov}}}}}"#
+ ),
+ ),
+ ] {
+ sqlx::query(
+ "UPDATE workspace_settings SET datatable = jsonb_build_object('datatables', $2::jsonb) \
+ WHERE workspace_id = $1",
+ )
+ .bind(w_id)
+ .bind(datatables)
+ .execute(&db)
+ .await?;
+ }
+
+ let server = ApiServer::start(db.clone()).await?;
+ let base = format!(
+ "http://localhost:{}/api/w/test-workspace",
+ server.addr.port()
+ );
+ let resp = authed(
+ client().post(format!("{base}/workspaces/protection_rules")),
+ "SECRET_TOKEN",
+ )
+ .json(&json!({
+ "name": "isolate",
+ "rules": ["RequireIsolatedForks"],
+ "bypass_users": [],
+ "bypass_groups": []
+ }))
+ .send()
+ .await?;
+ assert_eq!(resp.status(), 200, "{}", resp.text().await?);
+
+ let cloned =
+ json!([{"name": "dt1", "new_dbname": "wm_fork_iso__dt1", "fork_behavior": "schema_only"}]);
+ for (route, body, shared) in [
+ (
+ "create_fork",
+ json!({"shared_storages": ["_default_"], "forked_datatables": cloned}),
+ "storage",
+ ),
+ (
+ "create_workspace_fork_branch",
+ json!({"shared_ducklakes": ["main"], "forked_datatables": cloned}),
+ "ducklake",
+ ),
+ (
+ "create_fork",
+ json!({"forked_datatables": cloned}),
+ "data table `dt2`",
+ ),
+ ] {
+ let mut body = body;
+ body["id"] = json!("wm-fork-iso");
+ body["name"] = json!("iso");
+ let resp = authed(
+ client().post(format!("{base}/workspaces/{route}")),
+ "SECRET_TOKEN_2",
+ )
+ .json(&body)
+ .send()
+ .await?;
+ let status = resp.status();
+ let text = resp.text().await?;
+ assert!(
+ status == 403 && text.contains(shared) && !text.contains("dt3"),
+ "{route} sharing {shared} should be refused: {status} {text}"
+ );
+ }
+
+ // An admin bypasses the rule: what stops this request is the unknown storage name.
+ let resp = authed(
+ client().post(format!("{base}/workspaces/create_fork")),
+ "SECRET_TOKEN",
+ )
+ .json(&json!({"id": "wm-fork-iso", "name": "iso", "shared_storages": ["_default_"]}))
+ .send()
+ .await?;
+ let text = resp.text().await?;
+ assert!(
+ !text.contains("isolate"),
+ "admin should bypass the rule: {text}"
+ );
+
+ Ok(())
+}
diff --git a/backend/windmill-api-workspaces/src/workspaces.rs b/backend/windmill-api-workspaces/src/workspaces.rs
index 17db877834..eb00c4106d 100644
--- a/backend/windmill-api-workspaces/src/workspaces.rs
+++ b/backend/windmill-api-workspaces/src/workspaces.rs
@@ -2332,6 +2332,9 @@ struct DataTableListItem {
/// at its parent. Its permissions apply here, and only its admins may edit them.
#[serde(skip_serializing_if = "Option::is_none")]
governing_workspace_id: Option,
+ /// The workspace owning the database this entry points at, when it is not this workspace.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ database_workspace_id: Option,
/// Whether the governing entry is under roles.
permissioned: bool,
}
@@ -2361,6 +2364,8 @@ async fn list_datatables(
resource_path: database.resource_path.clone(),
governing_workspace_id: (governing.governing_workspace_id() != w_id)
.then(|| governing.governing_workspace_id().to_string()),
+ database_workspace_id: (governing.workspace_id != w_id)
+ .then(|| governing.workspace_id.clone()),
permissioned: governing.datatable.permissions.is_some(),
});
}
@@ -8897,6 +8902,7 @@ async fn create_workspace_fork_branch(
{
return Err(Error::PermissionDenied(msg));
}
+ enforce_isolated_forks(&db, &authed, &w_id, &nw).await?;
// Two-phase create for git-synced workspaces: this endpoint only creates the git branch(es) and
// validates up front; it does NOT create the workspace row. The caller follows up with
@@ -9647,6 +9653,7 @@ async fn create_workspace_fork(
{
return Err(Error::PermissionDenied(msg));
}
+ enforce_isolated_forks(&db, &authed, &parent_workspace_id, &nw).await?;
if nw.is_dev_workspace {
ensure_dev_parent_can_host_dev(&db, &parent_workspace_id).await?;
@@ -10021,6 +10028,94 @@ fn copy_requests(
.collect()
}
+/// Under `RequireIsolatedForks` on `parent`, refuse a fork that would leave any of its data
+/// shared: a shared storage or lake, or a data table not cloned (`Keep original` points the fork
+/// at the parent's database).
+async fn enforce_isolated_forks(
+ db: &DB,
+ authed: &ApiAuthed,
+ parent: &str,
+ nw: &CreateWorkspaceFork,
+) -> Result<()> {
+ let Some(msg) = isolation_required(db, authed, parent).await? else {
+ return Ok(());
+ };
+ let mut shared: Vec = nw
+ .shared_storages
+ .iter()
+ .map(|s| format!("storage `{s}`"))
+ .chain(
+ nw.shared_ducklakes
+ .iter()
+ .map(|l| format!("ducklake `{l}`")),
+ )
+ .collect();
+ shared.extend(
+ kept_parent_datatables(db, parent, &nw.forked_datatables)
+ .await?
+ .into_iter()
+ .map(|name| format!("data table `{name}`")),
+ );
+ refuse_shared(msg, shared)
+}
+
+/// The rule's message when `RequireIsolatedForks` on `parent` binds `authed`.
+async fn isolation_required(db: &DB, authed: &ApiAuthed, parent: &str) -> Result> {
+ match check_user_against_rule(
+ parent,
+ &ProtectionRuleKind::RequireIsolatedForks,
+ AuditAuthorable::username(authed),
+ &authed.groups,
+ authed.is_admin,
+ db,
+ )
+ .await?
+ {
+ RuleCheckResult::Blocked(msg) => Ok(Some(msg)),
+ RuleCheckResult::Allowed => Ok(None),
+ }
+}
+
+/// `parent`'s own data tables that `forked` leaves as pointers at its database. An entry whose
+/// database another workspace owns is not `parent`'s data, so the rule does not cover it.
+async fn kept_parent_datatables(
+ db: &DB,
+ parent: &str,
+ forked: &[ForkedDatatableInfo],
+) -> Result> {
+ Ok(
+ windmill_common::workspaces::resolve_workspace_governing_datatables(db, parent)
+ .await?
+ .into_iter()
+ .filter(|(_, governing)| governing.workspace_id == parent)
+ .filter(|(name, _)| {
+ !forked.iter().any(|d| {
+ &d.name == name
+ && matches!(
+ d.fork_behavior,
+ Some(
+ DataTableForkBehavior::SchemaOnly
+ | DataTableForkBehavior::SchemaAndData
+ )
+ )
+ })
+ })
+ .map(|(name, _)| name)
+ .collect(),
+ )
+}
+
+fn refuse_shared(msg: String, shared: Vec) -> Result<()> {
+ if shared.is_empty() {
+ return Ok(());
+ }
+ Err(Error::PermissionDenied(format!(
+ "{msg}. Shared in this request: {}. Only a bypasser of the rule can fork while one of \
+ them cannot be isolated",
+ shared.join(", ")
+ )))
+}
+
/// Record every storage of the fork's cloned settings as isolated, except `shared` ones.
/// Isolation is a per-fork-creation choice, never inherited: a fork of a shared fork is
/// isolated unless it asks otherwise.
@@ -10134,6 +10229,17 @@ async fn write_workspace_fork(
// Also before the external cluster's lifecycle lock, which finalizing an external copy takes:
// fork cleanup takes the two in this order.
windmill_common::workspaces::lock_fork_datatables(&mut tx, &parent_workspace_id).await?;
+ // Data table edits take the lock above: one committed since the creation check would reach
+ // this fork as a pointer at the parent's database.
+ if let Some(msg) = isolation_required(&db, &authed, &parent_workspace_id).await? {
+ let kept = kept_parent_datatables(&db, &parent_workspace_id, &nw.forked_datatables).await?;
+ refuse_shared(
+ msg,
+ kept.into_iter()
+ .map(|name| format!("data table `{name}`"))
+ .collect(),
+ )?;
+ }
if nw.is_dev_workspace {
// The checks above ran outside a transaction, so the parent's eligibility and the chain's
diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml
index 806d91e8b8..6dd49e0385 100644
--- a/backend/windmill-api/openapi.yaml
+++ b/backend/windmill-api/openapi.yaml
@@ -5640,6 +5640,9 @@ paths:
type: string
governing_workspace_id:
type: string
+ database_workspace_id:
+ type: string
+ description: The workspace owning the database this entry points at, when it is not this workspace.
permissioned:
type: boolean
@@ -39184,6 +39187,7 @@ components:
- RestrictAnonymousAppDeployment
- RestrictPublicRunSharing
- RestrictGuestAppDeployment
+ - RequireIsolatedForks
RuleBypasserGroups:
type: array
description: Groups that can bypass this ruleset
diff --git a/backend/windmill-common/src/workspaces.rs b/backend/windmill-common/src/workspaces.rs
index 958c62a3d4..1b9412eb5a 100644
--- a/backend/windmill-common/src/workspaces.rs
+++ b/backend/windmill-common/src/workspaces.rs
@@ -73,6 +73,7 @@ bitflags::bitflags! {
const RESTRICT_ANONYMOUS_APP_DEPLOYMENT = 1 << 3;
const RESTRICT_PUBLIC_RUN_SHARING = 1 << 4;
const RESTRICT_GUEST_APP_DEPLOYMENT = 1 << 5;
+ const REQUIRE_ISOLATED_FORKS = 1 << 6;
}
}
@@ -86,6 +87,7 @@ pub enum ProtectionRuleKind {
RestrictAnonymousAppDeployment,
RestrictPublicRunSharing,
RestrictGuestAppDeployment,
+ RequireIsolatedForks,
}
impl ProtectionRuleKind {
@@ -109,6 +111,7 @@ impl ProtectionRuleKind {
ProtectionRuleKind::RestrictGuestAppDeployment => {
ProtectionRules::RESTRICT_GUEST_APP_DEPLOYMENT
}
+ ProtectionRuleKind::RequireIsolatedForks => ProtectionRules::REQUIRE_ISOLATED_FORKS,
}
}
@@ -130,6 +133,9 @@ impl ProtectionRuleKind {
ProtectionRuleKind::RestrictGuestAppDeployment => {
"Opening an app to guests (anyone who can sign in) is restricted in this workspace"
}
+ ProtectionRuleKind::RequireIsolatedForks => {
+ "Forks of this workspace must isolate its data: no shared object storage or ducklake, and every data table cloned"
+ }
}
}
}
diff --git a/cli/src/guidance/skills.gen.ts b/cli/src/guidance/skills.gen.ts
index d1cf9672a8..5cf07a243b 100644
--- a/cli/src/guidance/skills.gen.ts
+++ b/cli/src/guidance/skills.gen.ts
@@ -8343,7 +8343,7 @@ write a secret you were not given: keep the placeholder.
| \`git_sync\` | \`{ repositories: [...] }\`, each with \`git_repo_resource_path\`, \`script_path\` and \`settings\` (include/exclude paths and types). Server-owned fields (webhook secrets, sync state, credentials) are never read nor written. |
| \`datatable\` | \`{ datatables: { : { database: { resource_type, resource_path? } } } }\`. Role permissions are \`datatable_permissions\`. |
| \`datatable_permissions\` | \`{ : { default_role, roles: { : [tenants] } } }\`: who may connect to each data table as which role. Tenants are \`u/\`, \`g/\`, \`f/\` or \`*\`; \`admin\` is always a role, and \`default_role: null\` means no default. A data table the value omits is no longer under roles. Only a data table on a cluster Windmill manages can be. |
-| \`protection_rules\` | \`{ : { rules: [...], bypass_groups: [...], bypass_users: [...] } }\`, rules among \`DisableDirectDeployment\`, \`DisableWorkspaceForking\`, \`RestrictDeployToDeployers\`, \`RestrictAnonymousAppDeployment\`, \`RestrictPublicRunSharing\`, \`RestrictGuestAppDeployment\`. A rule the value omits is deleted. The dev workspace lock is not listed and cannot be set here. |
+| \`protection_rules\` | \`{ : { rules: [...], bypass_groups: [...], bypass_users: [...] } }\`, rules among \`DisableDirectDeployment\`, \`DisableWorkspaceForking\`, \`RestrictDeployToDeployers\`, \`RestrictAnonymousAppDeployment\`, \`RestrictPublicRunSharing\`, \`RestrictGuestAppDeployment\`, \`RequireIsolatedForks\`. A rule the value omits is deleted. The dev workspace lock is not listed and cannot be set here. |
| \`ducklake\` | \`{ ducklakes: { : { catalog, storage, ... } } }\`. |
| \`dbt_warehouses\` | dbt warehouse connections. |
| \`default_app\` | Path of the app shown as the workspace home. |
diff --git a/docs/fork-object-storage.md b/docs/fork-object-storage.md
index 6544edf902..7428119f97 100644
--- a/docs/fork-object-storage.md
+++ b/docs/fork-object-storage.md
@@ -54,3 +54,15 @@ the fork does not own costs one HEAD per chain level before the GET.
them and refuses while they cannot be purged, since a same-id fork would read them.
- Isolation is a per-fork-creation choice (`shared_storages` on create-fork), never inherited.
Forks created before the registry existed have no rows and keep sharing.
+
+## Requiring isolation
+
+The `RequireIsolatedForks` protection rule on a workspace makes its forks leave nothing shared
+with it, for every user the ruleset does not exempt (admins always are): no `shared_storages`,
+no `shared_ducklakes`, and every data table whose database it owns cloned rather than kept as a
+pointer. A data table whose database another workspace owns is left alone: that is not its data.
+A clone governed from another workspace still has its own database, so it is not exempt. It is
+checked against the workspace being forked, in
+`create_workspace_fork` and in the git-branch pre-check (so a refused fork leaves no branch
+behind), and the data table part again under the parent's `lock_fork_datatables`, which data table
+edits also take: a table added between the two would otherwise reach the fork as a pointer.
diff --git a/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte b/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte
index 33543efa82..2afcbce3c8 100644
--- a/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte
+++ b/frontend/src/lib/components/workspaceSettings/CreateWorkspaceInner.svelte
@@ -36,10 +36,13 @@
import { useForkableWorkspaces } from '$lib/utils/useForkableWorkspaces.svelte'
import { isOperatorInWorkspace } from '$lib/components/sidebar/operatorRoutes'
import {
+ canUserBypassRuleKindInRulesets,
fetchProtectionRulesForWorkspace,
+ isRuleActiveInRulesets,
isRuleUnconditionallyActiveInRulesets
} from '$lib/workspaceProtectionRules.svelte'
import { resource } from 'runed'
+ import { getUserExt } from '$lib/user'
import { Button } from '$lib/components/common'
import {
DEV_WORKSPACE_LABELS,
@@ -279,6 +282,34 @@
let forkDatatableSection: ReturnType | undefined = $state(undefined)
let forkDucklakeSection: ReturnType | undefined = $state(undefined)
let forkStorageSection: ReturnType | undefined = $state(undefined)
+ let datatableCount = $state(0)
+ let ducklakeCount = $state(0)
+ let storageCount = $state(0)
+ let forkDataCount = $derived(datatableCount + ducklakeCount + storageCount)
+
+ // The base's `RequireIsolatedForks` rule leaves no data shared with it: the sections below drop
+ // their sharing options. The server enforces it; this only keeps the form from offering a
+ // choice it would refuse. Bypass is judged with the user's identity in the BASE, like
+ // ParentWorkspaceProtectionAlert.
+ const baseRuleContext = resource(
+ () => (isFork ? baseWorkspaceId : undefined),
+ async (ws) => {
+ if (!ws) return undefined
+ const [rules, user] = await Promise.all([
+ fetchProtectionRulesForWorkspace(ws),
+ getUserExt(ws)
+ ])
+ return { rules, user }
+ }
+ )
+ let requireIsolation = $derived.by(() => {
+ const ctx = baseRuleContext.current
+ return (
+ !!ctx &&
+ isRuleActiveInRulesets(ctx.rules, 'RequireIsolatedForks') &&
+ !canUserBypassRuleKindInRulesets(ctx.rules, 'RequireIsolatedForks', ctx.user)
+ )
+ })
let workspaceColor: string | undefined = $state(undefined)
let colorEnabled = $state(false)
@@ -435,9 +466,11 @@
id: prefixed_id,
name,
color: colorEnabled && workspaceColor ? workspaceColor : undefined,
- // Sent in this first phase too, so a clone the fork would refuse is refused before
- // any branch is created.
+ // Sent in this first phase too, so a clone or a sharing choice the fork would refuse
+ // is refused before any branch is created.
forked_datatables: forkedDatatables,
+ shared_ducklakes: forkDucklakeSection?.getSharedDucklakes() ?? [],
+ shared_storages: forkStorageSection?.getSharedStorages() ?? [],
is_dev_workspace: createAsDevWorkspace,
dev_workspace_label: createAsDevWorkspace ? devWorkspaceLabel : undefined,
// Send the lock intent in this first phase too so the backend can reject a non-admin's
@@ -1013,18 +1046,42 @@
{/if}
{/if}
{#if isFork}
- {
- completeFork(effectiveForkId)
- }}
- onCanceled={() => {
- forkCreationLoading = false
- }}
- />
-
-
+
+ 0 ? 'flex flex-col gap-3' : 'hidden'}>
+
+
+ Isolated or cloned: the fork writes only its own data, and this workspace's is never
+ changed. Shared: the fork reads and writes this workspace's data directly.
+ {#if requireIsolation}
+ A protection rule on this workspace requires isolation.
+ {/if}
+
+
+ {
+ completeFork(effectiveForkId)
+ }}
+ onCanceled={() => {
+ forkCreationLoading = false
+ }}
+ />
+
+
+
{/if}
{#if !automateUsernameCreation}
diff --git a/frontend/src/lib/components/workspaceSettings/ForkDatatableSection.svelte b/frontend/src/lib/components/workspaceSettings/ForkDatatableSection.svelte
index 9627e4a026..b7d67cd80b 100644
--- a/frontend/src/lib/components/workspaceSettings/ForkDatatableSection.svelte
+++ b/frontend/src/lib/components/workspaceSettings/ForkDatatableSection.svelte
@@ -13,7 +13,7 @@
import { isCloudHosted } from '$lib/cloud'
import { resource } from 'runed'
import Select from '../select/Select.svelte'
- import Label from '../Label.svelte'
+ import { TriangleAlert } from 'lucide-svelte'
import Alert from '../common/alert/Alert.svelte'
import ConfirmationModal from '../common/confirmationModal/ConfirmationModal.svelte'
@@ -21,11 +21,20 @@
// Workspace whose datatables are cloned into the fork (the fork's base). Falls back to the
// current workspace so existing callers keep working.
sourceWorkspace?: string
+ // A protection rule on the base forbids `keep_original` for the base's own datatables.
+ requireIsolation?: boolean
+ itemCount?: number
onAllDone?: () => void
onCanceled?: () => void
}
- let { sourceWorkspace, onAllDone, onCanceled }: Props = $props()
+ let {
+ sourceWorkspace,
+ requireIsolation = false,
+ itemCount = $bindable(),
+ onAllDone,
+ onCanceled
+ }: Props = $props()
let effectiveSource = $derived(sourceWorkspace ?? $workspaceStore ?? undefined)
@@ -34,8 +43,27 @@
async (ws) => (ws ? WorkspaceService.listDataTables({ workspace: ws }) : undefined)
)
- let datatableBehaviors: Record =
- $state({})
+ $effect(() => {
+ itemCount = allDatatables.current?.length ?? 0
+ })
+
+ type Behavior = 'schema_only' | 'schema_and_data' | 'keep_original'
+ let datatableBehaviors: Record = $state({})
+
+ // An entry whose database another workspace owns is not the base's data: the rule leaves it
+ // alone, as the server does.
+ function mustClone(dt: { database_workspace_id?: string }): boolean {
+ return requireIsolation && !dt.database_workspace_id
+ }
+
+ function behaviorOf(dt: { name: string; database_workspace_id?: string }): Behavior {
+ const chosen = datatableBehaviors[dt.name] ?? 'keep_original'
+ return mustClone(dt) && chosen === 'keep_original' ? 'schema_only' : chosen
+ }
+
+ let anyShared = $derived(
+ (allDatatables.current ?? []).some((dt) => behaviorOf(dt) === 'keep_original')
+ )
let cloneModalOpen = $state(false)
let currentCloneJob: DatatableCloneJob | undefined = $state(undefined)
@@ -49,14 +77,11 @@
// A fork attempt starts here: what an earlier attempt confirmed is not this one's to send.
confirmedJobs = []
return (allDatatables.current ?? [])
- .filter((dt) => {
- const behavior = datatableBehaviors[dt.name] ?? 'keep_original'
- return behavior !== 'keep_original'
- })
+ .filter((dt) => behaviorOf(dt) !== 'keep_original')
.map((dt) => ({
name: dt.name,
resourceType: dt.resource_type,
- behavior: datatableBehaviors[dt.name] as 'schema_only' | 'schema_and_data',
+ behavior: behaviorOf(dt) as 'schema_only' | 'schema_and_data',
// A dev workspace's id has no `wm-fork-` prefix; its copies are named like a fork's
_newDbName: `wm_fork_${targetWorkspaceId.replace(/^wm-fork-/, '').replace(/-/g, '_')}__${dt.name}`
}))
@@ -94,10 +119,10 @@
{#if allDatatables.current && allDatatables.current.length > 0}
-
- Choose how to handle each datatable when forking
+
+
Data tables
- {#each allDatatables.current as dt}
+ {#each allDatatables.current as dt (dt.name)}
{dt.name}
@@ -107,15 +132,18 @@
datatableBehaviors[dt.name] ?? 'keep_original',
- (v) => (datatableBehaviors[dt.name] = v)
- }
+ bind:value={() => behaviorOf(dt), (v) => (datatableBehaviors[dt.name] = v)}
items={[
- {
- value: 'keep_original',
- label: dt.permissioned ? 'Keep original (under roles)' : 'Keep original'
- },
+ ...(mustClone(dt)
+ ? []
+ : [
+ {
+ value: 'keep_original' as const,
+ label: dt.permissioned
+ ? 'Shared with parent (under roles)'
+ : 'Shared with parent'
+ }
+ ]),
// A copy of a data table under roles carries the source's owners and grants,
// which only the Enterprise Edition replays: elsewhere the server refuses it.
...(dt.permissioned && !$enterpriseLicense
@@ -131,7 +159,13 @@
{/each}
-
+ {#if anyShared}
+
+
+ Scripts in the fork will read and write this workspace's rows.
+
+ {/if}
+
{/if}
{#if cloneModalOpen && currentCloneJob}
diff --git a/frontend/src/lib/components/workspaceSettings/ForkDucklakeSection.svelte b/frontend/src/lib/components/workspaceSettings/ForkDucklakeSection.svelte
index 24d3da404c..41813fa552 100644
--- a/frontend/src/lib/components/workspaceSettings/ForkDucklakeSection.svelte
+++ b/frontend/src/lib/components/workspaceSettings/ForkDucklakeSection.svelte
@@ -3,13 +3,16 @@
import { workspaceStore } from '$lib/stores'
import { resource } from 'runed'
import Select from '../select/Select.svelte'
- import Label from '../Label.svelte'
import { TriangleAlert } from 'lucide-svelte'
// The workspace the fork is created from (matches ForkDatatableSection): a
// fork-of-fork bases off the selected base, not the navigation workspace, so
// the lakes listed here must match the ones the create-fork call submits to.
- let { sourceWorkspace }: { sourceWorkspace?: string } = $props()
+ let {
+ sourceWorkspace,
+ requireIsolation = false,
+ itemCount = $bindable()
+ }: { sourceWorkspace?: string; requireIsolation?: boolean; itemCount?: number } = $props()
let effectiveSource = $derived(sourceWorkspace ?? $workspaceStore ?? undefined)
// Keyed on the source so a direct page load (store hydrates after mount) still fetches.
@@ -18,34 +21,42 @@
async (ws) => (ws ? WorkspaceService.listDucklakes({ workspace: ws }) : undefined)
)
+ $effect(() => {
+ itemCount = allDucklakes.current?.length ?? 0
+ })
+
let lakeBehaviors: Record = $state({})
// Lakes the user explicitly opted out of isolation for — sent as
// `shared_ducklakes` on the create-fork request. Unlisted lakes default to the
// isolated fork namespace with read-defer, so nothing needs sending for them.
export function getSharedDucklakes(): string[] {
+ if (requireIsolation) return []
return (allDucklakes.current ?? []).filter((name) => lakeBehaviors[name] === 'shared')
}
- let anyShared = $derived((allDucklakes.current ?? []).some((n) => lakeBehaviors[n] === 'shared'))
+ let anyShared = $derived(
+ !requireIsolation && (allDucklakes.current ?? []).some((n) => lakeBehaviors[n] === 'shared')
+ )
{#if allDucklakes.current && allDucklakes.current.length > 0}
-
-
- By default each lake is isolated in the fork: materializations write a fork-scoped namespace
- and reads of not-yet-materialized tables defer to this workspace's current data.
-
+
+
Ducklakes
{#each allDucklakes.current as name (name)}
{name}
lakeBehaviors[name] ?? 'isolated', (v) => (lakeBehaviors[name] = v)}
+ disabled={requireIsolation}
+ bind:value={
+ () => (requireIsolation ? 'isolated' : (lakeBehaviors[name] ?? 'isolated')),
+ (v) => (lakeBehaviors[name] = v)
+ }
items={[
- { value: 'isolated', label: 'Isolated (defer reads to parent)' },
+ { value: 'isolated', label: 'Isolated' },
{ value: 'shared', label: 'Shared with parent' }
]}
/>
@@ -53,15 +64,10 @@
{/each}
{#if anyShared}
-
-
-
- A shared lake is NOT isolated: pipeline runs in the fork read and write this workspace's
- tables directly.
-
-
+
+
+ Pipeline runs in the fork will write this workspace's tables.
+
{/if}
-
+
{/if}
diff --git a/frontend/src/lib/components/workspaceSettings/ForkStorageSection.svelte b/frontend/src/lib/components/workspaceSettings/ForkStorageSection.svelte
index 7a5e11f1f6..01287a72b1 100644
--- a/frontend/src/lib/components/workspaceSettings/ForkStorageSection.svelte
+++ b/frontend/src/lib/components/workspaceSettings/ForkStorageSection.svelte
@@ -3,12 +3,15 @@
import { workspaceStore } from '$lib/stores'
import { resource } from 'runed'
import Select from '../select/Select.svelte'
- import Label from '../Label.svelte'
import { TriangleAlert } from 'lucide-svelte'
// The workspace the fork is created from, like ForkDucklakeSection: the storages
// listed here must match the ones the create-fork call submits to.
- let { sourceWorkspace }: { sourceWorkspace?: string } = $props()
+ let {
+ sourceWorkspace,
+ requireIsolation = false,
+ itemCount = $bindable()
+ }: { sourceWorkspace?: string; requireIsolation?: boolean; itemCount?: number } = $props()
let effectiveSource = $derived(sourceWorkspace ?? $workspaceStore ?? undefined)
let storages = resource(
@@ -19,14 +22,21 @@
: undefined
)
+ $effect(() => {
+ itemCount = storages.current?.length ?? 0
+ })
+
let behaviors: Record
= $state({})
// Sent as `shared_storages` on the create-fork request; unlisted storages are isolated.
export function getSharedStorages(): string[] {
+ if (requireIsolation) return []
return (storages.current ?? []).filter((name) => behaviors[name] === 'shared')
}
- let anyShared = $derived((storages.current ?? []).some((n) => behaviors[n] === 'shared'))
+ let anyShared = $derived(
+ !requireIsolation && (storages.current ?? []).some((n) => behaviors[n] === 'shared')
+ )
function storageLabel(name: string): string {
return name === '_default_' ? 'Primary storage' : name
@@ -35,21 +45,21 @@
{#if storages.current && storages.current.length > 0}
-
-
- By default each storage is isolated in the fork: the fork's writes go to its own prefix, and
- it reads this workspace's files until it writes its own. Deleting the fork deletes what it
- wrote.
-
+
+
Object storage
{#each storages.current as name (name)}
{storageLabel(name)}
behaviors[name] ?? 'isolated', (v) => (behaviors[name] = v)}
+ disabled={requireIsolation}
+ bind:value={
+ () => (requireIsolation ? 'isolated' : (behaviors[name] ?? 'isolated')),
+ (v) => (behaviors[name] = v)
+ }
items={[
- { value: 'isolated', label: 'Isolated (read through to parent)' },
+ { value: 'isolated', label: 'Isolated' },
{ value: 'shared', label: 'Shared with parent' }
]}
/>
@@ -57,15 +67,10 @@
{/each}
{#if anyShared}
-
-
-
- A shared storage is NOT isolated: scripts in the fork read, overwrite and delete this
- workspace's files directly.
-
-
+
+
+ Scripts in the fork will overwrite and delete this workspace's files.
+
{/if}
-
+
{/if}
diff --git a/frontend/src/lib/components/workspaceSettings/RulesetEditor.svelte b/frontend/src/lib/components/workspaceSettings/RulesetEditor.svelte
index 789793fe20..43f5434c4d 100644
--- a/frontend/src/lib/components/workspaceSettings/RulesetEditor.svelte
+++ b/frontend/src/lib/components/workspaceSettings/RulesetEditor.svelte
@@ -45,6 +45,7 @@
let restrictAnonymousAppDeployment = $state(hasRule('RestrictAnonymousAppDeployment'))
let restrictPublicRunSharing = $state(hasRule('RestrictPublicRunSharing'))
let restrictGuestAppDeployment = $state(hasRule('RestrictGuestAppDeployment'))
+ let requireIsolatedForks = $state(hasRule('RequireIsolatedForks'))
let selectedGroups = $state
(
untrack(() => rule)?.bypass_groups?.map((g) => g.replace('g/', '')) ?? []
)
@@ -60,6 +61,7 @@
let initialRestrictAnonymousAppDeployment = $state(hasRule('RestrictAnonymousAppDeployment'))
let initialRestrictPublicRunSharing = $state(hasRule('RestrictPublicRunSharing'))
let initialRestrictGuestAppDeployment = $state(hasRule('RestrictGuestAppDeployment'))
+ let initialRequireIsolatedForks = $state(hasRule('RequireIsolatedForks'))
let initialSelectedGroups = $state(
untrack(() => rule)?.bypass_groups
? untrack(() => rule)!.bypass_groups.map((g) => g.replace('g/', ''))
@@ -107,6 +109,7 @@
restrictAnonymousAppDeployment ||
restrictPublicRunSharing ||
restrictGuestAppDeployment ||
+ requireIsolatedForks ||
selectedGroups.length > 0 ||
selectedUsers.length > 0
: name !== initialName ||
@@ -116,6 +119,7 @@
restrictAnonymousAppDeployment !== initialRestrictAnonymousAppDeployment ||
restrictPublicRunSharing !== initialRestrictPublicRunSharing ||
restrictGuestAppDeployment !== initialRestrictGuestAppDeployment ||
+ requireIsolatedForks !== initialRequireIsolatedForks ||
JSON.stringify([...selectedGroups].sort()) !==
JSON.stringify([...initialSelectedGroups].sort()) ||
JSON.stringify([...selectedUsers].sort()) !==
@@ -155,7 +159,8 @@
...(restrictPublicRunSharing ? ['RestrictPublicRunSharing' as ProtectionRuleKind] : []),
...(restrictGuestAppDeployment
? ['RestrictGuestAppDeployment' as ProtectionRuleKind]
- : [])
+ : []),
+ ...(requireIsolatedForks ? ['RequireIsolatedForks' as ProtectionRuleKind] : [])
],
bypass_groups: selectedGroups,
bypass_users: selectedUsers
@@ -194,7 +199,8 @@
...(restrictPublicRunSharing ? ['RestrictPublicRunSharing' as ProtectionRuleKind] : []),
...(restrictGuestAppDeployment
? ['RestrictGuestAppDeployment' as ProtectionRuleKind]
- : [])
+ : []),
+ ...(requireIsolatedForks ? ['RequireIsolatedForks' as ProtectionRuleKind] : [])
],
bypass_groups: selectedGroups,
bypass_users: selectedUsers
@@ -211,6 +217,7 @@
initialRestrictAnonymousAppDeployment = restrictAnonymousAppDeployment
initialRestrictPublicRunSharing = restrictPublicRunSharing
initialRestrictGuestAppDeployment = restrictGuestAppDeployment
+ initialRequireIsolatedForks = requireIsolatedForks
initialSelectedGroups = clone(selectedGroups)
initialSelectedUsers = clone(selectedUsers)
@@ -295,6 +302,12 @@
{@render description('Users cannot create forks of this workspace.')}
+
+
+ {@render description(
+ "Forks of this workspace cannot share its data: every object storage and ducklake stays isolated, and every data table is cloned instead of pointing at this workspace's database."
+ )}
+
: { database: { resource_type, resource_path? } } } }\`. Role permissions are \`datatable_permissions\`. |
| \`datatable_permissions\` | \`{ : { default_role, roles: { : [tenants] } } }\`: who may connect to each data table as which role. Tenants are \`u/\`, \`g/\`, \`f/\` or \`*\`; \`admin\` is always a role, and \`default_role: null\` means no default. A data table the value omits is no longer under roles. Only a data table on a cluster Windmill manages can be. |
-| \`protection_rules\` | \`{ : { rules: [...], bypass_groups: [...], bypass_users: [...] } }\`, rules among \`DisableDirectDeployment\`, \`DisableWorkspaceForking\`, \`RestrictDeployToDeployers\`, \`RestrictAnonymousAppDeployment\`, \`RestrictPublicRunSharing\`, \`RestrictGuestAppDeployment\`. A rule the value omits is deleted. The dev workspace lock is not listed and cannot be set here. |
+| \`protection_rules\` | \`{ : { rules: [...], bypass_groups: [...], bypass_users: [...] } }\`, rules among \`DisableDirectDeployment\`, \`DisableWorkspaceForking\`, \`RestrictDeployToDeployers\`, \`RestrictAnonymousAppDeployment\`, \`RestrictPublicRunSharing\`, \`RestrictGuestAppDeployment\`, \`RequireIsolatedForks\`. A rule the value omits is deleted. The dev workspace lock is not listed and cannot be set here. |
| \`ducklake\` | \`{ ducklakes: { : { catalog, storage, ... } } }\`. |
| \`dbt_warehouses\` | dbt warehouse connections. |
| \`default_app\` | Path of the app shown as the workspace home. |
diff --git a/system_prompts/auto-generated/skills/workspace-settings/SKILL.md b/system_prompts/auto-generated/skills/workspace-settings/SKILL.md
index 8c0e5b4b70..6216b92db6 100644
--- a/system_prompts/auto-generated/skills/workspace-settings/SKILL.md
+++ b/system_prompts/auto-generated/skills/workspace-settings/SKILL.md
@@ -46,7 +46,7 @@ write a secret you were not given: keep the placeholder.
| `git_sync` | `{ repositories: [...] }`, each with `git_repo_resource_path`, `script_path` and `settings` (include/exclude paths and types). Server-owned fields (webhook secrets, sync state, credentials) are never read nor written. |
| `datatable` | `{ datatables: { : { database: { resource_type, resource_path? } } } }`. Role permissions are `datatable_permissions`. |
| `datatable_permissions` | `{ : { default_role, roles: { : [tenants] } } }`: who may connect to each data table as which role. Tenants are `u/`, `g/`, `f/` or `*`; `admin` is always a role, and `default_role: null` means no default. A data table the value omits is no longer under roles. Only a data table on a cluster Windmill manages can be. |
-| `protection_rules` | `{ : { rules: [...], bypass_groups: [...], bypass_users: [...] } }`, rules among `DisableDirectDeployment`, `DisableWorkspaceForking`, `RestrictDeployToDeployers`, `RestrictAnonymousAppDeployment`, `RestrictPublicRunSharing`, `RestrictGuestAppDeployment`. A rule the value omits is deleted. The dev workspace lock is not listed and cannot be set here. |
+| `protection_rules` | `{ : { rules: [...], bypass_groups: [...], bypass_users: [...] } }`, rules among `DisableDirectDeployment`, `DisableWorkspaceForking`, `RestrictDeployToDeployers`, `RestrictAnonymousAppDeployment`, `RestrictPublicRunSharing`, `RestrictGuestAppDeployment`, `RequireIsolatedForks`. A rule the value omits is deleted. The dev workspace lock is not listed and cannot be set here. |
| `ducklake` | `{ ducklakes: { : { catalog, storage, ... } } }`. |
| `dbt_warehouses` | dbt warehouse connections. |
| `default_app` | Path of the app shown as the workspace home. |
diff --git a/system_prompts/base/workspace-settings.md b/system_prompts/base/workspace-settings.md
index ad5838dad2..ba4e863b85 100644
--- a/system_prompts/base/workspace-settings.md
+++ b/system_prompts/base/workspace-settings.md
@@ -41,7 +41,7 @@ write a secret you were not given: keep the placeholder.
| `git_sync` | `{ repositories: [...] }`, each with `git_repo_resource_path`, `script_path` and `settings` (include/exclude paths and types). Server-owned fields (webhook secrets, sync state, credentials) are never read nor written. |
| `datatable` | `{ datatables: { : { database: { resource_type, resource_path? } } } }`. Role permissions are `datatable_permissions`. |
| `datatable_permissions` | `{ : { default_role, roles: { : [tenants] } } }`: who may connect to each data table as which role. Tenants are `u/`, `g/`, `f/` or `*`; `admin` is always a role, and `default_role: null` means no default. A data table the value omits is no longer under roles. Only a data table on a cluster Windmill manages can be. |
-| `protection_rules` | `{ : { rules: [...], bypass_groups: [...], bypass_users: [...] } }`, rules among `DisableDirectDeployment`, `DisableWorkspaceForking`, `RestrictDeployToDeployers`, `RestrictAnonymousAppDeployment`, `RestrictPublicRunSharing`, `RestrictGuestAppDeployment`. A rule the value omits is deleted. The dev workspace lock is not listed and cannot be set here. |
+| `protection_rules` | `{ : { rules: [...], bypass_groups: [...], bypass_users: [...] } }`, rules among `DisableDirectDeployment`, `DisableWorkspaceForking`, `RestrictDeployToDeployers`, `RestrictAnonymousAppDeployment`, `RestrictPublicRunSharing`, `RestrictGuestAppDeployment`, `RequireIsolatedForks`. A rule the value omits is deleted. The dev workspace lock is not listed and cannot be set here. |
| `ducklake` | `{ ducklakes: { : { catalog, storage, ... } } }`. |
| `dbt_warehouses` | dbt warehouse connections. |
| `default_app` | Path of the app shown as the workspace home. |
From a19a00fd8351f6a010f565e305d7ee9cb461c8fb Mon Sep 17 00:00:00 2001
From: Ruben Fiszel
Date: Fri, 16 Oct 2026 22:45:22 +0200
Subject: [PATCH 14/46] chore(main): release 1.839.0 (#11832)
* chore(main): release 1.839.0
* Apply automatic changes
---------
Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com>
---
.release-please-manifest.json | 2 +-
CHANGELOG.md | 15 ++
backend/Cargo.lock | 162 +++++++++---------
backend/Cargo.toml | 4 +-
.../parsers/windmill-parser-wasm/Cargo.lock | 48 +++---
.../parsers/windmill-parser-wasm/Cargo.toml | 2 +-
backend/windmill-api/openapi.yaml | 2 +-
benchmarks/lib.ts | 2 +-
chat-sdk/package-lock.json | 4 +-
chat-sdk/package.json | 2 +-
cli/src/core/constants.ts | 2 +-
frontend/package-lock.json | 4 +-
frontend/package.json | 2 +-
lsp/Pipfile | 2 +-
openflow.openapi.yaml | 2 +-
.../WindmillClient/WindmillClient.psd1 | 2 +-
python-client/wmill/pyproject.toml | 2 +-
typescript-client/jsr.json | 2 +-
typescript-client/package.json | 2 +-
version.txt | 2 +-
windmill-yaml-validator/package-lock.json | 4 +-
windmill-yaml-validator/package.json | 2 +-
22 files changed, 143 insertions(+), 128 deletions(-)
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 35f61c2247..a8dbca4d21 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "1.838.0"
+ ".": "1.839.0"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ef1c05022a..097a52223f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,20 @@
# Changelog
+## [1.839.0](https://github.com/windmill-labs/windmill/compare/v1.838.0...v1.839.0) (2026-10-16)
+
+
+### Features
+
+* add a Require isolated forks protection rule ([#11834](https://github.com/windmill-labs/windmill/issues/11834)) ([ab4e790](https://github.com/windmill-labs/windmill/commit/ab4e790a216b92f789e130955d7cd180b394d1fe))
+* isolate fork object storage under a per-fork prefix ([#11829](https://github.com/windmill-labs/windmill/issues/11829)) ([9375805](https://github.com/windmill-labs/windmill/commit/9375805fdf7501347a4dfb37e58f1be7fa2c5658))
+* one Entra app for the Teams bot and ms_teams Graph connect ([#11718](https://github.com/windmill-labs/windmill/issues/11718)) ([e7088e7](https://github.com/windmill-labs/windmill/commit/e7088e7f4766cd662890cdf61f2b6a5a0fce06a8))
+* route python S3 client settings through the S3 proxy ([#11819](https://github.com/windmill-labs/windmill/issues/11819)) ([de340ee](https://github.com/windmill-labs/windmill/commit/de340eed6f5520414b59166f8dc16938f7ac6c36))
+
+
+### Bug Fixes
+
+* verify Bot Framework JWT on incoming Teams activities ([#11818](https://github.com/windmill-labs/windmill/issues/11818)) ([0b1935f](https://github.com/windmill-labs/windmill/commit/0b1935f251605926760565fb7693f345f1a56312))
+
## [1.838.0](https://github.com/windmill-labs/windmill/compare/v1.837.0...v1.838.0) (2026-10-16)
diff --git a/backend/Cargo.lock b/backend/Cargo.lock
index e7317a8d5e..b17f8976f1 100644
--- a/backend/Cargo.lock
+++ b/backend/Cargo.lock
@@ -15486,7 +15486,7 @@ dependencies = [
[[package]]
name = "windmill"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-nats",
@@ -15576,7 +15576,7 @@ dependencies = [
[[package]]
name = "windmill-ai"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"async-stream",
"async-trait",
@@ -15611,7 +15611,7 @@ dependencies = [
[[package]]
name = "windmill-alerting"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -15624,7 +15624,7 @@ dependencies = [
[[package]]
name = "windmill-api"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"argon2",
@@ -15767,7 +15767,7 @@ dependencies = [
[[package]]
name = "windmill-api-agent-workers"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -15790,7 +15790,7 @@ dependencies = [
[[package]]
name = "windmill-api-assets"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -15807,7 +15807,7 @@ dependencies = [
[[package]]
name = "windmill-api-auth"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"axum",
@@ -15833,7 +15833,7 @@ dependencies = [
[[package]]
name = "windmill-api-client"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"reqwest 0.12.28",
"serde",
@@ -15843,7 +15843,7 @@ dependencies = [
[[package]]
name = "windmill-api-configs"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -15860,7 +15860,7 @@ dependencies = [
[[package]]
name = "windmill-api-debug"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"base64 0.22.1",
@@ -15882,7 +15882,7 @@ dependencies = [
[[package]]
name = "windmill-api-embeddings"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"axum",
@@ -15905,7 +15905,7 @@ dependencies = [
[[package]]
name = "windmill-api-flow-conversations"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -15921,7 +15921,7 @@ dependencies = [
[[package]]
name = "windmill-api-flows"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -15943,7 +15943,7 @@ dependencies = [
[[package]]
name = "windmill-api-groups"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -15965,7 +15965,7 @@ dependencies = [
[[package]]
name = "windmill-api-inputs"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -15979,7 +15979,7 @@ dependencies = [
[[package]]
name = "windmill-api-integration-tests"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-nats",
@@ -16015,7 +16015,7 @@ dependencies = [
[[package]]
name = "windmill-api-jobs"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"axum",
@@ -16041,7 +16041,7 @@ dependencies = [
[[package]]
name = "windmill-api-npm-proxy"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -16069,7 +16069,7 @@ dependencies = [
[[package]]
name = "windmill-api-openapi"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"axum",
@@ -16091,7 +16091,7 @@ dependencies = [
[[package]]
name = "windmill-api-schedule"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -16111,7 +16111,7 @@ dependencies = [
[[package]]
name = "windmill-api-scripts"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"axum",
@@ -16153,7 +16153,7 @@ dependencies = [
[[package]]
name = "windmill-api-settings"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"axum",
@@ -16183,7 +16183,7 @@ dependencies = [
[[package]]
name = "windmill-api-sse"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"lazy_static",
"serde",
@@ -16195,7 +16195,7 @@ dependencies = [
[[package]]
name = "windmill-api-users"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"argon2",
"axum",
@@ -16219,7 +16219,7 @@ dependencies = [
[[package]]
name = "windmill-api-workers"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -16234,7 +16234,7 @@ dependencies = [
[[package]]
name = "windmill-api-workspaces"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"axum",
"chrono",
@@ -16273,7 +16273,7 @@ dependencies = [
[[package]]
name = "windmill-audit"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"chrono",
"lazy_static",
@@ -16288,7 +16288,7 @@ dependencies = [
[[package]]
name = "windmill-autoscaling"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"axum",
@@ -16307,7 +16307,7 @@ dependencies = [
[[package]]
name = "windmill-common"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"aes-gcm",
"aho-corasick",
@@ -16423,7 +16423,7 @@ dependencies = [
[[package]]
name = "windmill-dep-map"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"chrono",
"futures",
@@ -16443,7 +16443,7 @@ dependencies = [
[[package]]
name = "windmill-git-sync"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"regex",
"serde",
@@ -16460,7 +16460,7 @@ dependencies = [
[[package]]
name = "windmill-indexer"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"astral-tokio-tar",
@@ -16487,7 +16487,7 @@ dependencies = [
[[package]]
name = "windmill-jseval"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"futures",
@@ -16504,7 +16504,7 @@ dependencies = [
[[package]]
name = "windmill-macros"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"itertools 0.14.0",
"lazy_static",
@@ -16520,7 +16520,7 @@ dependencies = [
[[package]]
name = "windmill-mcp"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -16542,7 +16542,7 @@ dependencies = [
[[package]]
name = "windmill-native-triggers"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -16573,7 +16573,7 @@ dependencies = [
[[package]]
name = "windmill-oauth"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"arc-swap",
@@ -16598,7 +16598,7 @@ dependencies = [
[[package]]
name = "windmill-object-store"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-stream",
@@ -16634,7 +16634,7 @@ dependencies = [
[[package]]
name = "windmill-operator"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"futures",
@@ -16653,7 +16653,7 @@ dependencies = [
[[package]]
name = "windmill-parser"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"convert_case 0.6.0",
"serde",
@@ -16662,7 +16662,7 @@ dependencies = [
[[package]]
name = "windmill-parser-bash"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16674,7 +16674,7 @@ dependencies = [
[[package]]
name = "windmill-parser-csharp"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"serde_json",
@@ -16686,7 +16686,7 @@ dependencies = [
[[package]]
name = "windmill-parser-go"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"gosyn",
@@ -16698,7 +16698,7 @@ dependencies = [
[[package]]
name = "windmill-parser-graphql"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16710,7 +16710,7 @@ dependencies = [
[[package]]
name = "windmill-parser-java"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"serde_json",
@@ -16722,7 +16722,7 @@ dependencies = [
[[package]]
name = "windmill-parser-nu"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"nu-parser",
@@ -16733,7 +16733,7 @@ dependencies = [
[[package]]
name = "windmill-parser-php"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"itertools 0.14.0",
@@ -16744,7 +16744,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"itertools 0.14.0",
@@ -16756,7 +16756,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py-asset"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"ruff_python_ast",
@@ -16767,7 +16767,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py-imports"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-recursion",
@@ -16790,7 +16790,7 @@ dependencies = [
[[package]]
name = "windmill-parser-r"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"serde_json",
@@ -16802,7 +16802,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ruby"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16816,7 +16816,7 @@ dependencies = [
[[package]]
name = "windmill-parser-rust"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"convert_case 0.6.0",
@@ -16833,7 +16833,7 @@ dependencies = [
[[package]]
name = "windmill-parser-sql"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16846,7 +16846,7 @@ dependencies = [
[[package]]
name = "windmill-parser-sql-asset"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"serde",
@@ -16858,7 +16858,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ts"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16876,7 +16876,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ts-asset"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"serde-wasm-bindgen",
@@ -16892,7 +16892,7 @@ dependencies = [
[[package]]
name = "windmill-parser-wac"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"ruff_python_ast",
@@ -16909,7 +16909,7 @@ dependencies = [
[[package]]
name = "windmill-parser-yaml"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -16923,7 +16923,7 @@ dependencies = [
[[package]]
name = "windmill-queue"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-recursion",
@@ -16962,7 +16962,7 @@ dependencies = [
[[package]]
name = "windmill-runtime-nativets"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"const_format",
@@ -17000,7 +17000,7 @@ dependencies = [
[[package]]
name = "windmill-sql-datatype-parser-wasm"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"getrandom 0.3.4",
"wasm-bindgen",
@@ -17011,7 +17011,7 @@ dependencies = [
[[package]]
name = "windmill-store"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-recursion",
@@ -17046,7 +17046,7 @@ dependencies = [
[[package]]
name = "windmill-test-utils"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17070,7 +17070,7 @@ dependencies = [
[[package]]
name = "windmill-trigger"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17103,7 +17103,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-amqp"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17130,7 +17130,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-azure"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17163,7 +17163,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-email"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17183,7 +17183,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-gcp"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17217,7 +17217,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-http"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17254,7 +17254,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-kafka"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17277,7 +17277,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-mqtt"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17301,7 +17301,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-nats"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-nats",
@@ -17325,7 +17325,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-postgres"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17360,7 +17360,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-sqs"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17388,7 +17388,7 @@ dependencies = [
[[package]]
name = "windmill-trigger-websocket"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-trait",
@@ -17413,7 +17413,7 @@ dependencies = [
[[package]]
name = "windmill-types"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"bitflags 2.13.2",
@@ -17432,7 +17432,7 @@ dependencies = [
[[package]]
name = "windmill-worker"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-once-cell",
@@ -17550,7 +17550,7 @@ dependencies = [
[[package]]
name = "windmill-worker-volumes"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"bytes",
"futures",
@@ -18427,9 +18427,9 @@ dependencies = [
[[package]]
name = "zstd-sys"
-version = "2.1.1+zstd.1.5.7"
+version = "2.1.2+zstd.1.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aeec9eaf2dffbbd09201e23bd0ffcbaa33bb8e9266a10734fd7ed90a85eca078"
+checksum = "481ada9c543b2323cbb7bbdbb5249177fbf0188ed959ed2c15e4b22421c84ed3"
dependencies = [
"cc",
"pkg-config",
diff --git a/backend/Cargo.toml b/backend/Cargo.toml
index dae4298a10..7513c66af1 100644
--- a/backend/Cargo.toml
+++ b/backend/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "windmill"
-version = "1.838.0"
+version = "1.839.0"
authors.workspace = true
edition.workspace = true
@@ -88,7 +88,7 @@ members = [
exclude = ["./windmill-duckdb-ffi-internal", "./parsers/windmill-parser-wasm"]
[workspace.package]
-version = "1.838.0"
+version = "1.839.0"
authors = ["Ruben Fiszel "]
edition = "2021"
diff --git a/backend/parsers/windmill-parser-wasm/Cargo.lock b/backend/parsers/windmill-parser-wasm/Cargo.lock
index 210ad3baad..935bb9ebb6 100644
--- a/backend/parsers/windmill-parser-wasm/Cargo.lock
+++ b/backend/parsers/windmill-parser-wasm/Cargo.lock
@@ -6340,7 +6340,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windmill-common"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"aes-gcm",
"aho-corasick",
@@ -6430,7 +6430,7 @@ dependencies = [
[[package]]
name = "windmill-macros"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"proc-macro2",
"quote",
@@ -6442,7 +6442,7 @@ dependencies = [
[[package]]
name = "windmill-parser"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"convert_case",
"serde",
@@ -6451,7 +6451,7 @@ dependencies = [
[[package]]
name = "windmill-parser-bash"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6463,7 +6463,7 @@ dependencies = [
[[package]]
name = "windmill-parser-csharp"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"serde_json",
@@ -6475,7 +6475,7 @@ dependencies = [
[[package]]
name = "windmill-parser-go"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"gosyn",
@@ -6487,7 +6487,7 @@ dependencies = [
[[package]]
name = "windmill-parser-graphql"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6499,7 +6499,7 @@ dependencies = [
[[package]]
name = "windmill-parser-java"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"serde_json",
@@ -6511,7 +6511,7 @@ dependencies = [
[[package]]
name = "windmill-parser-nu"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"nu-parser",
@@ -6522,7 +6522,7 @@ dependencies = [
[[package]]
name = "windmill-parser-php"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"itertools 0.14.0",
@@ -6533,7 +6533,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"itertools 0.14.0",
@@ -6545,7 +6545,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py-asset"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"ruff_python_ast",
@@ -6556,7 +6556,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py-imports"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"async-recursion",
@@ -6579,7 +6579,7 @@ dependencies = [
[[package]]
name = "windmill-parser-r"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"serde_json",
@@ -6591,7 +6591,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ruby"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6605,7 +6605,7 @@ dependencies = [
[[package]]
name = "windmill-parser-rust"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"convert_case",
@@ -6622,7 +6622,7 @@ dependencies = [
[[package]]
name = "windmill-parser-sql"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6635,7 +6635,7 @@ dependencies = [
[[package]]
name = "windmill-parser-sql-asset"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"serde",
@@ -6647,7 +6647,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ts"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6665,7 +6665,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ts-asset"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"serde-wasm-bindgen",
@@ -6681,7 +6681,7 @@ dependencies = [
[[package]]
name = "windmill-parser-wac"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"ruff_python_ast",
@@ -6698,7 +6698,7 @@ dependencies = [
[[package]]
name = "windmill-parser-wasm"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"getrandom 0.2.17",
@@ -6730,7 +6730,7 @@ dependencies = [
[[package]]
name = "windmill-parser-yaml"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"lazy_static",
@@ -6744,7 +6744,7 @@ dependencies = [
[[package]]
name = "windmill-types"
-version = "1.838.0"
+version = "1.839.0"
dependencies = [
"anyhow",
"bitflags",
diff --git a/backend/parsers/windmill-parser-wasm/Cargo.toml b/backend/parsers/windmill-parser-wasm/Cargo.toml
index bffb89e309..8b7d30f85c 100644
--- a/backend/parsers/windmill-parser-wasm/Cargo.toml
+++ b/backend/parsers/windmill-parser-wasm/Cargo.toml
@@ -12,7 +12,7 @@ resolver = "2"
members = ["."]
[workspace.package]
-version = "1.838.0"
+version = "1.839.0"
edition = "2021"
authors = ["Ruben Fiszel "]
diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml
index 6dd49e0385..bc8ea35c78 100644
--- a/backend/windmill-api/openapi.yaml
+++ b/backend/windmill-api/openapi.yaml
@@ -1,7 +1,7 @@
openapi: "3.0.3"
info:
- version: 1.838.0
+ version: 1.839.0
title: Windmill API
contact:
diff --git a/benchmarks/lib.ts b/benchmarks/lib.ts
index 8be34695d8..6586a0dda7 100644
--- a/benchmarks/lib.ts
+++ b/benchmarks/lib.ts
@@ -2,7 +2,7 @@ import { sleep } from "https://deno.land/x/sleep@v1.2.1/mod.ts";
import * as windmill from "https://deno.land/x/windmill@v1.174.0/mod.ts";
import * as api from "https://deno.land/x/windmill@v1.174.0/windmill-api/index.ts";
-export const VERSION = "v1.838.0";
+export const VERSION = "v1.839.0";
export async function login(email: string, password: string): Promise {
return await windmill.UserService.login({
diff --git a/chat-sdk/package-lock.json b/chat-sdk/package-lock.json
index 3f6046b333..3ec2e64abb 100644
--- a/chat-sdk/package-lock.json
+++ b/chat-sdk/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@windmill-labs/chat-sdk",
- "version": "1.838.0",
+ "version": "1.839.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@windmill-labs/chat-sdk",
- "version": "1.838.0",
+ "version": "1.839.0",
"license": "Apache-2.0",
"devDependencies": {
"@ai-sdk/react": "^4.0.102",
diff --git a/chat-sdk/package.json b/chat-sdk/package.json
index 20c015571d..65c515337c 100644
--- a/chat-sdk/package.json
+++ b/chat-sdk/package.json
@@ -1,7 +1,7 @@
{
"name": "@windmill-labs/chat-sdk",
"description": "Build chat interfaces on Windmill flows deployed in chat mode, from any frontend or raw app",
- "version": "1.838.0",
+ "version": "1.839.0",
"author": "Ruben Fiszel",
"license": "Apache-2.0",
"homepage": "https://github.com/windmill-labs/windmill/tree/main/chat-sdk#readme",
diff --git a/cli/src/core/constants.ts b/cli/src/core/constants.ts
index 5ee633da50..6bb4700b03 100644
--- a/cli/src/core/constants.ts
+++ b/cli/src/core/constants.ts
@@ -10,4 +10,4 @@ export const WM_FORK_PREFIX = "wm-fork";
// (e.g. utils.ts) can read it without importing main.ts and creating a circular
// dependency (main → workspace → utils → main) that triggers a TDZ.
// Re-exported from main.ts for backwards compatibility.
-export const VERSION = "1.838.0";
+export const VERSION = "1.839.0";
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 244afb2229..875df70ab0 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@windmill-labs/components",
- "version": "1.838.0",
+ "version": "1.839.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@windmill-labs/components",
- "version": "1.838.0",
+ "version": "1.839.0",
"hasInstallScript": true,
"license": "AGPL-3.0",
"dependencies": {
diff --git a/frontend/package.json b/frontend/package.json
index 9da5a41395..c7d589aa97 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,6 +1,6 @@
{
"name": "@windmill-labs/components",
- "version": "1.838.0",
+ "version": "1.839.0",
"scripts": {
"dev": "vite dev",
"dev:ui-builder": "mv static/ui_builder static/ui_builder.dev-disabled 2>/dev/null || true ; trap 'mv static/ui_builder.dev-disabled static/ui_builder 2>/dev/null || true' EXIT ; vite dev",
diff --git a/lsp/Pipfile b/lsp/Pipfile
index 8df7a058cd..07ee6af81d 100644
--- a/lsp/Pipfile
+++ b/lsp/Pipfile
@@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi"
[packages]
-wmill = ">=1.838.0"
+wmill = ">=1.839.0"
sendgrid = "*"
mysql-connector-python = "*"
pymongo = "*"
diff --git a/openflow.openapi.yaml b/openflow.openapi.yaml
index e34638c014..22935a127b 100644
--- a/openflow.openapi.yaml
+++ b/openflow.openapi.yaml
@@ -1,7 +1,7 @@
openapi: '3.0.3'
info:
- version: 1.838.0
+ version: 1.839.0
title: OpenFlow Spec
contact:
name: Ruben Fiszel
diff --git a/powershell-client/WindmillClient/WindmillClient.psd1 b/powershell-client/WindmillClient/WindmillClient.psd1
index 6d58635f0a..82ddf44583 100644
--- a/powershell-client/WindmillClient/WindmillClient.psd1
+++ b/powershell-client/WindmillClient/WindmillClient.psd1
@@ -12,7 +12,7 @@
RootModule = 'WindmillClient.psm1'
# Version number of this module.
- ModuleVersion = '1.838.0'
+ ModuleVersion = '1.839.0'
# Supported PSEditions
# CompatiblePSEditions = @()
diff --git a/python-client/wmill/pyproject.toml b/python-client/wmill/pyproject.toml
index e564514e24..0eb5369cd2 100644
--- a/python-client/wmill/pyproject.toml
+++ b/python-client/wmill/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "wmill"
-version = "1.838.0"
+version = "1.839.0"
description = "A client library for accessing Windmill server wrapping the Windmill client API"
license = "Apache-2.0"
homepage = "https://windmill.dev"
diff --git a/typescript-client/jsr.json b/typescript-client/jsr.json
index a5680a40d6..7cc0d733cb 100644
--- a/typescript-client/jsr.json
+++ b/typescript-client/jsr.json
@@ -1,6 +1,6 @@
{
"name": "@windmill/windmill",
- "version": "1.838.0",
+ "version": "1.839.0",
"exports": "./src/index.ts",
"publish": {
"exclude": ["!src", "./s3Types.ts", "./sqlUtils.ts", "./client.ts", "./wacError.ts"]
diff --git a/typescript-client/package.json b/typescript-client/package.json
index db385069bb..8c19be3caa 100644
--- a/typescript-client/package.json
+++ b/typescript-client/package.json
@@ -1,7 +1,7 @@
{
"name": "windmill-client",
"description": "Windmill SDK client for browsers and Node.js",
- "version": "1.838.0",
+ "version": "1.839.0",
"author": "Ruben Fiszel",
"license": "Apache 2.0",
"homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme",
diff --git a/version.txt b/version.txt
index 6ae9c3f1df..bb681c83bb 100644
--- a/version.txt
+++ b/version.txt
@@ -1 +1 @@
-1.838.0
+1.839.0
diff --git a/windmill-yaml-validator/package-lock.json b/windmill-yaml-validator/package-lock.json
index 2ce6b6765c..dbd79e917b 100644
--- a/windmill-yaml-validator/package-lock.json
+++ b/windmill-yaml-validator/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "windmill-yaml-validator",
- "version": "1.838.0",
+ "version": "1.839.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "windmill-yaml-validator",
- "version": "1.838.0",
+ "version": "1.839.0",
"license": "Apache 2.0",
"dependencies": {
"@stoplight/yaml": "^4.3.0",
diff --git a/windmill-yaml-validator/package.json b/windmill-yaml-validator/package.json
index 296cadecf2..02e880a4b0 100644
--- a/windmill-yaml-validator/package.json
+++ b/windmill-yaml-validator/package.json
@@ -1,6 +1,6 @@
{
"name": "windmill-yaml-validator",
- "version": "1.838.0",
+ "version": "1.839.0",
"description": "YAML validator for Windmill flow, schedule, and trigger files",
"main": "dist/index.js",
"types": "dist/index.d.ts",
From 533670f577b47c8688fcab1946fc7843e76beeb5 Mon Sep 17 00:00:00 2001
From: Ruben Fiszel
Date: Fri, 16 Oct 2026 23:34:40 +0200
Subject: [PATCH 15/46] fix the protection rules race and the Windows nsjail
profile test (#11835)
* test: run the isolated-forks rule test in its own workspace
PROTECTION_RULES_CACHE is process-wide and keyed by workspace id, so the
other base-fixture tests in protection_rules.rs, running concurrently on
their own databases, could cache test-workspace's rules without the
RequireIsolatedForks ruleset and let the fork through to the data table
copy (400 instead of 403) on main.
Co-Authored-By: Claude Opus 5.5
* test: match nsjail profile lines so the envar check passes on CRLF checkouts
script_profiles_take_envars_before_their_fixed_ones searched for
"\n{ENVARS}\n", which a Windows checkout (CRLF) never contains, failing
cargo_test_windows since v1.834.0.
Co-Authored-By: Claude Opus 5.5
---------
Co-authored-by: Claude Opus 5.5
---
backend/tests/protection_rules.rs | 22 ++++++++++++++--------
backend/windmill-worker/src/common.rs | 9 ++++++---
2 files changed, 20 insertions(+), 11 deletions(-)
diff --git a/backend/tests/protection_rules.rs b/backend/tests/protection_rules.rs
index 6a96a66f8f..bb9ef29fa2 100644
--- a/backend/tests/protection_rules.rs
+++ b/backend/tests/protection_rules.rs
@@ -692,21 +692,30 @@ async fn test_protection_rule_rename(db: Pool) -> anyhow::Result<()> {
#[sqlx::test(fixtures("base"))]
async fn test_require_isolated_forks(db: Pool) -> anyhow::Result<()> {
initialize_tracing().await;
- invalidate_protection_rules_cache("test-workspace");
+ // Not `test-workspace`: PROTECTION_RULES_CACHE is process-wide and keyed by workspace id, so
+ // the other tests here, running concurrently on their own databases, would overwrite its rules.
+ invalidate_protection_rules_cache("iso-ws");
// `dt2` is a clone governed from `gov`, but its database is this workspace's; `dt3` points
// into `gov`'s database.
let pg = r#"{"resource_type": "postgresql", "resource_path": "u/test-user/pg"}"#;
let gov = r#"{"workspace_id": "gov", "datatable": "src"}"#;
sqlx::raw_sql(
- "INSERT INTO workspace (id, name, owner) VALUES ('gov', 'gov', 'test-user');
- INSERT INTO workspace_settings (workspace_id) VALUES ('gov')",
+ "INSERT INTO workspace (id, name, owner) VALUES
+ ('gov', 'gov', 'test-user'), ('iso-ws', 'iso-ws', 'test-user');
+ INSERT INTO workspace_settings (workspace_id) VALUES ('gov'), ('iso-ws');
+ INSERT INTO workspace_key (workspace_id, kind, key) VALUES ('iso-ws', 'cloud', 'iso-key');
+ INSERT INTO group_ (workspace_id, name, summary, extra_perms) VALUES
+ ('iso-ws', 'all', 'All users', '{}');
+ INSERT INTO usr (workspace_id, email, username, is_admin, role) VALUES
+ ('iso-ws', 'test@windmill.dev', 'test-user', true, 'Admin'),
+ ('iso-ws', 'test2@windmill.dev', 'test-user-2', false, 'User')",
)
.execute(&db)
.await?;
for (w_id, datatables) in [
("gov", format!(r#"{{"src": {{"database": {pg}}}}}"#)),
(
- "test-workspace",
+ "iso-ws",
format!(
r#"{{"dt1": {{"database": {pg}}}, "dt2": {{"database": {pg}, "governed_by": {gov}}},
"dt3": {{"reference": {gov}}}}}"#
@@ -724,10 +733,7 @@ async fn test_require_isolated_forks(db: Pool) -> anyhow::Result<()> {
}
let server = ApiServer::start(db.clone()).await?;
- let base = format!(
- "http://localhost:{}/api/w/test-workspace",
- server.addr.port()
- );
+ let base = format!("http://localhost:{}/api/w/iso-ws", server.addr.port());
let resp = authed(
client().post(format!("{base}/workspaces/protection_rules")),
"SECRET_TOKEN",
diff --git a/backend/windmill-worker/src/common.rs b/backend/windmill-worker/src/common.rs
index 63c5d8d647..32bd6dc7e9 100644
--- a/backend/windmill-worker/src/common.rs
+++ b/backend/windmill-worker/src/common.rs
@@ -2771,11 +2771,14 @@ mod tests {
include_str!("../nsjail/download.ruby.config.proto"),
),
] {
- let at = profile
- .find("\n{ENVARS}\n")
+ // Line by line: a Windows checkout gives the profiles CRLF endings.
+ let lines = profile.lines().collect::>();
+ let at = lines
+ .iter()
+ .position(|l| *l == "{ENVARS}")
.unwrap_or_else(|| panic!("{name}: no {{ENVARS}}"));
assert!(
- !profile[..at].contains("\nenvar:"),
+ !lines[..at].iter().any(|l| l.starts_with("envar:")),
"{name}: a fixed envar precedes {{ENVARS}}"
);
}
From 16c8be2355b919878091769810749c54c2f0a09d Mon Sep 17 00:00:00 2001
From: Ruben Fiszel
Date: Sat, 17 Oct 2026 09:29:49 +0200
Subject: [PATCH 16/46] feat: warn at worker startup when WHITELIST_ENVS
forwards a secret-shaped variable (#11838)
Co-authored-by: Claude Opus 5.5
---
backend/src/main.rs | 2 +
backend/windmill-common/src/worker.rs | 138 ++++++++++++++++++++++++++
2 files changed, 140 insertions(+)
diff --git a/backend/src/main.rs b/backend/src/main.rs
index a577978d48..6ffeb51ace 100644
--- a/backend/src/main.rs
+++ b/backend/src/main.rs
@@ -849,6 +849,8 @@ async fn windmill_main() -> anyhow::Result<()> {
let worker_mode = num_workers > 0;
if worker_mode {
+ windmill_common::worker::warn_secret_shaped_whitelist_envs();
+
#[cfg(any(target_os = "linux"))]
if let Err(e) = disable_oom_group() {
tracing::warn!(
diff --git a/backend/windmill-common/src/worker.rs b/backend/windmill-common/src/worker.rs
index a28204d202..868f7fe29e 100644
--- a/backend/windmill-common/src/worker.rs
+++ b/backend/windmill-common/src/worker.rs
@@ -2808,6 +2808,93 @@ pub fn load_whitelist_env_vars_from_env() -> std::vec::IntoIter