]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/kms/vault - encryption context - first part
authorMarcus Watts <mwatts@redhat.com>
Mon, 7 Dec 2020 22:55:22 +0000 (17:55 -0500)
committerMarcus Watts <mwatts@redhat.com>
Sat, 6 Mar 2021 04:05:13 +0000 (23:05 -0500)
commitabcf87dc52ad46a23bd4b2bca56a0af807bcf770
tree9a90fc6b231e36d9fc19bb385ec7c24921624b15
parent2ea143711430cb76c55479fdfbf7ba02d1fd80fb
rgw/kms/vault - encryption context - first part

This includes the logic to process the user provided
encryption context, turn it into "canonical json", and
to add in a default arn if it's not present.

Also present here is the start of logic to distinguish
between "prepare_encrypt" and "prepare_decrypt" at a lower
level; as "make_key" and "reconstitute_key" these will be
the functions that separately create a new datakey using
the vault transit operation, and to retrieve a previously
stored datakey.

Fixes: http://tracker.ceph.com/issues/48746
Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_crypt.cc
src/rgw/rgw_kms.cc
src/rgw/rgw_kms.h