Spaces:
Runtime error
Runtime error
Commit History
-
Security & reliability: Phase 1β3 fixes (Items 1β15)β
- git rm --cached tracked binary uploads from documents/ - Add .env.example with placeholder values - Extract shared Limiter to backend/core/limiter.py (Item 14) - Tighten CORS: restrict allow_methods and allow_headers (Item 7) - Fix traceback import inside except in chat.py; add logger (Item 13) - Fix DNS rebinding SSRF: resolve IP once via resolve_safe_ip(), pin to resolved IP with Host header so httpx cannot re-resolve (Item 4) - Fix mutable default args in prepare_step_request (Item 10) - Wrap prepare_step_request in asyncio.to_thread() (Item 8) - Add LLM parse retry with AppError after 2 failures in api_executor (Item 9) - Replace print() with logger calls in database.py and chat_assistant.py (Item 12) - Increase response truncation to 4000 chars, JSON-aware, configurable (Item 15) - Add RESPONSE_TRUNCATION_LIMIT to settings (Item 15) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c6f3411