Project

General

Profile

Actions

Bug #20176

closed

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

Added by joke lee almost 7 years ago. Updated about 4 years ago.

Status:
Resolved
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 (v1):
Crash signature (v2):

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

Actions #1

Updated by Kefu Chai almost 7 years ago

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

Updated by Daniel Gryniewicz about 4 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF