WeKnora/internal/im/wecom
LuckVd d9237166cc fix(im/wecom): accept custom wss long-connection endpoints behind SSRF host checks
validateEndpointURL pinned the scheme to wss for long-connection endpoints
and then passed the URL to ValidateURLForSSRF, whose scheme allowlist only
accepts http/https — so every custom ws/wss endpoint failed with
"invalid scheme: wss (only http/https allowed)" and SSRF_WHITELIST could
not help because the whitelist is only consulted after the scheme check.
The default endpoint worked only because it short-circuits validation.

Validate ws/wss endpoints under an https mask instead: the scheme is
already pinned, and every host-level guard (restricted hostnames,
private/metadata IPs, DNS rebinding, port blocklist, whitelist and
whitelist-only mode) still applies unchanged. Same approach as
qqbot.validateGatewayURL.
2026-10-10 20:29:15 +08:00
..
endpoint_test.go fix(im/wecom): accept custom wss long-connection endpoints behind SSRF host checks 2026-10-10 20:29:15 +08:00
factory.go fix(im): harden connection lifecycle across replicas 2026-07-27 20:39:12 +08:00
longconn.go fix(im/wecom): preserve image in mixed messages with text captions (#3901) 2026-10-08 01:25:25 +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
mixed_test.go fix(im/wecom): preserve image in mixed messages with text captions (#3901) 2026-10-08 01:25:25 +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 feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +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(im/wecom): accept custom wss long-connection endpoints behind SSRF host checks 2026-10-10 20:29:15 +08:00
webhook_adapter_test.go fix(im): handle WeCom 32-byte PKCS7 padding (#2848) 2026-08-28 15:40:42 +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