Skip to content

fix: allow string encryption keys #1418

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

Conversation

stephenplusplus
Copy link
Contributor

@stephenplusplus stephenplusplus commented Mar 6, 2021

** edit ** I don't know if this was the right thing to do. Holding off for now.

The encryptionKey of bucket.upload({encryptionKey}), bucket.file('name', {encryptionKey}), and possibly others were said to accept either a String or Buffer. However, if a base64 string was provided, it was being re-encoded. This change will allow both to be handled separately, passing along the correct base64-encoded encryption key to the API.

@stephenplusplus stephenplusplus requested a review from a team March 6, 2021 17:43
@stephenplusplus stephenplusplus requested a review from a team as a code owner March 6, 2021 17:43
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/nodejs-storage API. label Mar 6, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 6, 2021
@codecov
Copy link

codecov bot commented Mar 6, 2021

Codecov Report

Merging #1418 (b79e9e6) into master (839ed0b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1418   +/-   ##
=======================================
  Coverage   99.10%   99.10%           
=======================================
  Files          14       14           
  Lines       12145    12147    +2     
  Branches      529      531    +2     
=======================================
+ Hits        12036    12038    +2     
  Misses        109      109           
Impacted Files Coverage Δ
src/file.ts 99.94% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 839ed0b...f910586. Read the comment docs.

gcf-owl-bot bot added a commit that referenced this pull request Apr 14, 2022
…move configs to Node 12 (#1418)

* build: make ci testing conditional on engines field in package.json, move configs to Node 12

Co-authored-by: Benjamin E. Coe <[email protected]>
Source-Link: googleapis/synthtool@2800f5a
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:dc7bfb4c4bf50496abbdd24bd9e4aaa833dc75248c0a9e3a7f807feda5258873
ddelgrosso1 pushed a commit that referenced this pull request Apr 15, 2022
…move configs to Node 12 (#1418) (#1874)

* build: make ci testing conditional on engines field in package.json, move configs to Node 12

Co-authored-by: Benjamin E. Coe <[email protected]>
Source-Link: googleapis/synthtool@2800f5a
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:dc7bfb4c4bf50496abbdd24bd9e4aaa833dc75248c0a9e3a7f807feda5258873

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Benjamin E. Coe <[email protected]>
ddelgrosso1 pushed a commit to ddelgrosso1/nodejs-storage that referenced this pull request Apr 19, 2022
…move configs to Node 12 (googleapis#1418) (googleapis#1874)

* build: make ci testing conditional on engines field in package.json, move configs to Node 12

Co-authored-by: Benjamin E. Coe <[email protected]>
Source-Link: googleapis/synthtool@2800f5a
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:dc7bfb4c4bf50496abbdd24bd9e4aaa833dc75248c0a9e3a7f807feda5258873

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Benjamin E. Coe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/nodejs-storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant