-
Notifications
You must be signed in to change notification settings - Fork 207
fix: Backport of "Fixes STS region resolution when using cross-region authentication (#3718)" #3731
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
Conversation
…on (#3718) * update provider to infer region from sts_endpoint * changelog * fmt * nit * nit * fmt * unit tests * test * nit * nit * nit * improve clarity of comment * use asserts in unit test * use const instead of magic number --------- Co-authored-by: Oriol Arbusi Abadal <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes STS region resolution issues when using cross-region authentication in the MongoDB Atlas Terraform provider. The changes address problems where STS endpoint regions weren't being properly derived and handled in cross-region scenarios.
- Refactors STS endpoint resolution logic to properly parse and derive regions from endpoints
- Adds comprehensive test coverage for STS region derivation and endpoint resolution
- Enhances CI workflow to test cross-region authentication scenarios
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
internal/provider/credentials.go | Refactors STS endpoint resolution with new functions to properly derive regions from endpoints |
internal/provider/credentials_test.go | Adds comprehensive test suite for STS region derivation and endpoint resolution functions |
.github/workflows/acceptance-tests-runner.yml | Enhances CI to test multiple cross-region authentication scenarios with matrix strategy |
.changelog/3731.txt | Documents the bug fix in the changelog |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
APIx bot: a message has been sent to Docs Slack channel |
@@ -0,0 +1,3 @@ | |||
```release-note:bug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I'd add it's a backport in the PR title
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This is a backport of #3718 into v1 branch
Link to any related issue(s): CLOUDP-347906 & CLOUDP-348399
Type of change:
Required Checklist:
Further comments