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

GetBucketLocation: Use vhost signature in case of v2 signature #1810

Merged
merged 1 commit into from Apr 17, 2023

Conversation

vadmeste
Copy link
Member

The existing code always picks a path style signature when
v2 mode is selected. Reviewing the history shows little information
why it is done that way.

A previous recent commit, 24cdd7f,
though it seems correct, broke existing deployments that use GCS
(e.g. minio/mc#4547)

We should not sign v2 with path style when the endpoint is vhost.

This commit is tested with MinIO/AWS/GCS when v2 is enabled.

The existing code always picks a path style signature when v2 mode is
selected. Reviewing the history shows little information why it is done
that way.

A previous recent commit, 24cdd7f,
though it seems correct,  broke existing deployments that use GCS
(e.g. minio/mc#4547)

We should not sign v2 with path style when the endpoint is vhost.

This commit is tested with  MinIO/AWS/GCS when v2 is enabled.
@harshavardhana harshavardhana merged commit 0bf84b3 into minio:master Apr 17, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants