WeKnora/internal
wizardchen 2b3f76e418 feat(web_fetch): enhance web fetch tool with DNS pinning and validation improvements
- Introduced a new validatedParams struct to hold validated input along with DNS-pinned host/IP for SSRF protection.
- Updated the validateParams function to validate and resolve the host to a single public IP, ensuring safe outbound fetches.
- Modified executeFetch and fetchHTMLContent methods to utilize the new validatedParams for improved security and clarity.
- Enhanced logging to reflect the display URL and provide better context during fetch operations.

This update strengthens the web fetch tool's security against SSRF attacks and improves the overall robustness of URL handling.
2026-02-02 13:33:39 +08:00
..
agent feat(web_fetch): enhance web fetch tool with DNS pinning and validation improvements 2026-02-02 13:33:39 +08:00
application fix: tighten SSRF protection for URL imports 2026-01-27 11:09:53 +08:00
common refactor: Sanitize log inputs in various handlers to enhance security 2025-11-26 00:19:26 +08:00
config refactor: web search provider registry pattern 2026-01-20 18:19:44 +08:00
container refactor: web search provider registry pattern 2026-01-20 18:19:44 +08:00
database feat: 支持数据库迁移脏状态自动恢复和Neo4j连接重试机制 2025-12-08 19:38:16 +08:00
errors feat: Add agent configuration and cleanup scripts for database migrations 2025-11-05 23:18:44 +08:00
event feat: Implement parallel search functionality combining chunk and entity searches, enhancing retrieval efficiency and result accuracy 2025-12-03 17:45:21 +08:00
handler feat: add thinking mode support for agents 2026-01-20 18:19:44 +08:00
logger feat: Add web search results handling and enhance knowledge retrieval features 2025-11-11 22:26:59 +08:00
mcp fix: MCP Client connection state not marked as closed after connection loss in SSE transport type 2026-02-02 10:42:19 +08:00
middleware fix: use typed context key instead of string literal- Add UserContextKey constant to types package- Replace bare string 'user' with types.UserContextKey in auth middleware- Update user service to use UserContextKey for context value retrieval- Fixes staticcheck SA1029 warningThis prevents potential context key collisions. 2026-01-21 19:12:24 +08:00
models fix(zhipu): correct Embedding BaseURL to match API structure 2026-01-25 16:53:49 +08:00
router feat: 支持删除文档类型标签 2026-01-15 19:38:16 +08:00
runtime init commit 2025-08-05 15:08:07 +08:00
searchutil feat: Implement parallel search functionality combining chunk and entity searches, enhancing retrieval efficiency and result accuracy 2025-12-03 17:45:21 +08:00
stream refactor: Update function signatures across multiple files to improve readability by adding context parameters and enhancing code structure 2025-11-28 16:17:52 +08:00
tracing init commit 2025-08-05 15:08:07 +08:00
types feat: add matched question field to FAQ search results 2026-01-26 16:32:18 +08:00
utils feat(web_fetch): enhance web fetch tool with DNS pinning and validation improvements 2026-02-02 13:33:39 +08:00