Files
seaweedfs/weed/s3api
Chris LuandClaude Opus 5.5 c3e284a45c s3api: return SSE headers from CompleteMultipartUpload (#13389)
* s3api: return the object's SSE headers from CompleteMultipartUpload

AWS answers CompleteMultipartUpload for an encrypted object with
x-amz-server-side-encryption, the KMS key id and bucket-key-enabled.
Read them from the committed entry the way HEAD does, on both the first
answer and a retry answered from the committed object. SSE-C customer
headers are not echoed, as AWS does not send them on Complete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3api: test CompleteMultipartUpload SSE response headers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3api: answer CompleteMultipartUpload SSE headers from the entry only

setSSEResponseHeaders falls back to the request's KMS key id and
bucket-key headers, so a Complete request carrying them could report a
bucket key the object does not use. Complete's own headers say nothing
about the object; pass none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3api: test that Complete does not echo request SSE-KMS headers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 11:15:32 -08:00
..
2024-07-04 11:00:41 -07:00

see https://blog.aqwari.net/xml-schema-go/

1. go get aqwari.net/xml/cmd/xsdgen
2. Add EncodingType element for ListBucketResult in AmazonS3.xsd
3. xsdgen -o s3api_xsd_generated.go -pkg s3api AmazonS3.xsd
4. Remove empty Grantee struct in s3api_xsd_generated.go
5. Remove xmlns: sed s'/http:\/\/s3.amazonaws.com\/doc\/2006-03-01\/\ //' s3api_xsd_generated.go