WeKnora/internal/application
Captain bcfb6dfc12
fix(storage): keep the SSRF redirect policy on the KS3 client (#3440)
ks3s3.New merges its default config into the one it is given and then
installs the SDK's own redirect policy on the http.Client it was handed:
up to ten hops, no check of the target, and the previous hop's
Authorization header copied onto every redirect, cross-host included.
That silently replaced the SSRF-safe policy the client was built with,
so a redirect from the KS3 endpoint was followed without the target
check every other request gets, and the request signature travelled to
whatever host the redirect named. Go's own client drops Authorization
on a cross-domain redirect precisely to avoid that.

Save the policy before New and put it back on the client afterwards.
The per-hop transport guard was never affected; this restores the
redirect-time check and keeps the signature with the endpoint.
2026-09-20 11:12:52 +08:00
..
access refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
repository fix(qdrant): treat a missing dimension collection as an empty delete target (#3419) 2026-09-20 11:12:18 +08:00
service fix(storage): keep the SSRF redirect policy on the KS3 client (#3440) 2026-09-20 11:12:52 +08:00