Diego Imbert and Claude Opus 5
493d19689c
fix(cli): stop sync push from resetting an app's run-as, sandbox and execution mode
...
A raw app's policy was regenerated from the local sources alone on every push:
raw_app.yaml records only the access mode, so `on_behalf_of` was rewritten to
whoever ran the push, and `sandbox`, `frontend_sdk_scopes` and a `viewer`
execution mode were dropped. A CI job running `wmill sync push` silently
re-permissioned every raw app it touched.
Start the regenerated policy from the deployed one, so the fields nothing local
states carry over, and send `preserve_on_behalf_of` the way the low-code push
already does. Low-code apps went through the same regeneration, so they lost
`sandbox` too; both paths now share `deployedPolicyBase`, which drops the legacy
`triggerables` the backend folds into `triggerables_v2` rather than carrying
stale grants forward.
The deletion-driven re-push (a file removed inside a flow/app/raw-app folder)
also reached `pushObj` without the permissioned-as context, so it reset
ownership even where the normal path preserved it.
Fixes #11046
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01MaJ9KHDeaWrWUdVsHeHQ8L
2026-09-09 16:33:25 +02:00
..
2026-05-01 15:11:56 +00:00
2026-09-04 22:47:28 +02:00
2026-04-20 17:22:31 +00:00
2026-04-27 04:02:39 +00:00
2026-03-27 11:54:45 +00:00
2026-05-07 13:26:32 +00:00
2026-08-18 01:52:10 +02:00
2026-03-28 09:18:55 +00:00
2026-09-07 16:18:39 +02:00
2026-02-21 21:19:04 +00:00
2026-03-27 16:13:33 +00:00
2026-06-09 08:09:04 +00:00
2026-04-09 19:46:34 +00:00
2026-02-24 08:38:17 +00:00
2026-07-31 23:33:47 +02:00
2026-05-20 16:56:50 +00:00
2026-03-14 04:44:11 +00:00
2026-05-20 16:56:50 +00:00
2026-08-01 11:58:05 +00:00
2026-08-31 23:31:27 +02:00
2026-06-16 10:21:37 +02:00
2026-08-01 20:37:21 +02:00
2026-08-02 22:54:37 +02:00
2026-08-02 22:54:37 +02:00
2026-04-27 20:14:21 +00:00
2026-07-06 01:36:42 +02:00
2026-08-01 11:58:05 +00:00
2026-06-17 02:33:18 +02:00
2026-08-11 13:16:45 +00:00
2026-03-31 13:48:22 +00:00
2026-04-22 19:31:37 +00:00
2026-07-01 23:49:25 +02:00
2026-02-21 21:19:04 +00:00
2026-06-12 00:16:16 +02:00
2026-07-07 17:08:09 +00:00
2026-04-08 05:29:48 +00:00
2026-03-27 16:13:33 +00:00
2026-07-31 23:33:47 +02:00
2026-07-31 23:33:47 +02:00
2026-07-21 17:07:52 +00:00
2026-02-21 21:19:04 +00:00
2026-03-28 09:18:55 +00:00
2026-06-12 00:16:16 +02:00
2026-05-08 07:43:21 +02:00
2026-05-06 23:48:32 +00:00
2026-02-21 21:19:04 +00:00
2026-04-09 19:46:34 +00:00
2026-04-09 19:46:34 +00:00
2026-07-05 16:24:04 +02:00
2026-06-12 17:20:54 +02:00
2026-04-08 15:54:44 +00:00
2026-03-31 18:22:18 +00:00
2026-04-03 17:39:32 +00:00
2026-07-30 23:33:35 +02:00
2026-03-27 16:13:33 +00:00
2026-04-23 16:30:18 +00:00
2026-02-21 21:19:04 +00:00
2026-06-11 07:43:45 +00:00
2026-08-21 12:52:06 +00:00
2026-05-01 15:11:56 +00:00
2026-06-09 08:09:04 +00:00
2026-02-21 21:19:04 +00:00
2026-07-24 10:23:18 +02:00
2026-04-09 19:46:34 +00:00
2026-07-05 12:14:22 +02:00
2026-06-15 19:21:38 +02:00
2026-07-21 16:25:06 +00:00
2026-07-01 11:41:36 +02:00
2026-08-01 11:58:05 +00:00
2026-07-02 12:04:54 +02:00
2026-07-02 12:04:54 +02:00
2026-08-10 19:37:46 +02:00
2026-08-10 19:37:46 +02:00
2026-05-19 17:40:34 +00:00
2026-07-19 09:30:49 +02:00
2026-09-03 08:45:39 +02:00
2026-06-02 07:11:29 +00:00
2026-07-30 14:20:27 +00:00
2026-07-27 22:32:57 +02:00
2026-08-22 10:00:52 +00:00
2026-08-02 22:54:37 +02:00
2026-08-10 21:50:03 +02:00
2026-08-26 20:24:34 +02:00
2026-09-09 16:33:25 +02:00
2026-07-31 11:42:43 +02:00
2026-03-23 18:20:19 +00:00
2026-03-23 18:20:19 +00:00
2026-03-27 16:13:33 +00:00
2026-08-12 13:10:26 +02:00
2026-08-01 11:58:05 +00:00
2026-08-17 22:14:07 +02:00
2026-03-28 09:18:55 +00:00
2026-09-08 18:00:18 +02:00
2026-02-21 21:19:04 +00:00
2026-07-27 16:00:08 +02:00
2026-04-03 11:41:31 +00:00
2026-08-18 12:26:41 +02:00
2026-08-18 12:26:41 +02:00
2026-07-30 14:20:27 +00:00
2026-08-26 20:24:34 +02:00
2026-08-31 13:26:08 +00:00
2026-04-24 17:14:08 +00:00
2026-05-07 13:35:54 +00:00
2026-06-25 19:57:26 +02:00
2026-02-21 21:19:04 +00:00
2026-08-31 13:26:08 +00:00
2026-05-05 21:06:53 +00:00
2026-07-27 16:00:08 +02:00
2026-03-27 16:13:33 +00:00
2026-03-27 16:13:33 +00:00
2026-02-21 21:19:04 +00:00
2026-03-23 18:20:19 +00:00
2026-04-03 12:01:34 +00:00
2026-08-21 12:52:06 +00:00
2026-06-23 12:45:36 +02:00
2026-09-07 15:57:09 +02:00
2026-05-01 15:11:56 +00:00
2026-03-27 16:13:33 +00:00
2026-04-02 19:28:39 +00:00
2026-09-07 16:46:35 +02:00
2026-04-09 19:46:34 +00:00
2026-05-07 13:35:54 +00:00
2026-05-01 15:11:56 +00:00
2026-03-27 19:27:56 +00:00