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

Enable assume role with web identity using config.WithWebIdentityRoleCredentialOptions #2424

Closed
wants to merge 2 commits into from

Conversation

wty-Bryant
Copy link
Contributor

For previous LoadDefaultConfig, the cred chain would only call assumeWebIdentity if the web identity token file is set via envConfig/sharedConfig, which make it impossible to directly assume the role through client.

This pr fixes that by inserting LoadOptions check into cred chain switch cases, in which case user can directly config the WebIdentityRoleProvider using only WithWebIdentityRoleCredentialOptions.

Will resolve #2412

@wty-Bryant wty-Bryant requested a review from a team as a code owner December 11, 2023 21:11
@lucix-aws lucix-aws closed this Dec 18, 2023
@lucix-aws lucix-aws deleted the feat-loadoption-webtoken branch December 18, 2023 15:46
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.

Cannot programatically assume role with web identity using config.WithWebIdentityRoleCredentialOptions
2 participants