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

fix: Fix signing region source #1845

Merged
merged 3 commits into from
Dec 10, 2024
Merged

fix: Fix signing region source #1845

merged 3 commits into from
Dec 10, 2024

Conversation

sichanyoo
Copy link
Contributor

Issue #

Description of changes

  • Get signing region from resolved auth option first, instead of getting it from the context first. This removes the need to override signing region in the endpoint resolver middleware as well.
  • Below outlines how signing region is resolved and used for rules based auth:
    • signingRegionSet property is taken from the endpoint resolved from endpoint rules engine
    • If the property was missing, use signing region configured on request context instead (middleware context / interceptor context)
    • If the property was present, use the first value in that list to sign the request

New/existing dependencies impact assessment, if applicable

Conventional Commits

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Sichan Yoo added 2 commits December 10, 2024 12:02
…of getting it from the context. This removes the need to override signing region in the endpoint resolver middleware as well.
…onSet property entirely; in that case, take signingRegion from context.
@dayaffe
Copy link
Contributor

dayaffe commented Dec 10, 2024

Confirmed this solves a reported issue in multi-region authentication with sigv4a

@dayaffe dayaffe requested a review from jbelkins December 10, 2024 20:36
@jbelkins jbelkins merged commit a070770 into main Dec 10, 2024
25 checks passed
@jbelkins jbelkins deleted the fix/signing-region-source branch December 10, 2024 21:00
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