]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/auth: handle HTTP OPTIONS with v4 auth
authorTobias Urdin <tobias.urdin@binero.se>
Mon, 7 Aug 2023 20:34:43 +0000 (20:34 +0000)
committerMykola Golub <mgolub@suse.com>
Tue, 12 Sep 2023 09:34:17 +0000 (12:34 +0300)
commit5b7b1526ca5c567f4f9766eaf416cd1d2ea2829f
treeac946ddf85117b0d1a7a5616c4507bd85bf0b8fb
parent2d78f81aae15efc8fd096e6edf8bf5bc679004fa
rgw/auth: handle HTTP OPTIONS with v4 auth

This adds code to properly verify the signature
for HTTP OPTIONS calls that is preflight CORS
requests passing the expected method in the
access-control-request-method header.

Fixes: https://tracker.ceph.com/issues/62033
Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
(cherry picked from commit 814cae52baf04d9c3f0f3bd04b8e2daf16eb3874)

Conflicts:
src/rgw/rgw_cors.h (trivial)
src/rgw/rgw_op.cc (different signature for validate_cors_rule_method)
src/rgw/rgw_rest_s3.cc (trivial)
src/rgw/rgw_cors.h
src/rgw/rgw_op.cc
src/rgw/rgw_rest_s3.cc