Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

Added dynamic bucket region handling #1

Merged
merged 1 commit into from
Apr 23, 2021
Merged

Conversation

pregnor
Copy link
Member

@pregnor pregnor commented Apr 23, 2021

Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
Related tickets -
License Apache 2.0

What's in this PR?

Added dynamic bucket region handling.

Why?

To be able to determine the repo bucket's region dynamically without any additional information than the bucket host URL.

Additional context

The solution uses a HEAD {bucket-host} request which returns the region of the bucket in a response header regardless of the signing region and signing credentials. See aws/aws-sdk-go#720 (comment) where it is confirmed as an officially intended behavior.

Checklist

  • Code meets the Developer Guide
  • User guide and development docs updated (if needed)
  • Related Helm chart(s) updated (if needed)

To Do

  • Reminder: release tag.
  • Reminder: make PR to the original repository once tested through Terraform as well.

@pregnor pregnor added the enhancement New feature or request label Apr 23, 2021
@pregnor pregnor self-assigned this Apr 23, 2021
@pregnor pregnor merged commit d0bda18 into master Apr 23, 2021
@pregnor pregnor deleted the feat/dynamic-bucket-region branch April 23, 2021 10:12
@pregnor pregnor restored the feat/dynamic-bucket-region branch April 23, 2021 10:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant