]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: pick http_date in case of http_x_amz_date absence 53443/head
authorSeena Fallah <seenafallah@gmail.com>
Fri, 9 Jun 2023 12:14:24 +0000 (14:14 +0200)
committerMykola Golub <mgolub@suse.com>
Wed, 13 Sep 2023 13:32:52 +0000 (16:32 +0300)
commit739e9a2d3f29397a5119a62c47dc648f8c605bfc
tree2f926b2d72aafd39bad55900ca521c49ab3299f8
parent3aa3b3d72be935fc192881282b1440bd3e4c77f8
rgw: pick http_date in case of http_x_amz_date absence

From the AWS doc:
The request date can be specified by using either the HTTP Date or the x-amz-date header. If both headers are present, x-amz-date takes precedence.
Refs: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html

Fixes: https://tracker.ceph.com/issues/61629
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 912b7745181a221bc8468317c83f4c461933208e)
src/rgw/rgw_auth_s3.cc