Skip to content

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

Merged
harshavardhana merged 1 commit into
minio:masterfrom
vadmeste:vhost
Apr 17, 2023
Merged

GetBucketLocation: Use vhost signature in case of v2 signature#1810
harshavardhana merged 1 commit into
minio:masterfrom
vadmeste:vhost

Conversation

@vadmeste
Copy link
Copy Markdown
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
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.

2 participants