Project

General

Profile

Bug #20176

rgw bugfix:s3 aws v2 signature priority between header['X-Amz-Date'] and header['Date']

Added by joke lee over 2 years ago. Updated over 2 years ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

as http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html Time Stamp Requirement section metioned

When an x-amz-date header is present in a request, the system will ignore any Date header when computing the request signature. Therefore, if you include the x-amz-date header, use the empty string for the Date when constructing the StringToSign

and in real life, some client mechine's time is shift to rgw server, and those mechine's time is not able to adjust, but we can set X-Amz-Date in request header to fix this problem, but in current version code, the header['Date'] priority is higher than header['X-Amz-Date'].

the PR https://github.com/ceph/ceph/pull/15467 fix this problem

History

#1 Updated by Kefu Chai over 2 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to joke lee

Also available in: Atom PDF