Comments (9)
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.
From @conundrum888 on May 21, 2017 21:16
That should work, thanks.
from nodejs-storage.
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.
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.
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.
From @stephenplusplus on July 20, 2017 21:47
Sounds good to me, and thanks for the reference.
from nodejs-storage.
From @frankyn on August 3, 2017 16:22
@stephenplusplus is there a status on this request?
from nodejs-storage.
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.
PR sent: #81
from nodejs-storage.
Related Issues (20)
- preconditions not working HOT 2
- File.save sometimes returns a Promise that never rejects or resolves HOT 10
- storage HMAC keys: should delete the key failed HOT 2
- File.save() with a Uint8Array fails HOT 9
- storage HMAC keys: should make the key INACTIVE failed HOT 4
- chore: remove internalTooling from eslint ignores once >= node 16
- How to set destination while using uploadManyFiles in TransferManager HOT 6
- Unhandled Error in startResumableUpload_ Function
- storage HMAC keys: should get metadata for an HMAC key failed HOT 1
- storage HMAC keys: should make the key INACTIVE failed HOT 1
- storage HMAC keys: should delete the key failed HOT 1
- Security vulnerability with fast-xml-parser dependency
- storage HMAC keys: should make the key INACTIVE failed HOT 3
- storage HMAC keys: should delete the key failed HOT 3
- storage: "before all" hook in "storage" failed HOT 1
- storage HMAC keys: should get metadata for an HMAC key failed
- Add an example for uploadManyFiles method HOT 2
- docs: Clarify whether setMetadata is replacing existing metadata or updating only specified fields HOT 1
- storage public access prevention enforced public access prevention behavior: object cannot be made public via ACL failed HOT 1
- Cannot import RETRYABLE_ERR_FN_DEFAULT HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodejs-storage.