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

prefer GetBucketLocation() API for s3-compatible endpoints #1112

Merged
merged 3 commits into from
Oct 14, 2021

Conversation

Shrekster
Copy link
Contributor

@Shrekster Shrekster commented Oct 6, 2021

Change Overview

The GetBucketRegion() API response from OVH Cloud is inconsistent with and without credentials (anonymous), so we make a change here to prefer GetBucketLocation() when possible for s3-compatible stores (explicit endpoint has been specified).

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • #XXX

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

@Shrekster Shrekster force-pushed the global-region-for-global-apis branch 10 times, most recently from b51dfc0 to a2beae5 Compare October 13, 2021 18:44
@Shrekster Shrekster force-pushed the global-region-for-global-apis branch from a2beae5 to 2004319 Compare October 13, 2021 19:08
@Shrekster Shrekster changed the title use aws-global region for bucket location api prefer GetBucketLocation() API for s3-compatible endpoints Oct 13, 2021
Copy link
Contributor

@tdmanv tdmanv left a comment

Choose a reason for hiding this comment

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

Looks great!

pkg/objectstore/bucket.go Outdated Show resolved Hide resolved
@mergify mergify bot merged commit 357f0f9 into master Oct 14, 2021
@mergify mergify bot deleted the global-region-for-global-apis branch October 14, 2021 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants