Code Monkey home page Code Monkey logo

Comments (9)

lukesneeringer avatar lukesneeringer commented on September 26, 2024

Hi @subra-vr,
Thanks for reporting this.

I just submitted #2324 which should give you what you need. Let me know if this solves your use case?

from nodejs-storage.

lukesneeringer avatar lukesneeringer commented on September 26, 2024

From @conundrum888 on May 21, 2017 21:16

That should work, thanks.

from nodejs-storage.

lukesneeringer avatar lukesneeringer commented on September 26, 2024

From @frankyn on July 20, 2017 18:28

Hi, I'm just pinging the issue as I was trying to use the File.copy method to rotate customer-supplied encryption key using node.

I tried the following, but I didn't have any luck.

var file = bucket.file("file_name");
var options = {baseHeader: "x-goog-copy-source-encryption"};
file.setEncryptionKey(encryptionKey, options); // file was already set with encryption key
file.copy("file_name", function(err, copiedFile, apiResponse) { // used the same filename
   copiedFile.setEncryptionKey(new_encryptionKey);
   copiedFile.save(); // rotate encryption key
});

from nodejs-storage.

lukesneeringer avatar lukesneeringer commented on September 26, 2024

From @stephenplusplus on July 20, 2017 21:43

Maybe we should have a method:

file.rotateEncryptionKey(newKey, function(err) {});

This would handle doing the rewrite, and managing the headers. What do you think?

from nodejs-storage.

lukesneeringer avatar lukesneeringer commented on September 26, 2024

From @frankyn on July 20, 2017 21:46

+1 I agree can we move forward with this feature request? Ruby has this helper method in its client library. (Documentation).

from nodejs-storage.

lukesneeringer avatar lukesneeringer commented on September 26, 2024

From @stephenplusplus on July 20, 2017 21:47

Sounds good to me, and thanks for the reference.

from nodejs-storage.

lukesneeringer avatar lukesneeringer commented on September 26, 2024

From @frankyn on August 3, 2017 16:22

@stephenplusplus is there a status on this request?

from nodejs-storage.

lukesneeringer avatar lukesneeringer commented on September 26, 2024

From @stephenplusplus on August 3, 2017 16:45

@lukesneeringer has GCS on a code freeze while we are doing some code/repo re-organization. He can address the timeline aspect of this request.

from nodejs-storage.

stephenplusplus avatar stephenplusplus commented on September 26, 2024

PR sent: #81

from nodejs-storage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.