WeKnora/internal/im/dingtalk
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 fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
adapter_test.go fix(im): harden DingTalk file download with SSRF checks and pictureDownloadCode fallback 2026-07-09 15:38:13 +08:00
download_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
factory.go fix(im): prevent DingTalk stream connection from going stale 2026-06-22 15:04:23 +08:00
longconn.go fix(im): ingest DingTalk file/image messages into knowledge base (#1771) 2026-07-09 15:28:57 +08:00