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

fix: support virtual_hosted_style and bucket_bound_hostname in v2 signing #1180

Closed
wants to merge 1 commit into from

Conversation

cojenco
Copy link
Contributor

@cojenco cojenco commented Nov 8, 2023

Cloud Storage recommends using V4 over V2 signing. Moreover, virtual_hosted_style and bucket_bound_hostname were intended to work primarily for v4 signing.

The main caveat being that v2 signing requires the resource path to include the bucket-name. This patch handles the special cases (non path-styles) for v2 signing

Fixes #1031 🦕

@cojenco cojenco requested review from a team as code owners November 8, 2023 23:56
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: storage Issues related to the googleapis/python-storage API. labels Nov 8, 2023
@cojenco cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 9, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 9, 2023
@andrewsg
Copy link
Contributor

andrewsg commented Nov 9, 2023

As discussed, looks good, but before we merge and release let's take a look at what upcoming work in this code area will look like.

@cojenco cojenco added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 9, 2023
@cojenco
Copy link
Contributor Author

cojenco commented Apr 8, 2024

Closing as obsolete

@cojenco cojenco closed this Apr 8, 2024
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/python-storage API. do not merge Indicates a pull request not ready for merge, due to either quality or timing. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generate_signed_url does not work for virtual_hosted_style=True
2 participants