Skip to content

chore(worker): remove sandboxed execution mode requirement for worker groups - #15022

Merged
MrChaker merged 2 commits into
mainfrom
chore/remove-worker-group-sandbox-mode-requirement
Aug 24, 2026
Merged

chore(worker): remove sandboxed execution mode requirement for worker groups#15022
MrChaker merged 2 commits into
mainfrom
chore/remove-worker-group-sandbox-mode-requirement

Conversation

@MrChaker

@MrChaker MrChaker commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Description

Workers with AP_WORKER_GROUP_ID set previously refused to start unless the effective AP_EXECUTION_MODE was SANDBOX_PROCESS or SANDBOX_CODE_AND_PROCESS (thrown in fetchAndStoreSettings in packages/server/worker/src/lib/worker.ts), on every edition. This scopes that requirement to the cloud edition only (EDITION from the server-provided worker settings): self-hosted CE/EE grouped workers can now run in any execution mode, while cloud grouped workers keep the process-sandboxed enforcement.

Unchanged: grouped workers still require AP_REUSE_SANDBOX to be set explicitly, on all editions.

Docs updated: docs/install/configure-operate/worker-groups.mdx (self-hosting docs) no longer lists AP_EXECUTION_MODE=SANDBOX_PROCESS as required.

How was this tested?

Updated worker-settings-override.test.ts: worker group + UNSANDBOXED passes on EE, throws on cloud; worker group + SANDBOX_PROCESS passes on cloud; missing AP_REUSE_SANDBOX still throws. Note: most worker test files (including untouched ones) currently fail at import time on a pre-existing evlog ESM/CJS issue in the server-utils dist, unrelated to this change.

Fixes # (issue)

Breaking change? (required — CI fails if this is left unedited)

  • no — reviewed, not breaking
  • yes — technical (removed/renamed API field or endpoint, dropped column, new required field, removed/required env var)
  • yes — functional (default/limit/behaviour change, new self-hosted setup step)

Security impact? (required — CI fails if this is left unedited)

  • no — reviewed, no security impact
  • yes — security-sensitive (call out the risk and mitigation in the description above)

🤖 Generated with Claude Code

Worker groups no longer refuse to start when AP_EXECUTION_MODE is not a
process-sandboxed mode. The AP_REUSE_SANDBOX explicit-set requirement for
grouped workers is unchanged.
@MrChaker
MrChaker requested a review from a team as a code owner August 24, 2026 15:43
@MrChaker
MrChaker requested a review from abuaboud August 24, 2026 15:43
@mintlify

mintlify Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
activepieces 🟢 Ready View Preview Aug 24, 2026, 3:44 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@greptile-apps

greptile-apps Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
packages/server/worker/src/lib/worker.ts Restricts the grouped-worker process-sandbox validation to cloud edition while preserving explicit AP_REUSE_SANDBOX validation.
packages/server/worker/test/lib/worker-settings-override.test.ts Covers unsandboxed enterprise workers, cloud rejection and acceptance cases, and the missing reuse-setting failure.
docs/install/configure-operate/worker-groups.mdx Updates the worker-group configuration example so AP_EXECUTION_MODE is no longer presented as universally required.

Reviews (2): Last reviewed commit: "restore worker group sandboxed execution..." | Re-trigger Greptile

Comment on lines +36 to 40
Grouped workers must set:

```bash
AP_EXECUTION_MODE=SANDBOX_PROCESS # or SANDBOX_CODE_AND_PROCESS
AP_REUSE_SANDBOX=true # or false, must be set explicitly
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 security Document the reduced isolation posture

The updated setup allows grouped workers to use the default UNSANDBOXED mode without explaining that it is intended for trusted environments. Because these workers process assigned projects' flow and webhook runs, add a warning and link to the existing sandboxing guide so operators do not unintentionally run tenant-authored automation without process isolation.

Knowledge Base Used: Workers and execution sandboxing

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@MrChaker
MrChaker merged commit 6666277 into main Aug 24, 2026
23 checks passed
@MrChaker MrChaker mentioned this pull request Aug 24, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant