mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-12 00:06:14 +00:00
The PowerShell module-install step ran `pwsh -Command <install_string>` directly via start_child_process with no nsjail wrapping, unlike the run step which gates on is_sandboxing_enabled(). Defense-in-depth: wrap the install step in nsjail when sandboxing is enabled, using a dedicated install proto modeled on run.powershell.config.proto but with the module cache mounted rw (so Save-PSResource can still populate it) and the per-job script/result mounts dropped. Smoke-tested locally: nsjail starts, pwsh runs inside the jail (jailed /proc/1), and writes to the rw cache mount succeed. NOT yet validated end-to-end is module download from PSGallery / a private repo through the cloud tracing proxy — hence draft. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Windmill Worker
The worker. Used to process and execute flows & jobs.
This crate exposes both a library as well as a binary target.