Skip to content

Commit

Permalink
ft(ARSN-2): Support per object encryption in data wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
tmacro committed Jul 7, 2021
1 parent 0f63de2 commit 93503cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/storage/data/DataWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,18 +285,19 @@ class DataWrapper {
* on a data put call.
* @param {object} sourceBucketMD - metadata of the source bucket
* @param {object} destBucketMD - metadata of the destination bucket
* @param {object} serverSideEncryption - server side encryption configuration
* @param {object} log - Werelogs request logger
* @param {function} cb - callback
* @returns {function} cb - callback
*/
copyObject(request, sourceLocationConstraintName, storeMetadataParams,
dataLocator, dataStoreContext, destBackendInfo, sourceBucketMD,
destBucketMD, log, cb) {
const serverSideEncryption = destBucketMD.getServerSideEncryption();
destBucketMD, serverSideEncryption, log, cb) {
if (this.config.backends.data === 'multiple' &&
backendUtils.externalBackendCopy(this.config,
sourceLocationConstraintName, storeMetadataParams.dataStoreName,
sourceBucketMD, destBucketMD)) {
sourceBucketMD, destBucketMD)
&& serverSideEncryption === null) {
const destLocationConstraintName =
storeMetadataParams.dataStoreName;
const objectGetInfo = dataLocator[0];
Expand Down

0 comments on commit 93503cf

Please sign in to comment.