Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PutObject: chunk-signature in saved object #1009

Open
EESergey opened this issue Sep 25, 2024 · 1 comment
Open

PutObject: chunk-signature in saved object #1009

EESergey opened this issue Sep 25, 2024 · 1 comment
Assignees
Labels
bug Something isn't working I4 No visible changes S4 Routine U2 Seriously planned
Milestone

Comments

@EESergey
Copy link

When using X-Amz-Content-Sha256: STREAMING-AWS4-HMAC-SHA256-PAYLOAD without Content-Encoding: aws-chunked, chunk-signature are saved along with the data.
The documentation does not contain a clear answer about the necessity of specify aws-chunked when using X-Amz-Content-Sha256: STREAMING-AWS4-HMAC-SHA256-PAYLOAD, but AWS saves the object without chunk-signature.

Steps to Reproduce

wget https://github.com/minio/warp/releases/download/v1.0.2/warp_Linux_x86_64.deb
sudo dpkg -i warp_Linux_x86_64.deb
warp run get.yml

get.yml

Put request tcpdump:

PUT /wrong-obj-size-013/wZ7WtxcV/2.1aUIX4oNFA829dRQO.rnd HTTP/1.1
Host: *SENSETIVE-DATA-REMOVED*:9080
User-Agent: MinIO (linux; amd64) minio-go/v7.0.75 warp/1.0.2
Content-Length: 1198
Authorization: AWS4-HMAC-SHA256 Credential=*SENSETIVE-DATA-REMOVED*/20240924/us-east-1/s3/aws4_request,SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-decoded-content-length,Signature=f07685a33fbfaf79dda28d88432627a813b7c9c0b9bf8fee2445c487870c4818
Content-Type: application/octet-stream
X-Amz-Content-Sha256: STREAMING-AWS4-HMAC-SHA256-PAYLOAD
X-Amz-Date: 20240924T142337Z
X-Amz-Decoded-Content-Length: 1024

400;chunk-signature=8aaff24fa81812955f29dcb1e18d522837b3e1e21f8fd1857a09b10d525cc554
ûíÅ¥X(ZKÍ3[W7ªêfÍ
*SOME-DATA-REMOVED*
%y¥þªé«³ÇÁo
0;chunk-signature=cbe50b600993516e6acbfc73d70ab45a0e77c99d5249fc5a7d7d118bd8cd4b1c

Object contents:

$ cat 2.1aUIX4oNFA829dRQO.rnd
400;chunk-signature=8aaff24fa81812955f29dcb1e18d522837b3e1e21f8fd1857a09b10d525cc554
ûíÅ¥X(ZKÍ3[W7ªêfÍ
*SOME-DATA-REMOVED*
%y¥þªé«³ÇÁo
0;chunk-signature=cbe50b600993516e6acbfc73d70ab45a0e77c99d5249fc5a7d7d118bd8cd4b1c
@EESergey EESergey added bug Something isn't working U3 Regular labels Sep 25, 2024
@roman-khimov roman-khimov added U2 Seriously planned S4 Routine I4 No visible changes and removed U3 Regular labels Sep 25, 2024
@roman-khimov roman-khimov added this to the v0.32.0 milestone Sep 25, 2024
@roman-khimov
Copy link
Member

Related to #913.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working I4 No visible changes S4 Routine U2 Seriously planned
Projects
None yet
Development

No branches or pull requests

3 participants