MCPcopy Index your code
hub / github.com/scality/cloudserver / createCipherBundle

Function createCipherBundle

lib/routes/routeBackbeat.js:381–392  ·  view source on GitHub ↗
(bucketInfo, isV2Request, log, cb)

Source from the content-addressed store, hash-verified

379}
380
381function 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
394function putData(request, response, bucketInfo, objMd, log, callback) {
395 if (request.serverAccessLog) {

Callers 1

putDataFunction · 0.85

Calls 1

createCipherBundleMethod · 0.80

Tested by

no test coverage detected