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 1 year ago. Updated over 1 year ago.

Status:
Need Review
Priority:
Normal
Assignee:
Target version:
-
Start date:
06/04/2017
Due date:
% Done:

0%

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

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 1 year ago

  • Status changed from New to Need Review
  • Assignee set to joke lee

Also available in: Atom PDF