]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/kms/vault - share get/set attr between rgw_crypt.cc and rgw_kms.cc
authorMarcus Watts <mwatts@redhat.com>
Mon, 7 Dec 2020 22:48:31 +0000 (17:48 -0500)
committerMarcus Watts <mwatts@redhat.com>
Wed, 10 Mar 2021 01:32:24 +0000 (20:32 -0500)
commit65a261a9c8a5ac0d9ead64b3c22b33bb4adbd8dc
tree283cc9fccbd936d46ee32de281ba47e1c8bd8109
parent2677dbab55d053bee3a79f266e66027512cc852d
rgw/kms/vault - share get/set attr between rgw_crypt.cc and rgw_kms.cc

In order to pass down and manage "attrs" from crypt logic to kms
logic, it's necessary to share the functions that can get and
set strings in that structure.  Eventually, I plan to have
the various engines store and retrieve a per-object "datakey" that
is encrypted (wrapped) by the named kms key.

Fixes: http://tracker.ceph.com/issues/48746
Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit 89959fb1946c82e48144ba29f9587932730c396b)
src/rgw/rgw_crypt.h