Browse Source

fmt

pull/7598/head
chrislu 2 days ago
parent
commit
b031ca8258
  1. 14
      weed/s3api/s3api_object_handlers_copy_unified.go

14
weed/s3api/s3api_object_handlers_copy_unified.go

@ -148,13 +148,13 @@ func (s3a *S3ApiServer) executeEncryptCopy(entry *filer_pb.Entry, r *http.Reques
if len(encSpec.DestinationIV) > 0 {
sseKey.IV = encSpec.DestinationIV
}
keyData, serErr := SerializeSSES3Metadata(sseKey)
if serErr != nil {
return nil, nil, fmt.Errorf("failed to serialize SSE-S3 metadata: %w", serErr)
}
dstMetadata[s3_constants.SeaweedFSSSES3Key] = keyData
dstMetadata[s3_constants.AmzServerSideEncryption] = []byte("AES256")
glog.V(3).Infof("Generated SSE-S3 metadata for streaming encrypt copy: %s", dstPath)
keyData, serErr := SerializeSSES3Metadata(sseKey)
if serErr != nil {
return nil, nil, fmt.Errorf("failed to serialize SSE-S3 metadata: %w", serErr)
}
dstMetadata[s3_constants.SeaweedFSSSES3Key] = keyData
dstMetadata[s3_constants.AmzServerSideEncryption] = []byte("AES256")
glog.V(3).Infof("Generated SSE-S3 metadata for streaming encrypt copy: %s", dstPath)
}
}
return chunks, dstMetadata, nil

Loading…
Cancel
Save