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

stscreds.WebIdentityRoleProvider does not support the sts.AssumeRoleWithWebIdentityInput field Policy #1662

Closed
gdavison opened this issue Apr 7, 2022 · 1 comment · Fixed by #1670
Labels
feature-request A feature should be added or improved.

Comments

@gdavison
Copy link
Contributor

gdavison commented Apr 7, 2022

Describe the bug

When using the stscreds.WebIdentityRoleProvider, I cannot specify an inline Policy.

Expected Behavior

stscreds.WebIdentityRoleProvider should support all fields of sts.AssumeRoleWithWebIdentityInput

Current Behavior

When using the stscreds.WebIdentityRoleProvider, I cannot specify an inline Policy.

Reproduction Steps

The following code snippet fails to compile

appCreds := NewWebIdentityRoleProvider(client, ar.RoleARN, func(opts *stscreds.AssumeRoleOptions) {
	...

	opts. Policy = inlinePolicy

	...
})

Possible Solution

No response

Additional Information/Context

No response

AWS Go SDK version used

2202-03-16

Compiler and Version used

N/A

Operating System and version

N/A

@gdavison gdavison added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 7, 2022
@skmcgrail skmcgrail added feature-request A feature should be added or improved. and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 7, 2022
jasdel pushed a commit that referenced this issue Apr 25, 2022
…ptions` (#1670)

Adds the Policy and Duration parameters from sts.AssumeRoleWithWebIdentityInput to stscreds.WebIdentityRoleOptions.

Closes #1662
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants