Skip to content

Update sts endpoint assertions#9628

Merged
kdaily merged 1 commit intodevelopfrom
update-eks-tests-for-sts-default-endpoint-change
Jul 31, 2025
Merged

Update sts endpoint assertions#9628
kdaily merged 1 commit intodevelopfrom
update-eks-tests-for-sts-default-endpoint-change

Conversation

@kdaily
Copy link
Copy Markdown
Member

@kdaily kdaily commented Jul 30, 2025

Issue #, if available:

Description of changes:

The default behavior for which STS endpoint to use is changing from global to regional.

These tests previously assumed that the global endpoint will always be used, which is will not be the case for the default behavior from the botocore client once boto/botocore#3517 is merged. This change updates the tests to reflect that the regional endpoint will be used.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The default behavior for which STS endpoint to use is changing from global to regional.

These tests assume that the global endpoint will always be used, which is not the case
for the default behavior from the botocore client. This change updates the tests to reflect
that the regional endpoint will be used.
@kdaily kdaily force-pushed the update-eks-tests-for-sts-default-endpoint-change branch from a5714bc to 26a10d4 Compare July 30, 2025 21:05
@kdaily kdaily marked this pull request as ready for review July 31, 2025 13:09
@kdaily kdaily requested a review from a team July 31, 2025 13:09
Copy link
Copy Markdown
Member

@ashovlin ashovlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the CI failures here, it might be better to explicitly set legacy or regional for the STS setting for each test case. That way we're not reliant on the botocore version or environment settings.

@kdaily
Copy link
Copy Markdown
Member Author

kdaily commented Jul 31, 2025

Given the CI failures here, it might be better to explicitly set legacy or regional for the STS setting for each test case. That way we're not reliant on the botocore version or environment settings.

We agreed separately that we should have a test for STS defaults, but would follow up separately. To change this test we would need to mock the session or set an environment variable, since the CLI does not have a command line parameter to set sts_regional_endpoint.

@kdaily kdaily merged commit 3660fc9 into develop Jul 31, 2025
133 of 163 checks passed
@hssyoo hssyoo deleted the update-eks-tests-for-sts-default-endpoint-change branch December 18, 2025 15:59
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