Commit e6402cf
committed
test(agents,workspace): add integration + unit tests for security hardening
Docker Hub pull-then-build fallback:
- ensure_image_for_runtime now tries gotempsh/temps-sandbox-{runtime}
from Docker Hub first, falls back to local build if pull fails.
Speeds up CI/fresh installs from minutes to seconds when images
are published.
- Tests: hub_image_for_runtime naming, pull_fallback_on_missing_hub_image
Preview gateway shared secret (Phase 1):
- 5 unit tests: creation, idempotency, empty-file rejection, 0600
perms on Unix, nested parent dir creation
KillSignal integration test:
- Docker-gated test spawning real sleep processes, verifying SIGTERM
and SIGKILL. Skips when Docker unavailable or temps serve running.
Terminal WebSocket rate limiter:
- Token-bucket math unit test verifying drain, rejection, refill
Sessions handler:
- is_safe_tab_id and tmux_cli_for_provider unit tests1 parent 203fbc8 commit e6402cf
File tree
5 files changed
+502
-2
lines changed- crates
- temps-agents
- src
- sandbox
- temps-workspace/src/handlers
5 files changed
+502
-2
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
0 commit comments