mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-29 08:06:46 +00:00
8ec6beed3a4ef550ecd86991122b8a8757ef7021
207
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
cb5d6a92c2 | fix(mcp): hold each MCP call to its own token, workspace and route (#12709) | ||
|
|
3ad867ee65 |
fix: opt the audit probe token into superadmin (#12710)
Since new tokens carry superadmin only when minted asking for it, the nonmember superadmin's token ran as a plain user and could not run the g/all-shared on-behalf script. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
51e9017c67 |
feat: flag risky tokens and add a superadmin token review (#12693)
* feat: flag risky tokens in the tokens drawer and add a superadmin token review Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: load the whole token review at once and pin the risk rules in a test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: a job tag filter alone does not narrow a privileged token Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: flag the rights a token carries, not the rights of its owner Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: flag tokens that work in every workspace and filter the review by flag Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf: compute token risks in a view and page the review with a cursor Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: trust only reserved labels or short lifetimes as server-managed, keep the review cursor on raw rows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: leave a day of clock skew on the server-managed token lifetime Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: make the instance-wide token list and deletion an EE feature Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep the token list EE in the CE image, which builds private Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to b3c5cbb7edcc42f3db92865896d472cdd8842cf9 This commit updates the EE repository reference after PR #1020 was merged in windmill-ee-private. Previous ee-repo-ref: 51a2425e60989d727d40330bdfa7b2d302224c9c New ee-repo-ref: b3c5cbb7edcc42f3db92865896d472cdd8842cf9 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> |
||
|
|
b2f3986f94 |
feat: edit token expiration and allowed IPs, widen only as far as mintable (#12703)
* feat: edit token expiry and allowed IPs, widening only as far as mintable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: correct the job-token guard comments on app token mints Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: evict an edited token's cached identity on every API server Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: audit a token's full grant on creation and before/after values on edits Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
7e79229aa4 |
feat: edit token scopes from the CLI and show token access in token lists (#12694)
* feat(cli): edit token scopes with wmill token update-scopes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: show a token's workspace binding and admin rights in token lists Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep unlabeled tokens from breaking the token list Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: correct the unlabeled-token comment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
9643ba09a4 |
feat: connect native trigger accounts through the resource connect flow (#12352)
* feat: connect native trigger accounts through the resource connect flow Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep resources when a workspace app is removed and unlink stale accounts on reconnect Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: reconnect sandbox resources through their client and keep a refresh off a moved variable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: check an account is unused outside the caller's RLS and keep a racing refresh's rotated token Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: set unlink_account in the rust client's variable update Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: refresh workspace-app trigger accounts through the variable store Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: store a refreshed token only while its variable still links the account Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: lock a reconnected variable before writing its secret Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: let workspace oauth apps serve resources, opt-in for existing apps Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * fix: keep the account of a non-expiring workspace-app token Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * fix: use alert actions and name the trigger shared account Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * feat: list the instance's other oauth clients on the oauth apps page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * fix: show resource type display names on the oauth apps page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * fix: list instance oauth clients first on the oauth apps page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * refactor: keep workspace oauth apps for triggers only Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * fix: ask a trigger connection for its own scopes and list google trigger scopes as options Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * feat: show which oauth app a resource was connected through Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * fix: name no oauth app for client credentials resources Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * feat: confirm before reconnecting a shared resource Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * fix: word the reconnect confirm without claiming the resource is shared Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFoRScnHFiC41tCGBML * chore: update ee-repo-ref to c05fadda9d6bd772e56cec00d5b9c721afab4aed This commit updates the EE repository reference after PR #975 was merged in windmill-ee-private. Previous ee-repo-ref: dc0d763b43fafb49b5cf805a8f29e26989c21ea1 New ee-repo-ref: c05fadda9d6bd772e56cec00d5b9c721afab4aed Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> |
||
|
|
f5644d7f43 |
feat: make new tokens workspace-bound and rights-free unless opted in (#12695)
* feat: make new tokens workspace-bound and rights-free unless opted in Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: honour withheld token rights in devops, instance db and webhook rotation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: bump ee ref Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: name token admin explicitly in every token insert Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: carry withheld token rights through caller JWTs and keep nonmember superadmin mints working Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: bump ee ref Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to 74c3a4ce446d8d9abd69c69da5be8bfdb6d775f4 This commit updates the EE repository reference after PR #1018 was merged in windmill-ee-private. Previous ee-repo-ref: 28e9391cff06b84fff9bd420a8b244c35588523a New ee-repo-ref: 74c3a4ce446d8d9abd69c69da5be8bfdb6d775f4 Automated by sync-ee-ref workflow. * feat: make the instance-wide token choice explicit in the token form Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: rename the token scope switch to restrict to specific scopes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: refuse mcp oauth approval from a token withholding admin, warn on empty scope restriction Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: workspace choice on the cli login page and hints for workspace-bound cli tokens Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: bind a cli login token only to the workspace the cli names Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> |
||
|
|
f555024e73 |
feat: restrict api tokens to allowed ip ranges (#12679)
* fix: derive the client ip from trusted proxies only Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: read forwarded-for as raw bytes and add an explicit client ip header Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: strip the source port from cloudfront-viewer-address before parsing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * style: rustfmt client_ip Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: restrict api tokens to allowed ip ranges Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: inherit token ip restrictions on every mint and refuse login links Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep a webhook token's ip restriction when rotating it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: pin that webhook token rotation keeps allowed_ips Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf: resolve the client ip only for restricted tokens and throttle refusal logs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to 49b7074a9ce31a2b7cd5a730c9b9d4b8295d0c7e This commit updates the EE repository reference after PR #1011 was merged in windmill-ee-private. Previous ee-repo-ref: 6c8458630cea7c3082771db9f772c964ef11dcdf New ee-repo-ref: 49b7074a9ce31a2b7cd5a730c9b9d4b8295d0c7e Automated by sync-ee-ref workflow. * feat: show the caller's ip so a device can check what to allowlist Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: make token ip allowlists an ee feature Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: move token ip allowlist logic into ee Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to cf0cee4ef89bd0b8b2399ced7b12ccc9a3d43dd8 This commit updates the EE repository reference after PR #1017 was merged in windmill-ee-private. Previous ee-repo-ref: 98f8ade3347f3dcfc73962f4aa39618282f73fa3 New ee-repo-ref: cf0cee4ef89bd0b8b2399ced7b12ccc9a3d43dd8 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> |
||
|
|
b3ab8e22b3 |
feat: overwrite or discard each path conflict when reassigning user items (#12683)
* feat: overwrite or discard each path conflict when reassigning user items Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: guard offboarding conflict resolution against stale rows and cascades Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: match the departing user's rows literally in offboarding cleanup Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
cc855e6fd9 |
fix: redact secrets in instance settings reads unless explicitly revealed (#12682)
* fix: redact secrets in instance settings reads unless explicitly revealed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cli): compare redacted remote settings against unchanged local secrets Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: redact nuget, maven, cargo, webhook and otel header credentials too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cli): mask get-config secrets from servers that do not redact Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cli): refuse a masked get-config export from a server that cannot restore it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cli): word the get-config prompt for servers that do not redact Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
00e354dade |
fix: match flow step pickers to the role and keep picked settings (#12654)
* fix: hide hub and inline code from roles that cannot add them to flows * fix: list scripts of the requested kind for roles without code * fix: keep trigger and approval settings of empty step picks * test: run the operator flow tests one at a time |
||
|
|
6c2c5cf46c | fix: hold the configured AI key to its output token limits (#12543) | ||
|
|
e24a4309d0 |
fix: resolve the caller's role capabilities at authentication (#12501)
* fix: resolve the caller's role capabilities at authentication * chore: update ee-repo-ref to e4bfe4229dfd07f6c356835c2ac0e80c2729d582 This commit updates the EE repository reference after PR #990 was merged in windmill-ee-private. Previous ee-repo-ref: 637d417668a1c3b4203cfedf782bd72648fdb102 New ee-repo-ref: e4bfe4229dfd07f6c356835c2ac0e80c2729d582 Automated by sync-ee-ref workflow. --------- Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> |
||
|
|
2c7d3fa98f | fix: serve only enabled models on the workspace's configured AI key (#12527) | ||
|
|
a718720fd6 |
fix: let non-admins read an admin-approved GitHub App repository (#12524)
* fix: let non-admins read an admin-approved GitHub App repository An admin's save of an app-backed git_repository resource records the url it resolves to in github_app_repo_approval. Non-admins who can read the resource are then served that repository through the installation, by repo_archive and git_commit_hash, until the url (or a $var: it names) changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep the approved repository url on the resource row A path-keyed approval table outlived its resource through every writer that moves or deletes resources by path (username rename, offboarding, deletes), so a new resource at a freed path could inherit an approval. On the row, it follows renames and dies with the resource. Also: an unresolvable $var: no longer fails an admin's save, and the admin-or-not caller reuses GitRemoteCaller. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: record the approved repository after the write commits Resolving a $var: url takes a second pool connection and maybe a secret backend, which must not be held under the write's row lock. The update applies only while the row still holds the url the admin saved, and an admin save that names no app-backed repository clears the approval. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: point the EE ref at the GitHub App approval branch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep approvals in a side table and approve only literal urls The approval moves from a resource column to github_app_repo_approval, whose FK cascades on resource renames and deletes like resource_version. It is now written in the admin's write transaction, from the saved row, so it commits with the value it approves and a delayed approval can no longer undo a later revocation. Only a save that carries the value, and only a literal url, is approved: a $var: resolves to whatever its owner sets, which the admin never saw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to 2d094f0018c2474cbc47f2e6e81f7d53e158f87d This commit updates the EE repository reference after PR #993 was merged in windmill-ee-private. Previous ee-repo-ref: 2080e6f837108b6a3c0439b96257df66583cc487 New ee-repo-ref: 2d094f0018c2474cbc47f2e6e81f7d53e158f87d Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> |
||
|
|
fffef91888 |
fix: keep group run-as principals when renaming a group-* member (#12409)
* fix: keep group run-as principals when renaming a group-* member Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: assert the run-as move never receives a group principal Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
161ab6f581 |
fix: move handler paths when renaming or offboarding a user (#12420)
* fix: move handler paths when renaming or offboarding a user Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: move a schedule's skip handler path on rename and offboarding Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: restart trigger listeners whose error handler path moved Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: move command scripts and default app on rename and offboarding Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
a64dc9a560 |
fix: keep static input references in raw-app source deploy policies (#12428)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
162c6e4da6 |
feat: bring ai agents in line with scripts and flows (#12311)
* feat: give ai agent drafts their own agent draft kind * feat: keep an agent's deployed identity when a deploy keeps one unnamed * refactor: read agent drafts by their kind instead of probing resources * feat: give the agent editor the script and flow editors' draft controls * docs: describe agent drafts as their own draft kind * fix: always autosave an agent edited in a session tab * revert: keep naming an agent's deployed identity on the client Deploying an agent draft goes back to sending the deployed identity it keeps, as main does, instead of the server filling it in when a write asks to keep one it does not name. Every other kind keeps only an identity a write names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep an agent's deployed identity when Edit as JSON saves its draft The JSON view now loads the agent's draft, which never carries the identity, so a save restates the deployed one as a draft deploy does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: type the deployed agent value read in the resource editor Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: keep agent drafts as resource drafts, typed by the drafts listing Drops the agent draft kind (its enum value, migrations, kind check and the draft-kind rules mirrored in Rust and TypeScript). Agent drafts stay resource drafts, private to their author like every resource draft. /drafts/list now reports a resource draft's resource_type (the deployed row's, else the one the draft names), and for an agent its description as summary and its path as draft_path, so the Review & Deploy page, the session changes bar and the session's agent list tell agents apart without fetching each draft. The agent editor keeps the script and flow editors' draft controls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep the agent role check and key the agent editor's draft prompts by resource Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: place the agent editor's draft status as the script and flow editors do On its own page it leads the actions, followed by Diff; in the dialog and the session pane, which draw their own bar, it sits beside the agent's name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: drop the agent editor's other users' drafts handling until agent drafts are shared Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: ask before leaving the agent dialog with edits auto-save has not saved Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: draft owner avatar and add-to-AI-context on agent rows, as on script and flow rows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2 * feat: agents duplicate, share from their editor and Recent card, and appear in the chat's @ picker Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2 * fix: an agent's draft badge opens the agent editor and names it an agent Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2 * fix: offer +@ on an agent's Recent card while the composer is open Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2 * fix: keep the editor header's kind to the items it heads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2 * fix: type the not-found header's kind as the editor header takes it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2 --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
1583207af7 |
fix: move schedule and trigger run-as when renaming a user (#12368)
* fix: move schedule and trigger run-as principals when renaming a user Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: let kafka pending commits follow a renamed trigger path Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep group run-as when renaming a legacy group-prefixed member Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
484a7699db |
feat: move a live ai session into a workspace fork with its drafts (#11602)
* feat: move a live ai session into a workspace fork with its drafts Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: guard session moves against concurrent turns and unsaved edits Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: harden the draft transfer against bound tokens, key drift and concurrent saves Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore: point ee-repo-ref at the moved_to_fork registration Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore: point ee-repo-ref at the ee branch merged with its matching main Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: re-copy drafts into a new fork and keep other tabs in step with a move - A new fork now gets the same transfer as an existing one, with replace_existing set only when this move created the fork, so a draft saved after the clone reaches the fork and an existing fork's own drafts still go through the conflict check. - The transfer runs the operator composition check on each draft in the target workspace, the same check as a direct save there. - Editors already open on a moved item in the fork reload it from the server. - Other tabs on the session hold their composer during a move and adopt the session's new workspace when it ends. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: lock the composer during a move and copy only the locked source drafts - The tab doing a move disables its composer until the move ends, and the move checks again for a running turn once a new fork exists. - Saves still pending in editors open in an existing fork are flushed before the transfer, so they surface as conflicts instead of landing on the moved draft later. - The transfer copies, conflict-checks and removes only the source rows it locked and validated; a draft saved at a requested key after the lock is left out. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: keep fork drafts with no source row and re-read the move's drafts on confirm - replace_existing deletes only the fork drafts the transfer replaces, so a draft discarded in the parent after the clone does not take the fork's copy with it. - Confirming a move lists the session's drafts again once no turn can start, and sends the user back to the dialog if the list changed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: let a move be retried after its conflicts are resolved - Move stays enabled while the dialog lists conflicts; confirming re-reads them, so a draft discarded in the fork meanwhile no longer blocks it. - A dialog left open while another tab moved the session closes instead of moving from the old workspace. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: refuse to confirm a move while a turn runs A turn started while the move dialog was open owns the cross-tab hold the move would take, and the move would release it while the turn still runs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: disable moving a session again while a move runs Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: re-read the session's drafts once a new fork exists Creating the fork takes seconds, during which an edit in the session's preview can save a draft in the parent that the move's list did not have. The move now flushes and lists the drafts again before the transfer, and reopens the dialog on the created fork when they changed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: keep restricted roles from creating a fork through a session move The move's fork gate checked only the workspace's forking rule. A role missing a capability would get the default role in a fork it creates, so the gate also refuses restricted roles, as the workspace picker does. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: hold the session read-only while it moves into a fork An edit in the session's preview during a move saves a draft in the workspace being left, after the move listed what it brings, at any of its awaits. The session now reads as read-only for the whole move, so the preview shows its items without an editor until the move ends. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: close only draft editors during a move, and say why Variable, resource and trigger editors save on click and write no draft, so closing them during a move protected nothing and lost a half-filled form when the move stopped. Only the editors that save drafts close, and the pipeline tab names the move instead of Use mode. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: close variable, resource and trigger editors during a move too They keep their edits as drafts like the other editors, so an edit during the move could save one in the workspace being left. Their state lives in the draft, so closing them loses nothing; they reopen in the fork. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: flush every code editor through one registry, and name the move in editor tabs - Monaco's Editor registers in pendingEditorFlush next to SimpleEditor, and the move drains that registry, so SimpleEditor buffers (step input expressions, resource and variable JSON fields) also land before it. The separate keystroke registry is gone. - A flow, script or app editor tab closed for a move says it reopens once the move ends, instead of showing the parent's viewer. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: re-point unresolvable identities in drafts a move copies into a fork Fork creation re-points an app policy or trigger in a cloned draft that names nobody in the fork at its creator, since a deploy there rejects an identity that does not resolve. The transfer copied drafts without that step, and replace_existing overwrote the clone's repaired copy. The draft half of the repoint is now shared and runs on the rows a transfer copies. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: drop script lineage a fork does not have when copying drafts into it A script draft kept its base and parent_hash on the grounds that a fork shares its parent's script hashes. That holds for what the fork cloned, but not for a version deployed in the parent afterwards, and a deploy in the fork naming it as parent is refused. The copy now keeps the lineage only when the target has that version. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * test: pin that a transfer keeps script lineage the fork has Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: drain draft editors before closing them for a move Closing an editor drops an edit it has not yet handed to its draft save, so a keystroke typed just before the move could be lost. The editors are now flushed while still mounted, and closed right after with no await in between. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: hold every turn during a move, and state the repoint's contract - The chat manager refuses sends, retries and message edits while a move runs, from its first step, handing the text back. The composer was locked but a retry or an edit could still start a turn in the parent. - A move into an existing fork checks again for a running turn after saving that fork's pending edits. - repoint_unresolvable_draft_identities documents that it authorizes nothing and when its unscoped form may be used. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: refuse a move while an editor holds text that is not valid JSON That text never reaches the draft, and the move closes the editor holding it. The move now refuses before closing anything, as opening a session from a page drawer already does. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: check for invalid JSON after the editors have parsed what was flushed The JSON editors parse a flushed buffer in an effect, so the check reads the registry after a tick, as RunForm and the page drawer already do. The message says the editor is in the preview. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * perf: look script lineage up by key when copying drafts The lineage check compared a hex rendering of every script hash, which ruled out the primary key and scanned the target's script versions for each script draft, fork creation included. It now converts the draft's 16-digit hex to the bigint column, guarded so a malformed value never reaches the cast. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: stop preview input from the move's first step The editors stay mounted while the move drains them, and a keystroke typed during that drain was lost when they closed, or left in the parent of an existing fork. The preview tabs are inert from the move's first step, so nothing new reaches an editor after the drain starts. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: update the local draft markers for drafts a move transfers The transfer bypasses the syncer that keeps localDraftHints, and lists prefer a hint over the server's flag, so the parent kept its markers after "Remove these drafts". The parent's hints are cleared for removed drafts and the fork's set for copied ones. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat: move a session to any workspace of its family A session could only move into a direct fork of its workspace. The picker now lists the whole family and lets a new fork be based on any of its workspaces, and /drafts/transfer accepts any target with the same root. A fork the move creates from elsewhere holds that base's drafts, so its drafts are never replaced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: gate fork creation in the move picker on the fork capability Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: refuse to move a pipeline draft based on a version the target lacks A pipeline node deploys with its script hash as parent_hash, so a move to a workspace without that version left a draft whose Deploy all fails there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: check the move's token against the target by re-authenticating it The transfer endpoint looked the caller's token up in the `token` table, so an external-JWT login, which has no row there, could never move a session. It now resolves the same token against the target workspace, which refuses a token bound to the source whatever its kind, and still refuses job tokens. Also stop calling the move target a fork in the model note, the menu item, the editor placeholders and the moving notices: it can be the root or a sibling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: check a move's writes with the rights its token carries in the target The transfer re-authenticated the token against the target but then checked writes with the user's database membership there, so a JWT whose claims are narrower than that membership could copy a draft to a path it cannot save to directly. The identity the re-authentication returns is now the one the checks and the copy use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep an unsent session out of the move after main's session refactor An unsent session holds its workspace in `pending_workspace_id`, which `createSession` rewrites when it reuses the blank session; moving it set `workspace_id`, so a later new session from the old workspace acted on the fork. The move menu item is hidden until the session has a `workspace_id`. The transfer test's JWT claims also set main's new `mcp_client` field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: move the drafts a session's user edited by hand The move's draft list read only the chats' `modifiedItems`, so a draft the user edited in a session tab, which main now records in `sessionHandEdits` and the Changes bar counts, stayed behind in the workspace left. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep raw app edits and report draft races on session move Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: offer to move the session when switching fork in the breadcrumb Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: pass the optional don't move handler through onClick Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to 3ad072124c3682e282829dd7213e42a6e28cf1fa This commit updates the EE repository reference after PR #856 was merged in windmill-ee-private. Previous ee-repo-ref: 90af10fe72bfcb981abaa119239a63d085030215 New ee-repo-ref: 3ad072124c3682e282829dd7213e42a6e28cf1fa Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> |
||
|
|
a9f5a9caa0 |
feat: gate public apps on cloud plans and unpublish them on archive (#12321)
* feat: require a paid plan for public apps on Windmill Cloud On the shared cloud, refuse any app deploy that leaves the app public (execution_mode anonymous) unless the workspace's billing root is premium: creating one, switching to public, and redeploying an app that is already public. Switching away from public stays allowed; serving is unchanged. The app access UI disables Public and links to the upgrade. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: word the public-app notice for undeployed apps and test switching to public Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: read the app workspace's own plan for the public option Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: make a workspace's public apps private when it is archived Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: archive public apps to publisher mode, not viewer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: use publisher as the non-public mode Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
a6ec7d0c18 |
perf: list audit logs by timestamp so only recent partitions are read (#12309)
* perf: list audit logs by timestamp so only recent partitions are read Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: pin audit log paging by (timestamp, id) cursor Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to d7d509d0955c52f83afd0bf8b61a0e811162c16f This commit updates the EE repository reference after PR #971 was merged in windmill-ee-private. Previous ee-repo-ref: 07dcbcda7762b5efab7caa515122066fa274c039 New ee-repo-ref: d7d509d0955c52f83afd0bf8b61a0e811162c16f Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> |
||
|
|
6f04292ea7 |
feat: let integration triggers use any connection of their type (#11968)
* feat: let integration triggers act through any connection of their type Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep a connected resource intact when an integration trigger reconnects it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: pin the ee companion branch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: refresh the sqlx cache after merging main Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: leave a resource connected from Resources to Resources Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: name integration triggers in the breadcrumb and the remaining copy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to effb55d778943537b96a9b0af26c2e24ca8b4686 This commit updates the EE repository reference after PR #916 was merged in windmill-ee-private. Previous ee-repo-ref: 1dfdc11380b866b976f83efe4d0c5203d5e83ccf New ee-repo-ref: effb55d778943537b96a9b0af26c2e24ca8b4686 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> |
||
|
|
0c87c651f4 |
fix: revoke MCP OAuth grants when their token or user goes away (#12282)
* fix: revoke an MCP OAuth refresh grant when its access token is deleted Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: lock the access token before the refresh grant, evict expired mcp tokens Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: revoke all MCP OAuth grants when a user is disabled, deleted or removed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: take the mcp grant lock before writing a user's tokens Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: lock the user's password row as the mcp grant lock Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: revoke tokens before grants, lock the account before the membership Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to 968437f1f4e912b26b828f88f41dfcfa9bfac6f5 This commit updates the EE repository reference after PR #969 was merged in windmill-ee-private. Previous ee-repo-ref: 65642604e613c7c71cbb74c4f7a38589ac943ed3 New ee-repo-ref: 968437f1f4e912b26b828f88f41dfcfa9bfac6f5 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> |
||
|
|
e6072c08d1 |
feat: opt-in superadmin access for MCP tokens, same on both mint paths (#12263)
* feat: opt-in superadmin access for MCP tokens, same on OAuth and token paths Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep MCP superadmin access opt-in across approvals and promotions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: place the MCP superadmin rights toggle under access with a visible hint Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: put superadmin rights above the tool list, on by default for a locked non-member workspace Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: explain MCP superadmin rights in the toggle tooltip Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: say why the MCP workspace picker lists only memberships for a superadmin Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
9dedc42b4e |
fix: reserve the system usernames used for jobs and audit logs (#12236)
* fix: reserve the usernames Windmill writes as job creators and audit authors * chore: update ee-repo-ref to 9f8892d5f110e844937f74433ad436fe4c5233f6 This commit updates the EE repository reference after PR #957 was merged in windmill-ee-private. Previous ee-repo-ref: 7dfe3cce0247ec29ebfe9bc8f0771827408027c4 New ee-repo-ref: 9f8892d5f110e844937f74433ad436fe4c5233f6 Automated by sync-ee-ref workflow. --------- Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> |
||
|
|
05d08f8444 | parse app and builder-check runnables once with RunnableRef (#12249) | ||
|
|
497245bcea |
feat: add a run capability to workspace roles (#12225)
* feat: add a run capability to workspace roles Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: check run in preview handlers so in-job data table queries pass Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: disable run controls for roles without run Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: hide dbt resume from roles without run Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
f9448bf25b |
feat: filter the audit log by run (#12190)
* feat: filter the audit log by run Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: say a nested approval lists under its subflow Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: put the run's audit logs in a menu on the left of its actions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf: open a run's audit logs on the run's own time range Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: include the run's steps and subflows in the run filter Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: name each step and mark mocked or skipped steps in run audit entries Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: show a step's id in the resource cell instead of next to the operation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep step details in the audit drawer and show its parameters as json Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to 0bb5b777e634dadd154c0adfe6d26251560f9283 This commit updates the EE repository reference after PR #946 was merged in windmill-ee-private. Previous ee-repo-ref: b2f1890730a3368019183985161744187b5323a7 New ee-repo-ref: 0bb5b777e634dadd154c0adfe6d26251560f9283 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> |
||
|
|
da60e86035 |
fix: authorize the existing runnable when updating a native trigger (#12197)
The update handler only checked scopes and write access on the runnable in the request body, so a member could re-point another user's native trigger to a runnable of their own. Check the stored runnable too, as delete and setenabled already do. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
2aa6059e58 |
fix: reserve the username anonymous used by logged-out visitors (#12146)
* fix: reserve the username anonymous used by logged-out visitors * chore: update ee-repo-ref to fd0a13b710988f51d38751cd7e493d3ce8739378 This commit updates the EE repository reference after PR #940 was merged in windmill-ee-private. Previous ee-repo-ref: 5c6e145f79df2fef2aa403b7ab2336ffba7f0c8b New ee-repo-ref: fd0a13b710988f51d38751cd7e493d3ce8739378 Automated by sync-ee-ref workflow. --------- Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> |
||
|
|
45f256a5a1 |
feat: accept MCP access tokens from an external OIDC issuer (#12085)
* feat: accept MCP access tokens from an external OIDC issuer With the mcp_external_idp instance setting, every MCP URL also accepts an access token of an external OIDC issuer, told apart from Windmill's own by its iss. The token's OAuth client is mapped to a workspace and a selection of tools; the request acts as the existing Windmill user with the token's email, under that selection. Runs record the client in mcp_client and give it to steps as WM_MCP_CLIENT; tool calls and refusals are audited with both identities. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: harden external MCP token verification Refuse ID tokens, tokens before their nbf, and emails the issuer marks unverified; let a cached signing key expire so a withdrawn key stops verifying; fall back to the token's asymmetric alg for keys published without one; reject clients configured without an issuer or with an id longer than the column recording it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: refuse deactivated accounts and untyped tokens on external MCP auth Read password.disabled, since instance deactivation has no Windmill token to revoke on this path. Without a configured audience, take only tokens typed as access tokens (at+jwt header or a Bearer typ claim), so an ID token cannot stand in for one. Require https for the issuer except on localhost. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: refuse ID tokens with an audience set, parse the issuer host Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: take an external MCP token's groups for the request instead of storing them When sso_groups_claim is set, the IdP-managed instance groups of an external MCP request come from the token's claim alone, mapped through their external_id with nested paths counting for their ancestors. Nothing is written, and an absent claim means no IdP groups, so removing a user from every group revokes at the next token. Entra's overage pointer is refused rather than read as no groups. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: give external MCP clients the token access levels, one card per client A client takes the same access as a Windmill token: read, read and run, build and run (the session toolset, bound to the client's workspace), or scripts and flows as tools. The settings editor reuses McpAccessPicker, one collapsible card per client. The caller's JWT carries mcp_client so runs the session toolset starts record the client too. With token groups in use, admin rights a managed group grants follow the token, and workspace groups are kept by source rather than by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep a client's tool selection across reopening its card Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: tidy the MCP external identity provider form Show it under SSO only, shorten its description with details in a tooltip, and give its fields form labels, hints and tooltips. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: leave default claim names empty, shorten auth setting descriptions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: report an external MCP token's groups in whoami Requests and jobs started through an external MCP token act with the token's groups; whoami returned the stored memberships instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep stored roles for external MCP requests Only group memberships follow the token. Admin and superadmin roles stay as stored, kept current by SCIM and SSO login: their source is not recorded, so a group-derived demotion also stripped directly granted admins and left operator restrictions unapplied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: record the MCP client on on-behalf-of runs and AI agent tool steps On-behalf-of runs now hand push the MCP caller, which push uses only to record the client while it fetches the run's own permissions. AI agent tool jobs read the client from job_perms, so their steps see WM_MCP_CLIENT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep the MCP client off v2_job The client is needed only while a job is queued, which job_perms covers; a finished run's client is in its audit entry. This leaves the job history table unaltered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to e9e94030cebd5afb0c8156ee46af2025bbe8778a This commit updates the EE repository reference after PR #934 was merged in windmill-ee-private. Previous ee-repo-ref: 7bdd6e8067a72e847ed0372ddc79a84f288946cf New ee-repo-ref: e9e94030cebd5afb0c8156ee46af2025bbe8778a Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> |
||
|
|
37b1ea23f9 |
fix: keep secret values out of stored step inputs from flow_env (#12130)
* fix: keep secret values out of stored step inputs reached through flow_env Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: pass secret flow_env entries to subflow steps as references Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: cover a subflow input computed from a secret flow_env entry Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: detect a secret flow_env read only through a flow_env access Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: pass a subflow input computed from a secret flow_env entry encrypted Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf: load flow_env secrets only for an input that reads flow_env Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
09af2ddf7c |
fix: one username rule for all paths that create or rename a user (#12107)
* fix: one username rule for every path that creates or renames a user * chore: update ee-repo-ref to 26663361632280a25b964e6f3944e503dca2a366 This commit updates the EE repository reference after PR #936 was merged in windmill-ee-private. Previous ee-repo-ref: c424efa6a6c8c0edd90f52c567d4a1c00b76e2e4 New ee-repo-ref: 26663361632280a25b964e6f3944e503dca2a366 Automated by sync-ee-ref workflow. --------- Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> |
||
|
|
ad571c6226 | fix: scope rename's group membership update to the user's workspace (#12043) | ||
|
|
ca8f0a16c1 |
feat: per-role fork capability and fork role mapping on rulesets (#12054)
* feat: fork capability per role and fork role mapping on rulesets Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep unset fork for unrestricted roles and apply fork role mapping to fork-owner adds Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: fork_roles feature usage telemetry Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: derive an unset fork in the role editor as the server does Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to d535972f0b35c6a7f257720816bdaec18465adef This commit updates the EE repository reference after PR #929 was merged in windmill-ee-private. Previous ee-repo-ref: 4a8d59cd1563382fcec85b1367f7e15e09bc13c2 New ee-repo-ref: d535972f0b35c6a7f257720816bdaec18465adef Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> |
||
|
|
45d3c951bb |
fix: restore workspace pg_dump changes reverted by 812ff6ea5e (#11988)
|
||
|
|
812ff6ea5e |
Merge commit from fork
Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
8af484292f |
Merge commit from fork
The database name of a Postgres resource was the bare positional argument of pg_dump and the value of psql's --dbname. Both forms are interpreted: as a positional argument a name opening with `-` is read as an option of pg_dump (`--file=`, `--restrict-key=`), and in both forms a name holding `=` is expanded as a libpq connection string that overrides the host, port and user Windmill passed before it. libpq reads PGDATABASE as a plain name, neither parsed nor expanded, so the name now goes there. The change is in the shared helpers, so it covers every caller: import_pg_database, export_pg_schema, datatable_clone::make_copy, generate_initial_datatable_migration and pg_import_dump. pg_dump's invocation is extracted into pg_dump_command() beside the existing psql_command() so the argument vector can be asserted on directly. Beside that: - resolve_pg_source_checked_with_kind() now refuses a name opening with `-` for every source and target it resolves, where validate_dbname() only ever reached a target. The check is deliberately narrower than validate_dbname(): a source is any database a user already has, and `2024_archive`, `my.db` or a non-ASCII name are all names Postgres accepts and resources carry today. - export_pg_schema and import_pg_database now require the `code` capability, the one the data table migration endpoints next door already ask for. Both make the API server run pg_dump/psql as children of its own process against a database the request names, so the role that may not run code should not reach them; they stay open to every author, who can run pg_dump in a job anyway. The frontend offers both only from the database manager. Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
7a29abc7ee |
feat: run a workspace handler when a variable's value expires (#10837)
* feat: run a workspace handler when a secret variable expires Secret variables gain an optional `value_expires_at`, and a workspace can point at a script or flow to run once that date passes, so a rotation is driven by the platform instead of tracked out of band. The secret never leaves the database. The sweep selects the path, description and expiry and nothing else, so the handler is given a reference to rotate rather than a value to handle. Job results are stored in cleartext and shown in Runs, which is what makes that a boundary rather than a preference; a test asserts the job's args never contain the value. Each row is claimed by writing `expiration_dispatched_for` in the same transaction as the push, so a failed push un-claims it and a lost race claims nothing. Moving the date re-arms the row; re-saving the same date does not. A pass takes at most 100 rows under a transaction-scoped advisory lock, and orders so that one broken workspace cannot starve the rest. Dispatch runs as `g/variable_expiration_handler`, exempt from the CE group limit and from non-premium exec metering the way the error and schedule handlers already are. A handler that keeps failing backs off and raises a critical alert instead of retrying every pass, and the back-off ends when the handler is repointed. The expiry travels with the variable through workspace clone, tarball export and workspace comparison. The dispatch marker deliberately does not, so a fork re-arms on its own copy. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * feat(frontend): expose variable value expiration in the UI The variable drawer takes an optional expiry on a secret value, and the variables list badges it, turning red once the date has passed. A workspace settings tab picks the handler, its extra args, and whether variables under `u/` are skipped. That mute flag is stored inside the handler setting, so the toggle stays disabled until a handler is picked: saving it on its own would clear the setting it lives in and still report success. The expiry is carried as a tri-state through the draft deploy and copilot paths — absent leaves the remote value alone, an explicit null clears it — so deploying a draft cannot silently drop a date someone set elsewhere. The settings tab names the one case where the configured identity does not apply: a handler script carrying `on_behalf_of` runs as that user rather than as `g/variable_expiration_handler`, which matters because the same tab asks the admin to grant that group write access to the variables it rotates. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * feat(cli): sync variable expiry and the workspace expiration handler `wmill sync` carries `value_expires_at` on variables in both directions, and pushes the workspace handler alongside the error and success handlers in the grouped settings format. Dropping the key from a variable's yaml clears the remote expiry, so the file stays canonical rather than accumulating fields that can only ever be added. The handler follows the same rule, with the caveat recorded where the type is declared: an omitted handler only reaches the clear when some other setting differs, because the push short-circuits on a comparison that walks the local object's keys and so never sees a missing one. That gate is shared with the two existing handlers and is left as it is here. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(frontend): open the variable expiration handler template in a new tab The "Create a handler" button hands its script template to /scripts/add through the URL hash, which `load` reads from `window.location`. A client-side navigation leaves the previous page's hash in place, so the payload was dropped and the editor opened on the default template at a `u/` path. `target="_blank"` forces a full page load, matching the success handler's "Create from template" button. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(frontend): make the variable expiry field state its own status The expiry field rendered a DateTimeInput whose time defaults to 12:00 when it holds no value, so a variable with no expiry looked like one already configured, and "cleared" looked identical to "never set". Setting an expiry is optional, so the field has to say which it is. Rebuild it on the shape ScriptAdvancedSettings already uses for Timeout, Cache and Concurrency limits: a toggle whose checked state is the stored value being present, seeding a date on enable rather than revealing an empty picker, with the input under its own label. Drop `clearable` with it, so the toggle is the single way to mean "no expiry" instead of competing with an X. Stop the surrounding copy promising a run that may not happen. A handler is only dispatched if the workspace has one configured and does not skip u/ paths, so the list tooltip now states the date alone, and the form hedges both conditions, naming the u/ mute only on personal paths where it can apply. Also anchor the mute toggle's tooltip: Popover's trigger is a span around a block-level label, which stretched to the full width of its SettingCard and left the popup floating beside the card rather than under the control. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(rust-client): initialize value_expires_at in the variable models The generated `CreateVariable` / `EditVariable` structs gain the field from openapi.yaml, and client.rs builds both with exhaustive literals. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(frontend): drop extra_args when the variable expiration handler is cleared Clearing the handler nulls the whole setting server-side, extra_args included, but the tab kept its loaded copy. A handler picked afterwards without reloading was persisted with the cleared one's arguments, which the tab does not display. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * feat: back the variable expiration handler's built-in Slack and Teams destinations Backfills the Slack bot token grant for g/variable_expiration_handler, mirroring 20231016142659 for g/error_handler: the slack_bot folder's extra_perms is written once at Slack connect and never refreshed, and disconnecting leaves the folder behind, so workspaces that already connected Slack cannot pick the grant up from the creation-time list alone. Adds run_variable_expiration_test_job so an admin can exercise the handler on demand rather than waiting for a real expiry, which may be months away. It goes through push_variable_expiration_handler so the test run proves what matters: the handler resolves, and the group can read what it needs, under the same identity and argument shape the sweep uses. Also covers extra_args on the edit endpoint, which the settings tab now writes for the built-ins' channel. The endpoint rebuilds the setting from the request, so an omitted extra_args erases it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Do7wJTnL6MG6ngFpCGW4DG * feat(frontend): offer Slack and Teams as variable expiration handlers Gives the variable expiration tab the same no-code destinations the workspace error handler has, so "tell #ops before this credential expires" no longer requires writing a script. A sibling component rather than a fourth mode of ErrorOrRecoveryHandler: that one is shared with the workspace error handler and the three schedule handlers, and its stripped-args list, hub path suffixes and Email tab are all error-shaped. This reuses the pieces that are already generic (SlackConnectionStatus, TeamsConnectionStatus, ChannelSelector, ScriptPicker, SchemaForm) and leaves those five call sites untouched. extra_args stops being an API/CLI-only escape hatch now that the built-ins write their channel into it, so it joins the unsaved-changes comparison and the discard path, normalised through the existing helper that drops the two auto-managed keys. The two hub ids are placeholders until the scripts are pushed to the hub. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Do7wJTnL6MG6ngFpCGW4DG * fix(frontend): scope the handler identity notice to the chosen destination The notice told every admin to grant g/variable_expiration_handler write access to the variables it rotates. That is right for a custom handler and wrong for the built-ins, which only post a message and are granted the Slack bot token by migration. Following it for a Slack handler would hand a group write access to the workspace's secrets for no reason. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Do7wJTnL6MG6ngFpCGW4DG * feat(frontend): flag the Slack and Teams handlers as EE Connecting a workspace to Slack or Teams is EE-only (oauth2_oss.rs returns "Slack only available on enterprise"), so on CE those two tabs can never be completed. Says so up front, the way the error/success handler tab does, instead of leaving the user at a "not connected" badge with no working path. Only on those two tabs: a custom script or flow handler is CE. Drops the "Connect Slack first" alert, now that the banner and the connection badge above it already say it twice. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Do7wJTnL6MG6ngFpCGW4DG * chore(backend): regenerate the sqlx cache after the merge The merged workspace_settings column list in change_workspace_id is a new query text, so it needs a new cached entry. Drops the two pre-merge entries it supersedes; both had been left with conflict markers by the merge, since rename/rename markers are eight characters and escape the usual scan. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Do7wJTnL6MG6ngFpCGW4DG * fix(cli): narrow the expiry-clear check to a variable that exists remotely Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Do7wJTnL6MG6ngFpCGW4DG * feat(frontend): point the built-in handlers at their published hub scripts Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore(backend): regenerate the sqlx cache after the merge Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(frontend): disable the Slack and Teams handler controls without a license Matches the workspace error handler, which greys out its built-in destinations and hides the test button on an unlicensed instance. The custom destination stays editable: unlike the error handler, the variable expiration handler itself is not an EE feature. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat: record which destination a variable expiration handler uses handler_configured now counts slack, teams, custom or cleared instead of set or cleared, so usage shows whether the built-in destinations are picked. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(frontend): let the variable expiration handler template run on any worker Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: guard the variable expiration test endpoint and correct its help text * fix: reuse the error handler's slack arg and built-in path helpers * docs: trim variable expiration sweep and backfill comments * feat: put the variable value expiration under an advanced section * fix: restrict the expiration test job to built-ins and keep expiry on conflict reload * fix: link the expiry hint to the variable's workspace and document built-in test paths * fix: give the expiration sweep its own lock id and reuse double_option * fix: pin the variable expiration presets so the hub-paths test accepts them * feat: let the variable expiration handler set how far ahead it runs * fix: give the notify before expiry setting its own card * feat: remind the variable expiration handler at a set interval * fix: tighten the gap between the Slack channel field and its test button * feat: refuse a value expiry on variables linked to an OAuth account * refactor: reuse the shared handler form for variable expiration * refactor: sweep expiring variables round-robin and check the handler exists * chore: trim comments to the constraints they record * fix: compare expiry dates by moment when deploying a variable draft * refactor: rename value_expires_at to value_valid_until * fix: neutralize variable fields in expiration handler args * fix: reserve the variable_expiration_handler group name for admins * fix: send first expiry notices before reminders * test: pin that a handler failing to start leaves its rows unclaimed * chore: say any hub handler path skips the existence check * fix: empty a pre-existing handler group before granting it the Slack token * docs: correct the registered feature usage counts * fix: let a workspace whose handler failed to start sit out for an hour * fix: send first notices before reminders across workspaces * fix: end a failed handler's wait as soon as it is redeployed * fix: show an expiry-only variable change in the AI fork diff * chore: regenerate workspace tool schemas * test: keep one variable expiration guard per behavior * fix: use the renamed hub expiration handlers and template * feat: carry the variable expiry in windmill-utils-internal 1.8.4 * fix: keep the variable expiry through MCP drafts * chore: bump windmill-utils-internal to 1.8.4 * fix: keep the variable expiry through mcp deploys * fix: disable saving a slack or teams expiry handler without ee * fix: skip the failure mark when the expiry handler was saved mid-sweep * fix: count expiry telemetry only where the expiry changed * test: assert the exact variable expiry in export and cli push tests * fix: stamp an expiry handler failure with the pass's read time * fix: wait for a pending handler lock instead of marking it failed * test: isolate expiry handler tests from the deployed-script cache * fix: retry a failing expiry handler every pass instead of waiting an hour * chore: update ee-repo-ref to b6e23d229966cf0019c0a1926a254fda658d8def This commit updates the EE repository reference after PR #744 was merged in windmill-ee-private. Previous ee-repo-ref: c52c06d145b13a6fb04459e85ca5818bf3c1bff4 New ee-repo-ref: b6e23d229966cf0019c0a1926a254fda658d8def Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: hugocasa <hugo@casademont.ch> |
||
|
|
e5dedd147e |
feat: let flow builder operators build AI agents (#11898)
* feat: let flow builder operators build AI agents Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: check linked agents' bound tools and type, validate on the write's transaction Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: bound the linked-agent walk by sorting bound tool ids Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: let builders bind only the agent tool inputs left to the model Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: check every agent tool sharing a bound id Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: show builders the agent's own tool inputs read-only and name agents in the setting Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: show the agent's own tool inputs with the read-only step viewer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * style: give the agent-set inputs heading the input label style Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * style: label the agent's fixed tool inputs static inputs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: address cubic review on agent builder rights Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: check agent writes against the role's flows capability Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: name the flows capability as the agent builder right Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: gate agent evals on the role's code capability Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: move the composed-flow check into windmill-api-auth Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
6d1e3952be |
settle async diff tallies in workspace comparison tests (#11963)
test_compare_secret_variables_by_value planted workspace_diff rows with a plain INSERT after a DELETE, but the variable creates tally those rows from a spawned git-sync task that can land between the two, failing with a workspace_diff_pkey violation. Upsert the plant instead. test_rename_records_the_vacated_path could read the inline create's `write` event, or have it overwrite `rename_from`, since both deploys tally from their own spawned task. Wait for the create's tally before the rename and poll for the event that replaces it. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
0dd131b380 |
fix: compare fork secret variables by decrypted value (#11952)
* fix: compare fork secret variables by decrypted value * test: restore MIN_VERSION even when the secret compare test fails * fix: re-evaluate cached variable diffs once after the secret compare fix * refactor: decrypt already-loaded secret rows when comparing variables * docs: state the authorization contract of decrypt_secret_value * fix: compare external-backend secrets by their resolved values --------- Co-authored-by: Ruben Fiszel <ruben@windmill.dev> |
||
|
|
8a7b1481bd | fix: compare a null resource description as empty (#11947) | ||
|
|
dc1fb5087b |
feat: let native triggers act through per-user or shared connections (#11352)
* fix: only let an oauth account's creator or readers link it to a variable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: drop an oauth account link the caller may not hold instead of failing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: cover relinking an oauth account through a variable update Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: cover a permitted relink through a variable update Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep an oauth account's creator in step with the user's username Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: follow a non-member superadmin's instance username on the OAuth accounts they created Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: link a variable to its OAuth account only in the connect flow The variable endpoints no longer take an account link from the caller. The connect flows create the token variable first and pass its path to create_account, which links it server-side. This replaces the creator check and the created_by bookkeeping, along with both migrations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: keep the MCP secret variable test's formatting Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: link the account to the token variable AppConnect created, even if the path is edited mid-save Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: stop exporting the OAuth account a variable links, and regenerate the chat tool schema Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: pin the EE refresh and linking checks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: delete AppConnect's token variable when linking its account fails, so Save can be retried Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep the resource AppConnect fills when linking its account fails Deleting a variable also deletes the resource at its path, so the rollback is skipped when filling an existing resource. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: create an OAuth token variable and its account in one request createAccount takes the variable and the store creates both in one transaction, so a connect is either fully saved or not at all. The connect flows make that single call instead of creating the variable and linking it afterwards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: stop listing the ignored account input in the chat's write_variable instructions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: drop the account visibility helper the oauth refresh route no longer uses Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: let native triggers act through per-user or shared connections Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: bind native trigger oauth state to its user and follow connection renames Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: authorize oauth account links and scope native trigger disconnects Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: order the native trigger connection migration after account ownership Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: delete only the scope-checked triggers when disconnecting Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: skip triggers moved since their scope check when disconnecting Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: scope-check the connection path when connecting, keep a connection still in use Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: key token write-back by account and serialize trigger creation with disconnect Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: let an admin share one native trigger connection with the whole workspace Members can use the shared connection without reading its token. It reuses workspace_integrations.resource_path, so existing workspace connections stay usable by members after upgrading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: pick the workspace connection like other workspace resources, connect and disconnect from the picker Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: label the disconnect action in the connection picker Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: drop the own-account note from the workspace connection field Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: let admins share any connection, serialize service removal with trigger creation An admin can already read every connection, so restricting sharing to their own added nothing. Removing a service now takes each connection's lock and keeps everything if a trigger was created meanwhile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: show each native trigger service's OAuth app status and keep removal apart Remove now only appears with a workspace OAuth app, since a workspace using the instance app has nothing of its own to remove. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: configure a native trigger service's OAuth app in a dialog The card states once which OAuth app is in use, with a single Configure action, and the form follows the design system. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: drop a stray brace from the OAuth app dialog binding Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: lead the OAuth app row with which app is in use, with a link to change it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: compact the native trigger service card Edit and Remove sit on the workspace OAuth app row, and the workspace connection reads as part of the same section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: show the OAuth app status in each native trigger card's header App actions move into a menu, the card body holds only the shared account, and service descriptions name what fires the trigger. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: say who configured each native trigger service, and name removal for what it removes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: say what members can do with each native trigger service, keep the shared account optional Nextcloud, whose webhooks need an admin account, offers connecting and sharing one directly instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: pick the shared account with an inline select, and keep Nextcloud's own-account path in its wording Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: one status line per native trigger service, a Nextcloud admin hint, and clearer refusals The shared account is a regular form field, Nextcloud shows an alert while no admin account is shared, a non-admin Nextcloud account gets a message saying why it cannot create triggers, and the OAuth dialog only accepts a full server URL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: point native trigger error hints at the account picker and the shared account Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: say members can browse what a shared native trigger account can access Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: make the OAuth app dialog's open prop required Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep pre-connection triggers working, and guard reconnects and service removal - The migration recovers a service's connection when the workspace row lost its path, which saving the OAuth app or an abandoned instance connect used to do. - A trigger created without a connection uses the shared account, as older clients and trigger specs expect. - Only whoever connected a path, or an admin, may reconnect over it. - Removing a service or sharing an account checks a path-scoped token against what it touches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: connect native trigger accounts at a chosen path through the resource drawer, and reconnect from the picker Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: date the native trigger connection migration after main's newest Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: say a disconnect deletes the triggers other members created on the account Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: offer Reconnect next to an existing trigger's account and point the refresh hints at it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: date the native trigger connection migration after main's newest Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to da49c12e3006fc77de789277f1462a4d8d7d92ce This commit updates the EE repository reference after PR #829 was merged in windmill-ee-private. Previous ee-repo-ref: 58681a2e7eafb5689ed739cd2560fa0f5d82c3dc New ee-repo-ref: da49c12e3006fc77de789277f1462a4d8d7d92ce Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> |
||
|
|
d6adac8b75 |
fix: link a variable to its OAuth account only in the connect flow (#11361)
* fix: only let an oauth account's creator or readers link it to a variable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: drop an oauth account link the caller may not hold instead of failing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: cover relinking an oauth account through a variable update Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: cover a permitted relink through a variable update Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep an oauth account's creator in step with the user's username Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: follow a non-member superadmin's instance username on the OAuth accounts they created Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: link a variable to its OAuth account only in the connect flow The variable endpoints no longer take an account link from the caller. The connect flows create the token variable first and pass its path to create_account, which links it server-side. This replaces the creator check and the created_by bookkeeping, along with both migrations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: keep the MCP secret variable test's formatting Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: link the account to the token variable AppConnect created, even if the path is edited mid-save Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: stop exporting the OAuth account a variable links, and regenerate the chat tool schema Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: pin the EE refresh and linking checks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: delete AppConnect's token variable when linking its account fails, so Save can be retried Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep the resource AppConnect fills when linking its account fails Deleting a variable also deletes the resource at its path, so the rollback is skipped when filling an existing resource. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: create an OAuth token variable and its account in one request createAccount takes the variable and the store creates both in one transaction, so a connect is either fully saved or not at all. The connect flows make that single call instead of creating the variable and linking it afterwards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: stop listing the ignored account input in the chat's write_variable instructions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: drop the account visibility helper the oauth refresh route no longer uses Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to da49c12e3006fc77de789277f1462a4d8d7d92ce This commit updates the EE repository reference after PR #829 was merged in windmill-ee-private. Previous ee-repo-ref: 58681a2e7eafb5689ed739cd2560fa0f5d82c3dc New ee-repo-ref: da49c12e3006fc77de789277f1462a4d8d7d92ce Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> |
||
|
|
21d2a49971 |
feat: configurable workspace roles with per-workspace overrides (#11821)
* feat: configurable workspace roles with per-workspace overrides Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: close role review gaps in pickers, declarative sync and removal Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: keep resolve_role_name doc on its function Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: validate overrides on instance role changes and bill admins fully Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: allow pipeline drafts and keep role checks on one connection Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: list data pipelines in operator_can_draft Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: expect a 403 role refusal when an operator resolves jobs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: require a valid license for custom workspace roles Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: freeze workspace roles when the license lapses Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: pin the ee companion for workspace roles Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: broadcast role override changes from the write path, not a trigger Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to b5294d38db082bdd104d5358a47695390694c05d This commit updates the EE repository reference after PR #891 was merged in windmill-ee-private. Previous ee-repo-ref: 688e00c5982865b14098f530d54280e2311994c0 New ee-repo-ref: b5294d38db082bdd104d5358a47695390694c05d Automated by sync-ee-ref workflow. * fix: let an admin row that kept the operator flag hold full rights everywhere Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: treat superadmin members as admins and return role names from get user Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> |
||
|
|
c04477723c |
fix: revoke mcp oauth grants on password change and reset (#11908)
* fix: revoke mcp oauth grants on password change and reset Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: revoke pending mcp codes and serialize grants against revocation Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: run mcp refresh theft check on the grant transaction Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix: log commit failures of rejected mcp oauth exchanges Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
eda610b2f4 |
[ee] fix: stop handlers, apps and agents resolving untrusted refs (#11893)
* fix: stop handler, app and agent jobs resolving untrusted references * perf: skip decoding untrusted args that hold no dollar or escape * test: drop the transaction the recovery handler no longer takes * fix: flag reserved names in object keys and tighten the jsonb parity test |