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 STSCredentialsProvider Signing Region #239

Merged
merged 1 commit into from
May 10, 2024
Merged

Fix STSCredentialsProvider Signing Region #239

merged 1 commit into from
May 10, 2024

Conversation

waahm7
Copy link
Contributor

@waahm7 waahm7 commented May 10, 2024

Description of changes:

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

@waahm7 waahm7 marked this pull request as ready for review May 10, 2024 19:35
aws_date_time_init_now(&provider_user_data->signing_config.date);
provider_user_data->signing_config.region = s_signing_region;
uint64_t now = UINT64_MAX;
if (impl->system_clock_fn(&now) != AWS_OP_SUCCESS) {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this expected change?

Copy link
Contributor Author

@waahm7 waahm7 May 10, 2024

Choose a reason for hiding this comment

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

Are you asking about using the mocked system clock? We can avoid making this change and just assert on the prefix of the signature in tests; however, since we already had the option, it seemed more sensible to just use the mocked clock if set to keep it consistent. It also allows us to assert on the signature in tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

no was just checking whether you were intending to make this change or its something that slipped in accidentally. cause it looked somewhat unrelated to your changes. i see its for mocking now

@waahm7 waahm7 merged commit 432b765 into main May 10, 2024
29 checks passed
@waahm7 waahm7 deleted the sts-regional-fix branch May 10, 2024 20:35
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.

None yet

2 participants