minio/pkg
Andreas Auernhammer e8a12cbfdd
etag: compute ETag as MD5 for compressed single-part objects (#12375)
This commit fixes a bug causing the MinIO server to compute
the ETag of a single-part object as MD5 of the compressed
content - not as MD5 of the actual content.

This usually does not affect clients since the MinIO appended
a `-1` to indicate that the ETag belongs to a multipart object.
However, this behavior was problematic since:
 - A S3 client being very strict should reject such an ETag since
   the client uploaded the object via single-part API but got
   a multipart ETag that is not the content MD5.
 - The MinIO server leaks (via the ETag) that it compressed the
   object.

This commit addresses both cases. Now, the MinIO server returns
an ETag equal to the content MD5 for single-part objects that got
compressed.

Signed-off-by: Andreas Auernhammer <aead@mail.de>
2021-05-27 08:18:41 -07:00
..
auth admin: Return exported errors with invalid access secret keys (#12234) 2021-05-05 14:44:54 -07:00
bpool update license change for MinIO 2021-04-23 11:58:53 -07:00
bucket fix: lint errors after upgrading golangci-lint (#12368) 2021-05-25 14:17:33 -07:00
certs kms: replace KES client implementation with minio/kes (#12207) 2021-05-10 18:15:11 -07:00
cgroup docs: fix per tenant limits docs formatting 2021-05-24 09:37:17 -07:00
color update license change for MinIO 2021-04-23 11:58:53 -07:00
console update license change for MinIO 2021-04-23 11:58:53 -07:00
disk fix: remove all unused code (#12360) 2021-05-24 09:28:19 -07:00
dsync lock: Timeout Unlock RPC call (#12213) 2021-05-11 02:11:29 -07:00
ellipses update license change for MinIO 2021-04-23 11:58:53 -07:00
env update license change for MinIO 2021-04-23 11:58:53 -07:00
etag etag: compute ETag as MD5 for compressed single-part objects (#12375) 2021-05-27 08:18:41 -07:00
event fix: lint errors after upgrading golangci-lint (#12368) 2021-05-25 14:17:33 -07:00
fips config: enforce AES-GCM in FIPS mode (#12265) 2021-05-10 08:24:11 -07:00
handlers update license change for MinIO 2021-04-23 11:58:53 -07:00
hash etag: compute ETag as MD5 for compressed single-part objects (#12375) 2021-05-27 08:18:41 -07:00
iam/policy Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
ioutil reduce memory usage in metacache reader (#12334) 2021-05-20 09:00:11 -07:00
kms fix: use key.Ciphertext for DecryptKey in KeyStatus (#12313) 2021-05-18 07:22:31 -07:00
licverifier update license change for MinIO 2021-04-23 11:58:53 -07:00
lock update license change for MinIO 2021-04-23 11:58:53 -07:00
lsync update license change for MinIO 2021-04-23 11:58:53 -07:00
mimedb Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
mountinfo update license change for MinIO 2021-04-23 11:58:53 -07:00
net move madmin to github.com/minio/madmin-go (#12239) 2021-05-06 08:52:02 -07:00
pubsub update license change for MinIO 2021-04-23 11:58:53 -07:00
quick update license change for MinIO 2021-04-23 11:58:53 -07:00
s3select fix: lint errors after upgrading golangci-lint (#12368) 2021-05-25 14:17:33 -07:00
safe update license change for MinIO 2021-04-23 11:58:53 -07:00
smart fix: remove all unused code (#12360) 2021-05-24 09:28:19 -07:00
sync/errgroup update license change for MinIO 2021-04-23 11:58:53 -07:00
sys fix: remove all unused code (#12360) 2021-05-24 09:28:19 -07:00
trie update license change for MinIO 2021-04-23 11:58:53 -07:00
wildcard update license change for MinIO 2021-04-23 11:58:53 -07:00
words update license change for MinIO 2021-04-23 11:58:53 -07:00