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

s3: allow setting bucket lookup type #7684

Merged
merged 4 commits into from
Mar 21, 2024
Merged

s3: allow setting bucket lookup type #7684

merged 4 commits into from
Mar 21, 2024

Conversation

narqo
Copy link
Contributor

@narqo narqo commented Mar 21, 2024

What this PR does

This PR adds a new configuration s3.bucket_lookup_type, which allows altering the lookup style, the S3 client uses to access the bucket.

As it was raised in #7512 and #7673, minio S3 client's default behaviour is that the client uses virtual-hosted style lookup only for AWS S3. For other S3 compatible services, the client uses path-based style. This creates (or will create) issues to users, who deploy Mimir to S3 compatible services. That is, providers like Tencent, Alibaba, etc are deprecating path-based access to the buckets.

Which issue(s) this PR fixes or relates to

Fixes #7512 #7673

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

Signed-off-by: Vladimir Varankin <vladimir.varankin@grafana.com>
Signed-off-by: Vladimir Varankin <vladimir.varankin@grafana.com>
Signed-off-by: Vladimir Varankin <vladimir.varankin@grafana.com>
Signed-off-by: Vladimir Varankin <vladimir.varankin@grafana.com>
Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@56quarters 56quarters merged commit e7fe4fa into main Mar 21, 2024
29 checks passed
@56quarters 56quarters deleted the config-s3-lookup branch March 21, 2024 15:45
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.

The bucket you are attempting to access must be addressed using COS virtual-styled domain
2 participants