Skip to content

fix: production readiness review — security hardening & bug fixes#358

Merged
bicced merged 1 commit intomainfrom
fix/production-readiness-review-4
Mar 6, 2026
Merged

fix: production readiness review — security hardening & bug fixes#358
bicced merged 1 commit intomainfrom
fix/production-readiness-review-4

Conversation

@bicced
Copy link
Contributor

@bicced bicced commented Mar 6, 2026

Summary

  • Critical: Remove browser_evaluate action (arbitrary JS in agent trust zone), add sanitize_for_prompt() to all channel inbound messages, authenticate SPA catchall route
  • High: Fix _remove_project_blackboard_permissions() blanket-clearing, fix zombie process leak, change detached log mode to append
  • Security: Add autoescape to Jinja2, tighten CSP headers, thread-safe EventBus, randomize KasmVNC password, warn on missing BROWSER_AUTH_TOKEN
  • Cleanup: Hoist inline imports, remove redundant re-imports, add _walk() depth limit

Test plan

  • All 1779 engine tests pass (2 pre-existing failures unrelated)
  • Verify channel messages are sanitized in staging
  • Verify dashboard SPA catchall requires auth cookie
  • Verify KasmVNC uses random password on fresh container

…curity, fix bugs

- Remove browser_evaluate action (arbitrary JS execution in agent trust zone)
- Add sanitize_for_prompt() to all channel inbound messages (telegram, discord, slack)
- Authenticate SPA catchall route with dashboard session cookie
- Add autoescape=True to Jinja2 template rendering
- Tighten CSP headers (default-src, connect-src, frame-src)
- Add thread safety lock to EventBus sequence counter
- Replace hardcoded KasmVNC password with secrets.token_urlsafe
- Add startup warning when BROWSER_AUTH_TOKEN is unset
- Fix _walk() infinite recursion with MAX_WALK_DEPTH=50
- Fix _remove_project_blackboard_permissions() blanket-clearing all permissions
- Fix zombie process leak: add proc.wait() after proc.kill()
- Change detached agent log mode from overwrite to append
- Hoist inline imports to module level, remove redundant re-imports
- Update CLAUDE.md with review findings
@bicced bicced merged commit c9612bf into main Mar 6, 2026
3 checks passed
@bicced bicced deleted the fix/production-readiness-review-4 branch March 6, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant