Skip to content

Conversation

@tseaver
Copy link
Contributor

@tseaver tseaver commented Oct 10, 2019

Closes #7626

@tseaver tseaver added the api: storage Issues related to the Cloud Storage API. label Oct 10, 2019
@tseaver tseaver requested a review from frankyn October 10, 2019 21:31
@tseaver tseaver requested a review from crwilcox as a code owner October 10, 2019 21:31
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 10, 2019
else:
helper = generate_signed_url_v4

if self._encryption_key is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

this should only be done if v4.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Per chat, we still need to add the X-Goog-Encryption-Algorithm header for V2 (but not the key or hash, oddly enough). See: https://cloud.google.com/storage/docs/access-control/signed-urls-v2#about-canonical-extension-headers

Only the 'X-Goog-Encryption-Algorithm' gets added to the signed headers.

Ugh.
@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 10, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 10, 2019
@tseaver tseaver merged commit 42ce2ef into googleapis:master Oct 10, 2019
@tseaver tseaver deleted the 7626-storage-v4-signed-url-w-csek branch October 10, 2019 22:20
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Storage: add systests for V4 signed URLs with CSEK headers

4 participants