Files
ocis/services/proxy/pkg
David WalterandClaude Opus 4.8 9296546be3 fix(proxy): guard against empty signing key store in presigned URL auth (#12418)
signatureIsValid indexed signingKey[0] without checking the slice length. When
the signing-key store returns an empty result without an error — which the
"noop" store does, and OCIS_CACHE_STORE=noop also switches the presigned-URL
signing-key store to noop — every signed-URL download panicked with
"index out of range [0] with length 0" (recovered per request as a 502), so all
signed-URL downloads failed.

Guard the index access and return a real authentication error. The previous
empty-value branch also returned a nil error, which would have accepted an empty
signing key; it now returns an error so the request is rejected.

Signed-off-by: David Walter <david.walter@kiteworks.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 11:23:54 +02:00
..
2026-06-19 10:43:41 +02:00
2024-10-01 10:41:24 +02:00
2026-06-19 10:43:41 +02:00
2024-08-06 13:33:18 +02:00
2024-10-17 19:03:14 +02:00
2026-02-10 16:27:52 +01:00
2026-06-19 10:43:41 +02:00