Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

s3: stop trusting internal ACL headers in ParseS3Metadata

Chris Lu3aaf80b33b71
diff --git a/weed/s3api/s3_metadata_util.go b/weed/s3api/s3_metadata_util.go
index 6f71776f1e..bcd62b0e9d 100644
--- a/weed/s3api/s3_metadata_util.go
+++ b/weed/s3api/s3_metadata_util.go
@@ -94,18 +94,6 @@ func ParseS3Metadata(r *http.Request, existing map[string][]byte, isReplace bool
metadata[s3_constants.AmzServerSideEncryptionCustomerKeyMD5] = []byte(keyMD5)
}
- // ACL owner
- acpOwner := r.Header.Get(s3_constants.ExtAmzOwnerKey)
- if len(acpOwner) > 0 {
- metadata[s3_constants.ExtAmzOwnerKey] = []byte(acpOwner)
- }
-
- // ACL grants
- acpGrants := r.Header.Get(s3_constants.ExtAmzAclKey)
- if len(acpGrants) > 0 {
- metadata[s3_constants.ExtAmzAclKey] = []byte(acpGrants)
- }
-
return metadata, s3err.ErrNone
}