Skip to content
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

feat: generate signed URLs for blobs/buckets using virtual hostname #58

Merged
merged 4 commits into from
Feb 13, 2020

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Feb 13, 2020

Closes #10.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 13, 2020
@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 13, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 13, 2020
Copy link
Member

@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.

One nit.

@@ -361,6 +361,7 @@ def generate_signed_url(
version=None,
service_account_email=None,
access_token=None,
use_virtual_hostname=False,
Copy link
Member

Choose a reason for hiding this comment

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

Please use virtual_hosted_style instead.

google/cloud/storage/blob.py Outdated Show resolved Hide resolved
@tseaver tseaver force-pushed the 10-v4-signing-virtual-hostname branch from 5e949f2 to 3be7f6e Compare February 13, 2020 17:09
@tseaver tseaver force-pushed the 10-v4-signing-virtual-hostname branch from 3be7f6e to b75fd1d Compare February 13, 2020 19:39
@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 13, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 13, 2020
Copy link
Member

@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

@tseaver tseaver merged commit 23df542 into master Feb 13, 2020
@tseaver tseaver deleted the 10-v4-signing-virtual-hostname branch February 13, 2020 20:32
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
…oogleapis#58)

* Add 'virtual_hosted_style' arg to 'Blob.generate_signed_url'
* Add 'virtual_hosted_style arg to 'Bucket.generate_signed_url'
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
…oogleapis#58)

* Add 'virtual_hosted_style' arg to 'Blob.generate_signed_url'
* Add 'virtual_hosted_style arg to 'Bucket.generate_signed_url'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Storage] V4 Signature Support for virtual hosted-style signed
4 participants