Add MaxArtifactFiles and MaxArtifactTotalBytes to SandboxConfig: - Default MaxArtifactFiles: 10,000 (configurable via SecurityDefaults) - Default MaxArtifactTotalBytes: 100GB (configurable via SecurityDefaults) - ApplySecurityDefaults() sets defaults if not specified Enforce caps in scanArtifacts() during directory walk: - Returns error immediately when MaxArtifactFiles exceeded - Returns error immediately when MaxArtifactTotalBytes exceeded - Prevents resource exhaustion attacks from malicious artifact trees Update all call sites to pass SandboxConfig for cap enforcement: - Native bridge libs updated to pass caps argument - Benchmark tests updated with nil caps (unlimited for benchmarks) - Unit tests updated with nil caps Closes: artifact ingestion caps items from security plan |
||
|---|---|---|
| .. | ||
| artifacts_test.go | ||
| config_test.go | ||
| hash_bench_test.go | ||
| jupyter_task_test.go | ||
| prewarm_v1_test.go | ||
| run_manifest_execution_test.go | ||
| snapshot_stage_test.go | ||
| snapshot_store_test.go | ||
| worker_test.go | ||