]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: handle http options CORS with v2 auth 59977/head
authorTobias Urdin <tobias.urdin@binero.com>
Wed, 25 Sep 2024 10:26:10 +0000 (12:26 +0200)
committerTobias Urdin <tobias.urdin@binero.com>
Wed, 25 Sep 2024 10:26:10 +0000 (12:26 +0200)
commit51adf772719bdd68a9288490f218d1dc7d99c91a
tree47c64f9e9dce807489e06c1f814555a703b34767
parent327d209151bd40cbce8ab0444d59829d75f66b9b
rgw: handle http options CORS with v2 auth

If we get a HTTP OPTIONS request for a presigned URL that
contains credentials we need to compute the signature
using the method given in the access-control-request-method
http header.

This is the same as performed for v4 auth in [1].

[1] https://github.com/ceph/ceph/pull/52673

Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
src/rgw/rgw_auth_s3.cc
src/rgw/rgw_auth_s3.h
src/rgw/rgw_rest_client.cc
src/rgw/rgw_rest_s3.cc