]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: use correct secret key to check auth 26677/head
authorMinSheng Lin <minsheng.l@inwinstack.com>
Fri, 25 Jan 2019 03:20:17 +0000 (03:20 +0000)
committerNathan Cutler <ncutler@suse.com>
Wed, 27 Feb 2019 15:53:03 +0000 (16:53 +0100)
commit04c5a6f0339ad4ad8eead5260b415f4e1584dfbf
tree0247d55cd00253a7a737c950c5660277635b52e7
parent98259b201cc34b1e3e9cee314f7668030156e74c
rgw_file: use correct secret key to check auth

Currently, the authorize function in rgw_file only use the secret key of
first key pair to compare, add a function which get secret key by user's
access key and check the result is match with user's secret key.

Fixes: https://tracker.ceph.com/issues/37855
Signed-off-by: MinSheng Lin <minsheng.l@inwinstack.com>
(cherry picked from commit e92755c60325475342afcafcd5293a20e3e5216a)
src/rgw/rgw_common.h
src/rgw/rgw_file.h