WeKnora/internal/im/yunzhijia
wizardchen 0869f3e829 fix(im): harden Yunzhijia image download and prune dead validation
- Follow a single download redirect while re-validating the target stays
  within the allowed host suffix; never forward the bearer token across it.
  The shared http client disables auto-redirects for SSRF safety, so a 302
  from downloadfileOpen previously failed the download outright.
- Cap in-memory download size at 32 MiB via a limited read-closer that
  errors instead of silently truncating, avoiding OOM on large responses.
- Remove dead frontend host-suffix validation branch (normalize always
  fills the default) and drop the now-unused i18n keys
  yunzhijiaAllowedHostSuffixRequired / yunzhijiaRequiredCredentials.
- Add tests for redirect follow/reject and the size limit.
2026-07-23 12:41:19 +08:00
..
adapter.go fix(im): harden Yunzhijia image download and prune dead validation 2026-07-23 12:41:19 +08:00
adapter_test.go fix(im): harden Yunzhijia image download and prune dead validation 2026-07-23 12:41:19 +08:00
factory.go feat(im): support Yunzhijia image messages 2026-07-23 12:25:51 +08:00
sign.go feat(im): add Yunzhijia integration 2026-07-21 12:24:33 +08:00
types.go feat(im): support Yunzhijia image messages 2026-07-23 12:25:51 +08:00
url.go feat(im): add Yunzhijia integration 2026-07-21 12:24:33 +08:00
url_test.go feat(im): add Yunzhijia integration 2026-07-21 12:24:33 +08:00
websocket.go feat(im): add Yunzhijia integration 2026-07-21 12:24:33 +08:00
websocket_test.go feat(im): add Yunzhijia integration 2026-07-21 12:24:33 +08:00