Try to get decryption object key from stored metadata (key_id path from
X-Object-Sysmeta-Crypto-Body-Meta) because sometime object.path is wrong
during encryption process.
This patch doesn't solve the underlying issue, but is needed to decrypt
already wrongly stored objects.
Change-Id: I1a6bcdebdb46ef03c342428aeed73ae76db29922
Co-Author: Thomas Goirand <email address hidden>
Partial-Bug: #1813725
Reviewed: https:/ /review. openstack. org/633671 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=9b3ca9423eb 8cf9420a3e98f60 cd56dd281b4208
Committed: https:/
Submitter: Zuul
Branch: master
commit 9b3ca9423eb8cf9 420a3e98f60cd56 dd281b4208
Author: Simeon Gourlin <email address hidden>
Date: Tue Jan 29 09:13:16 2019 +0100
Fix decryption for broken objects
Try to get decryption object key from stored metadata (key_id path from Sysmeta- Crypto- Body-Meta) because sometime object.path is wrong
X-Object-
during encryption process.
This patch doesn't solve the underlying issue, but is needed to decrypt
already wrongly stored objects.
Change-Id: I1a6bcdebdb46ef 03c342428aeed73 ae76db29922
Co-Author: Thomas Goirand <email address hidden>
Partial-Bug: #1813725