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

explicit virtual addressing presigning bug #3081

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

dlm6693
Copy link
Contributor

@dlm6693 dlm6693 commented Nov 28, 2023

This addresses a bug introduced with the endpoints refactor from last year. Previously, if a customer had explicitly set addressing_style to virtual in their s3 config, the SDK ignored the use_global_endpoint setting on the request context. Instead, it would use the endpoint URL from the legacy endpoint resolver which was always regionalized except in the cases of aws-global and us-east-1. This has caused some issues where a regional endpoint is expected when using signature version 4 to sign URLs.

It was likely missed during the refactor because it followed a confusing codepath that was decoupled from _should_use_global_endpoint. For clarity and simplicity, a simple check is added to the function.

@codecov-commenter
Copy link

codecov-commenter commented Nov 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (acc5d1e) 93.47% compared to head (6ed7784) 93.13%.
Report is 8 commits behind head on develop.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3081      +/-   ##
===========================================
- Coverage    93.47%   93.13%   -0.34%     
===========================================
  Files           66       66              
  Lines        14038    14239     +201     
===========================================
+ Hits         13122    13262     +140     
- Misses         916      977      +61     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dlm6693 dlm6693 merged commit 4b72854 into boto:develop Dec 4, 2023
@dlm6693 dlm6693 deleted the presign-bug branch December 4, 2023 23:04
aws-sdk-python-automation added a commit that referenced this pull request Dec 5, 2023
* release-1.33.8:
  Bumping version to 1.33.8
  Update to latest models
  explicit virtual addressing presigning bug (#3081)
  Update pre-commit versions
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.

3 participants