Files
seaweedfs/weed
Chris Lu e088b494f6 fix(s3): replace mock presigned URL signature with HMAC-SHA256 signing
The presigned URL manager used generateMockSignature() which computed a
plain SHA256 hash without any secret key, allowing anyone to forge valid
presigned URL signatures.

Replace with signPresignedURL() that implements AWS SigV4 HMAC-SHA256
signing: derives a signing key via the standard HMAC chain
(date -> region -> service -> aws4_request), then signs a canonical
request built from the HTTP method, path, query, and expiration.

NewS3PresignedURLManager now accepts an optional signingKey variadic
parameter for backward compatibility.
2026-04-01 21:28:32 -07:00
..
2026-03-31 20:53:41 -07:00
2024-02-14 08:26:38 -08:00
2026-04-01 17:42:41 -07:00