]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fetch_remote_obj() preserves original part lengths for BlockDecrypt
authorCasey Bodley <cbodley@redhat.com>
Wed, 28 Jun 2023 21:14:16 +0000 (17:14 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 3 Aug 2023 13:01:11 +0000 (09:01 -0400)
commite7d98fb36994559b08bf0e2273d333d8fc125886
tree5650ac3074d325f710300b1dc95d987aa0554507
parentd8a82f5aaa1a04b695c19b546767718b832559cb
rgw: fetch_remote_obj() preserves original part lengths for BlockDecrypt

because multisite replicates multipart objects as a single part, we lose
information about the part sizes from the original manifest that is
necessary to correctly decrypt across those part boundaries

on replication, parse the part lengths out of the source object's
manifest, and store them in a separate RGW_ATTR_CRYPT_PARTS for use on
decryption

Fixes: https://tracker.ceph.com/issues/46062
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_rados.cc
src/rgw/rgw_common.h
src/rgw/rgw_rest_s3.cc