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

quincy: rgw: x-amz-date change breaks certain cases of aws sig v4. #48312

Merged
merged 1 commit into from Feb 22, 2023

Conversation

k0ste
Copy link
Contributor

@k0ste k0ste commented Sep 30, 2022

backport tracker: https://tracker.ceph.com/issues/57196


backport of #47547
parent tracker: https://tracker.ceph.com/issues/57094

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

@github-actions github-actions bot added the rgw label Sep 30, 2022
@github-actions github-actions bot added this to the quincy milestone Sep 30, 2022
@k0ste
Copy link
Contributor Author

k0ste commented Jan 24, 2023

needs-qa

Once upon a time, x-amz-date strings were in rfc 2616 format, and most
s3 clients are written to make this style of timestamp.  The current protocol
standard specifies iso 8601 timestamps (yyyymmddThhmmssZ), and client
libraries are changing to use this new format.

This change does two things: firstly, if the date parse fails, it logs
the actual offending timestamp for later analysis.  Secondly, if rfc
2616 fails, it tries iso 8601.  The new timestamp is tried secondarily,
because that lgoic also emits a (less useful) error message, which should
not be spamnificated for valid rfc 2616 timestamps.

Fixes: https://tracker.ceph.com/issues/57094

Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit 70ba760)
@smanjara
Copy link
Contributor

jenkins retest

@smanjara smanjara self-requested a review February 21, 2023 17:09
@yuriw
Copy link
Contributor

yuriw commented Feb 21, 2023

jenkins test api

@yuriw yuriw merged commit 3c17382 into ceph:quincy Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants