WeKnora/internal/im/wecom
lyingbug 1030832c4b
fix(security): harden outbound URL SSRF protection (#2626)
* fix(security): harden outbound URL SSRF protection

* test(security): add SSRF validation tests for outbound URL caching

Introduce tests for outbound SSRF validation cache to ensure proper handling of URL validation, including cache reuse for the same origin, cache invalidation on whitelist changes, and expiration of cached entries. This enhances the robustness of SSRF protection mechanisms in the application.

* refactor: clean up whitespace in engine_factory.go and ssrf_outbound_cache.go

Removed unnecessary blank lines in engine_factory.go and adjusted variable declarations for consistency in ssrf_outbound_cache.go. This improves code readability without altering functionality.
2026-08-10 13:24:14 +08:00
..
factory.go fix(im): harden connection lifecycle across replicas 2026-07-27 20:39:12 +08:00
longconn.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
longconn_close_test.go fix(im/wecom): scope connection close to its own generation 2026-08-06 12:26:00 +08:00
mention_test.go feat(im): support custom endpoints for private WeCom deployments 2026-04-13 22:54:42 +08:00
quote.go fix(im): anti-hallucination for non-text quotes and unprocessable media messages 2026-04-03 11:34:22 +08:00
quote_test.go fix(im): anti-hallucination for non-text quotes and unprocessable media messages 2026-04-03 11:34:22 +08:00
reconnect_test.go fix(im): clamp reconnect backoff to avoid int64 overflow → busy loop 2026-05-05 00:36:18 +08:00
webhook_adapter.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
ws_adapter.go feat(im): align agent stream display with web thinking and tool progress 2026-06-24 10:33:55 +08:00