-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage: allow custom file encryption #1364
Conversation
key: key, | ||
hash: crypto.createHash('sha256').update(key, 'base64').digest('base64') | ||
}; | ||
}; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Just to confirm, the goal here is to be able to set a key when uploading a file. Eventually we might want a key-derivation library involved, but for now this is just about setting a key on a per-file basis. |
Let me know how far off #1364 (comment) is from what you're looking for. |
If we only support uploading a file, the user would be blocked out from other operations, like downloading it. The way this PR works is:
|
* }); | ||
* }); | ||
*/ | ||
File.prototype.encrypt = function(code) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
4f84239
to
87d040b
Compare
87d040b
to
1470353
Compare
@callmehiphop PTAL! |
@stephenplusplus I think npm might have messed up your most recent release of |
Fixed... v0.7.1. |
This might be a slightly off-topic question, but the upstream documentation for sending encryption keys also mentions a separate set of headers for |
|
Done! #1373 |
Changes Unknown when pulling 6e1df56 on stephenplusplus:spp--1361 into * on GoogleCloudPlatform:master*. |
Fixes #1361
To Dos
options.encryption
in gcs-resumable-upload