Skip to content

Commit 8eecc5c

Browse files
Introduce KMS (googleapis#179)
This adds support for KMS.
1 parent 37b17e1 commit 8eecc5c

10 files changed

Lines changed: 3167 additions & 3615 deletions

File tree

handwritten/storage/package-lock.json

Lines changed: 903 additions & 1641 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

handwritten/storage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"create-error-class": "^3.0.2",
7272
"duplexify": "^3.5.0",
7373
"extend": "^3.0.0",
74-
"gcs-resumable-upload": "^0.10.1",
74+
"gcs-resumable-upload": "^0.10.2",
7575
"hash-stream-validation": "^0.2.1",
7676
"is": "^3.0.1",
7777
"mime": "^2.2.0",

handwritten/storage/samples/encryption.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ function rotateEncryptionKey(bucketName, fileName, oldKey, newKey) {
152152
.file(fileName, {
153153
encryptionKey: Buffer.from(oldKey, 'base64'),
154154
})
155-
.rotateEncryptionKey(Buffer.from(newKey, 'base64'))
155+
.rotateEncryptionKey({
156+
encryptionKey: Buffer.from(newKey, 'base64'),
157+
})
156158
.then(() => {
157159
console.log(`Encryption key rotated successfully.`);
158160
})

0 commit comments

Comments
 (0)