refactor(backend): extract sandbox logic into windmill-sandbox crate

Move nsjail config, overlayfs, tar utilities, S3 operations, and sandbox
types from windmill-common and windmill-worker into a dedicated
windmill-sandbox crate. S3 logic lives in windmill-ee-private (symlinked
s3_ee.rs). Both windmill-api and windmill-worker depend on the new crate.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-02-18 12:38:13 +00:00
parent c516cf11cb
commit 9001079bb7
1353 changed files with 2282 additions and 36063 deletions

View File

@@ -598,7 +598,7 @@ async fn run<'a>(
)
.await;
let nsjail_config = crate::sandbox_setup::finalize_nsjail_config(
let nsjail_config = windmill_sandbox::finalize_nsjail_config(
&NSJAIL_CONFIG_RUN_JAVA_CONTENT
.replace("{JOB_DIR}", job_dir)
.replace("{CACHE_DIR}", JAVA_CACHE_DIR)