(bucketInfo, isV2Request, log, cb)
| 379 | } |
| 380 | |
| 381 | function createCipherBundle(bucketInfo, isV2Request, log, cb) { |
| 382 | // Older backbeat versions do not support encryption (they ignore |
| 383 | // encryption parameters returned), hence we shall not encrypt if |
| 384 | // request comes from an older version of Backbeat |
| 385 | if (isV2Request) { |
| 386 | const serverSideEncryption = bucketInfo.getServerSideEncryption(); |
| 387 | if (serverSideEncryption) { |
| 388 | return kms.createCipherBundle(serverSideEncryption, log, cb); |
| 389 | } |
| 390 | } |
| 391 | return cb(null, null); |
| 392 | } |
| 393 | |
| 394 | function putData(request, response, bucketInfo, objMd, log, callback) { |
| 395 | if (request.serverAccessLog) { |
no test coverage detected