]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: The error reported in the "rgw_s3_prepare_decrypt" function is unreasonable 46443/head
authorwangyingbin <ybwang0211@163.com>
Tue, 31 May 2022 08:21:37 +0000 (16:21 +0800)
committerwangyingbin <ybwang0211@163.com>
Fri, 17 Jun 2022 06:37:46 +0000 (14:37 +0800)
commite637deef247700353a2de870c50a718ada1da2b4
tree85e2cd1a8b2b1602dc453b8d97aabf1c08aa4fc4
parentb76b6ea16899861d6c266797b3c11d9f68f924d7
rgw: The error reported in the "rgw_s3_prepare_decrypt" function is unreasonable

When decrypting the data encrypted with the "SSE-KMS" method, the "InvalidAccessKeyId" error is reported when the KMS key is unavailable, which is unreasonable.So we replaced it with EINVAL

Fixes: https://tracker.ceph.com/issues/55799
Signed-off-by: wangyingbin <ybwang0211@163.com>
src/rgw/rgw_crypt.cc
src/rgw/rgw_kms.cc