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

Checksum in object stat/get #1330

Open
trollfot opened this issue Nov 16, 2023 · 3 comments
Open

Checksum in object stat/get #1330

trollfot opened this issue Nov 16, 2023 · 3 comments

Comments

@trollfot
Copy link
Contributor

Hello

As I understand from the S3 docs, when providing a "x-amz-checksum-X" header to put an object, the same header should be returned upon stat/get (HEAD/GET). It's currently not the case. Is it due to minio headers generation ? Reading the raw request in the stat does not yield any more result.

To Reproduce

upload a file via "put_object" with a "x-amz-checksum-X" header that is valid. Stat or Get the object.

Expected behavior

The header should be present

@klauspost
Copy link

You must set x-amz-checksum-mode: ENABLED in the request header. https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html#API_HeadObject_RequestSyntax

Not sure to what extent this SDK supports checksums.

@trollfot
Copy link
Contributor Author

It seems the query functions do not allow for extra headers to be added, unless i'm mistaken. The only headers passed along are the server side encryption (ssec).

@balamurugana
Copy link
Member

@trollfot stat_object() doesn't support extra headers yet. Feel free to send a PR for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants