Skip to content

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Feb 25, 2019

Closes #7440.

Override to use the blob's '_encryption_key' attribute.

Closes #7440.
@tseaver tseaver added the api: storage Issues related to the Cloud Storage API. label Feb 25, 2019
@tseaver tseaver requested a review from frankyn February 25, 2019 22:24
@tseaver tseaver requested a review from crwilcox as a code owner February 25, 2019 22:24
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 25, 2019
@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Mar 4, 2019
Copy link
Contributor

@frankyn frankyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this will allow a .reload() on an encrypted object. Though, I do want to ask if it's reasonable to apply _encryption_headers() check to even buckets given they're not valid.

Future us may ask why it's being used for buckets as well.

@frankyn frankyn removed the 🚨 This issue needs some love. label Mar 11, 2019
@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Mar 11, 2019
@tseaver
Copy link
Contributor Author

tseaver commented Mar 11, 2019

@frankyn The _PropertyHelper base class defines reload, which calls the _encryption_headers method: it provides a no-op / empty implementation for Bucket (only Blob overrides it).

@frankyn
Copy link
Contributor

frankyn commented Mar 11, 2019

Thanks @tseaver, could you add a comment near the method stating that it's primary use is for a Blob and the given use case?

@tseaver
Copy link
Contributor Author

tseaver commented Mar 11, 2019

@frankyn

Could you add a comment near the method stating that it's primary use is for a Blob and the given use case?

0c5a4f7

Copy link
Contributor

@frankyn frankyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tseaver. LGTM, I'd still like to get @crwilcox's review before merging if that's okay.

Chris, could you take a look over before this is merged?

@tseaver
Copy link
Contributor Author

tseaver commented Mar 12, 2019

Unrelated Firestore failure is from a known-flaky systest, see #7130.

@tseaver tseaver merged commit 4fdbcc5 into googleapis:master Mar 14, 2019
@tseaver tseaver deleted the 7440-storage-blob_reload_passes_enc_headers branch March 14, 2019 16:43
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 Cloud Storage API. cla: yes This human has signed the Contributor License Agreement. 🚨 This issue needs some love.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants