WeKnora/internal/im/qqbot
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
..
adapter.go feat(im): 新增QQBot即时通讯平台集成支持 2026-06-26 16:53:00 +08:00
adapter_test.go feat(im): add markdown replies for QQBot 2026-08-05 19:33:13 +08:00
client.go feat(im): add markdown replies for QQBot 2026-08-05 19:33:13 +08:00
factory.go feat(im): 新增QQBot即时通讯平台集成支持 2026-06-26 16:53:00 +08:00
longconn.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
types.go feat(im): add markdown replies for QQBot 2026-08-05 19:33:13 +08:00