* fix: keep edited scopes of an MCP sign-in across token refreshes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix: never leave an MCP OAuth grant unrestricted by a scope edit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix: sign resume urls with a dedicated key
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix: cover all oauth state layouts in resume signature check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix: copy labels into forks and detect label changes in compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix: show labels in the compare diff and bump windmill-utils-internal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix: normalize app labels in the compare diff
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix: keep target labels when a fork item has none set
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: publish utils-internal under the @windmill-labs org
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: publish utils-internal on release with trusted publishing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: build the frontend from utils-internal source
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: drop the utils-internal version bump
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: bump utils-internal to 1.8.7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
Replay recordings load without credentials; the MCP tool panel lists tools over POST when requested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
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>
* 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>
* 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>
* 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>
* 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>
* 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>
812ff6ea5e was squashed from a branch based before 8af48429 and reverted its
changes to these three files. Restore them as they were in 8af48429.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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>
* 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>
* 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>
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>