mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-13 00:03:00 +00:00
The script_trigger table (migration 20260423050000_script_trigger) relied on ALTER DEFAULT PRIVILEGES to grant access to windmill_user and windmill_admin. Those default privileges only apply to objects created by the role that set them (migration 20250205131523), so deployments whose migration runner is a different role leave script_trigger ungranted. Direct application writes run as the invoking role and fail with "permission denied for table script_trigger" — notably clear_script_triggers and insert_script_trigger in windmill-common/src/assets.rs during every script save. Add an explicit GRANT on script_trigger and its sequence, matching the notify_event fix (#9665) and the asset table precedent. Fixes WIN-2076 Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
5 lines
230 B
SQL
5 lines
230 B
SQL
REVOKE ALL ON script_trigger FROM windmill_user;
|
|
REVOKE ALL ON script_trigger FROM windmill_admin;
|
|
REVOKE ALL ON SEQUENCE script_trigger_id_seq FROM windmill_user;
|
|
REVOKE ALL ON SEQUENCE script_trigger_id_seq FROM windmill_admin;
|