WeKnora/internal/models/embedding
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
..
aliyun.go fix(embedding): add SSRF validation and safe HTTP client for embedders 2026-06-26 22:41:04 +08:00
azure_openai.go fix(embedding): add SSRF validation and safe HTTP client for embedders 2026-06-26 22:41:04 +08:00
azure_openai_test.go Add embedding dimension override support 2026-06-15 19:18:19 +08:00
batch.go fix(embedding): prevent ants worker panic and mutex deadlock on empty/mismatched results 2026-08-04 16:46:57 +08:00
concurrency_wrapper.go feat(system): expose model concurrency stats on runtime queues dashboard 2026-07-11 07:17:28 +08:00
concurrency_wrapper_test.go feat(models): add max concurrency setting for background tasks 2026-07-09 20:40:51 +08:00
config_from_model_test.go Add embedding dimension override support 2026-06-15 19:18:19 +08:00
dimensions_policy_test.go Add embedding dimension override support 2026-06-15 19:18:19 +08:00
embedder.go feat(models): add max concurrency setting for background tasks 2026-07-09 20:40:51 +08:00
gemini.go fix(embedding): add SSRF validation and safe HTTP client for embedders 2026-06-26 22:41:04 +08:00
gemini_test.go fix(embedding): add SSRF validation and safe HTTP client for embedders 2026-06-26 22:41:04 +08:00
jina.go fix(embedding): add SSRF validation and safe HTTP client for embedders 2026-06-26 22:41:04 +08:00
langfuse_wrapper.go feat(observability): integrate Langfuse for LLM token tracking and tracing 2026-04-24 10:29:19 +08:00
llm_debug.go Add embedding dimension override support 2026-06-15 19:18:19 +08:00
nvidia.go fix(embedding): add SSRF validation and safe HTTP client for embedders 2026-06-26 22:41:04 +08:00
ollama.go Add embedding dimension override support 2026-06-15 19:18:19 +08:00
openai.go fix(embedding): add SSRF validation and safe HTTP client for embedders 2026-06-26 22:41:04 +08:00
openai_test.go fix(embedding): add SSRF validation and safe HTTP client for embedders 2026-06-26 22:41:04 +08:00
transport.go refactor(http): share SSRF-safe transport across model clients 2026-07-23 12:00:05 +08:00
transport_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
volcengine.go fix(embedding): add SSRF validation and safe HTTP client for embedders 2026-06-26 22:41:04 +08:00
weknoracloud.go fix(embedding): add SSRF validation and safe HTTP client for embedders 2026-06-26 22:41:04 +08:00
zhipu.go fix(embedding): add SSRF validation and safe HTTP client for embedders 2026-06-26 22:41:04 +08:00