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

[extension/sigv4authextension] Make sts_region default to region if value not provided #14630

Merged
merged 2 commits into from
Oct 6, 2022

Conversation

erichsueh3
Copy link
Contributor

Description:
This PR makes the value sts_region default to the value of region if the sts_region value is not provided and the region value is provided.

Link to tracking Issue:
#14573

Testing:
config_test.go was updated

Documentation:
README.md was updated

@erichsueh3 erichsueh3 requested a review from a team October 1, 2022 00:56
@erichsueh3 erichsueh3 requested a review from Aneurysm9 as a code owner October 1, 2022 00:56
@erichsueh3
Copy link
Contributor Author

@mx-psi let me know if any changes are necessary before this can get merged, thanks!

@@ -44,6 +44,10 @@ var _ config.Extension = (*Config)(nil)
// We aim to catch most errors here to ensure that we
// fail early and to avoid revalidating static data.
func (cfg *Config) Validate() error {
Copy link
Member

Choose a reason for hiding this comment

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

Validate should not modify the configuration. Since you are already doing that below, I am not going to block merging this PR because of it, but I would like you to create an issue to move this and the credsProvider line below to Unmarshal

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will take care of this early next week!

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