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

Fixed pre-signed urls for regions like af-south-1 #98

Conversation

mrostan
Copy link
Contributor

@mrostan mrostan commented Mar 18, 2024

For regions created after 3-20-2019 (like af-south-1) you need to use the regional endpoint when generating pre-signed URLs, if not the url is invalid and it fails with a 400 error like:

The af-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.

One of the available fixes (for more information: boto/boto3#3015) is to create a second client with the regional URL and use it to generate the pre-signed URL.

Copy link

linear bot commented Mar 18, 2024

@mrostan mrostan marked this pull request as ready for review March 18, 2024 22:39
@mrostan mrostan requested a review from a team as a code owner March 18, 2024 22:39
@mrostan mrostan merged commit ff0d806 into main Mar 19, 2024
4 checks passed
@mrostan mrostan deleted the mrostan/kil-3391-validator-failure-on-storage-bucket-of-saas-hosted-bucket branch March 19, 2024 20:30
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