-
Notifications
You must be signed in to change notification settings - Fork 421
fix(rest): handle empty body in AWS SigV4 signing #2827
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
base: main
Are you sure you want to change the base?
Conversation
kevinjqliu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the PR! could you provide some context around this change? and perhaps a test
750b14b to
1ef9f2f
Compare
1ef9f2f to
d595859
Compare
This change is made to align with the behavior of the Java version, can you help check whether the change is reasonable?https://github.com/apache/iceberg/blob/main/aws/src/main/java/org/apache/iceberg/aws/RESTSigV4AuthSession.java#L116 |
df984c9 to
2b42e66
Compare
2b42e66 to
4d0615f
Compare
Fokko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the reference to the Java code, this change looks good to me 👍
Co-authored-by: Fokko Driesprong <fokko@apache.org>
geruh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! The fix is correct, and aligns with the Java impl.
Rationale for this change
The x-amz-content-sha256 header is required for AWS requests. It provides a hash of the request payload. If there is no payload, you must provide the hash of an empty string.
Are these changes tested?
Are there any user-facing changes?