WeKnora/internal/utils
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
..
crypto.go feat(crypto): AES-GCM at-rest for MCP and DataSource credentials with graceful key-rotation handling 2026-05-17 15:27:52 +08:00
crypto_test.go fix(crypto): fail loudly when encrypted DB fields cannot be decrypted 2026-04-30 15:17:56 +08:00
debug.go feat: 使用增强的任务ID生成器替换UUID 2026-01-14 17:09:19 +08:00
extraheaders.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
extraheaders_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
filesize.go feat(system): consolidate system admin and settings into one Settings panel 2026-05-26 21:13:56 +08:00
fileutil.go fix(security): harden outbound requests and file previews 2026-07-02 19:15:46 +08:00
httputil.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
inject.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
inject_test.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
json.go feat: Add DataSchema tool for retrieving schema information from CSV and Excel files 2025-12-29 20:03:51 +08:00
log_sanitize.go feat: implement image upload and multimodal support 2026-03-12 10:32:26 +08:00
mysql_ssrf.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
oidc_state.go fix(security): close six open GHSA findings from security triage 2026-07-02 15:03:53 +08:00
oidc_state_test.go fix(security): close six open GHSA findings from security triage 2026-07-02 15:03:53 +08:00
presign.go perf(storage): reuse a live resource access grant per resource 2026-08-05 14:42:51 +08:00
presign_test.go feat(storage): improve storage connectivity error handling and multi-instance support 2026-07-15 14:54:39 +08:00
security.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
security_redirect_test.go fix(security): close six open GHSA findings from security triage 2026-07-02 15:03:53 +08:00
security_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
security_transport_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
ssrf_outbound_cache.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
ssrf_outbound_cache_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
storage_error.go feat(storage): improve storage connectivity error handling and multi-instance support 2026-07-15 14:54:39 +08:00
taskid.go fix(security): enforce KB access on wiki reads and related IDOR paths 2026-07-02 12:06:22 +08:00
taskid_test.go fix(security): enforce KB access on wiki reads and related IDOR paths 2026-07-02 12:06:22 +08:00