pyro-mcp/tests
Thales Maciel fc72fcd3a1 Add guest-only workspace secrets
Add explicit workspace secrets across the CLI, SDK, and MCP, with create-time secret definitions and per-call secret-to-env mapping for exec, shell open, and service start. Persist only safe secret metadata in workspace records, materialize secret files under /run/pyro-secrets, and redact secret values from exec output, shell reads, service logs, and surfaced errors.

Fix the remaining real-guest shell gap by shipping bundled guest init alongside the guest agent and patching both into guest-backed workspace rootfs images before boot. The new init mounts devpts so PTY shells work on Firecracker guests, while reset continues to recreate the sandbox and re-materialize secrets from stored task-local secret material.

Validation: uv lock; UV_CACHE_DIR=.uv-cache make check; UV_CACHE_DIR=.uv-cache make dist-check; and a real guest-backed Firecracker smoke covering workspace create with secrets, secret-backed exec, shell, service, reset, and delete.
2026-03-12 15:43:34 -03:00
..
test_api.py Add guest-only workspace secrets 2026-03-12 15:43:34 -03:00
test_cli.py Add guest-only workspace secrets 2026-03-12 15:43:34 -03:00
test_demo.py Ship trust-first CLI and runtime defaults 2026-03-09 20:52:49 -03:00
test_doctor.py Bundle firecracker runtime and switch ollama demo to live logs 2026-03-05 20:20:36 -03:00
test_langchain_example.py Refactor public API around environments 2026-03-08 16:02:02 -03:00
test_ollama_demo.py Ship trust-first CLI and runtime defaults 2026-03-09 20:52:49 -03:00
test_openai_example.py Refactor public API around environments 2026-03-08 16:02:02 -03:00
test_public_contract.py Add guest-only workspace secrets 2026-03-12 15:43:34 -03:00
test_python_lifecycle_example.py Harden default environment pull behavior 2026-03-11 19:27:09 -03:00
test_runtime.py Add guest-only workspace secrets 2026-03-12 15:43:34 -03:00
test_runtime_boot_check.py Finalize guest boot and exec runtime updates 2026-03-07 17:09:21 -03:00
test_runtime_build.py Switch official environment publishing to Docker Hub 2026-03-09 17:39:18 -03:00
test_runtime_network_check.py Refactor public API around environments 2026-03-08 16:02:02 -03:00
test_server.py Add guest-only workspace secrets 2026-03-12 15:43:34 -03:00
test_vm_environments.py Add guest-only workspace secrets 2026-03-12 15:43:34 -03:00
test_vm_firecracker.py Finalize guest boot and exec runtime updates 2026-03-07 17:09:21 -03:00
test_vm_guest.py Add guest-only workspace secrets 2026-03-12 15:43:34 -03:00
test_vm_manager.py Add guest-only workspace secrets 2026-03-12 15:43:34 -03:00
test_vm_network.py Add runtime capability scaffolding and align docs 2026-03-05 22:57:09 -03:00
test_workspace_shells.py Add workspace service lifecycle with typed readiness 2026-03-12 05:36:28 -03:00