mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-26 15:40:18 +00:00
Three security fixes from code review: 1. CRITICAL: Block Container-domain tools from executing on the orchestrator host. The ToolExecutor now checks tool.domain() and rejects Container tools with PtcError::DomainBlocked, preventing sandbox escape / RCE. 2. MEDIUM: Floor client-provided nesting_depth at 1 instead of trusting the worker's value. A malicious worker can no longer send nesting_depth=0 to bypass MAX_NESTING_DEPTH. 3. MEDIUM: Redact tool parameters in SSE JobToolUse events to prevent leaking sensitive data (API keys, passwords) to web UI observers. 4. Python SDK: Always send timeout_secs to server and use server_timeout+5 for client-side HTTP timeout to prevent premature client timeouts. Regression test: test_container_domain_blocked verifies Container-domain tools are rejected. Co-Authored-By: Claude Opus 4.6 <[email protected]>