Harden build agent against path traversal and add job cleanup

- Validate job IDs on /download and /delete; reject invalid identifiers
- Prevent zip-slip during /upload extraction via safe_extract
- Basename uploaded filenames in /update to block path traversal
- Route git-checkout jobs into pybuild-data so they can be downloaded/deleted
- Clean up job dirs on extract, checkout, and build failures
- Ignore Python bytecode and egg-info artifacts
This commit is contained in:
Brett Williams
2026-08-30 21:24:54 -05:00
parent b511962a1f
commit 1902d36ae7
2 changed files with 64 additions and 35 deletions
+4 -1
View File
@@ -1 +1,4 @@
known_hosts
known_hosts
__pycache__/
*.py[cod]
*.egg-info/