-
Notifications
You must be signed in to change notification settings - Fork 376
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(sdk-config): drop web identity usage from v1 default config #2127
Conversation
Signed-off-by: christophrj <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you very much @christophrj!
Successfully created backport PR #2131 for |
Hi @MisterMX I noticed some errors present in v0.50.6 which are not in the v0.50.5, hence suspecting this PR.
In the provider-aws we are using
Would it be possible to revert this PR or provide a workaround? Thank you. |
the 'workaround' is to use the web identity credential provider via the provider config. so instead of using injected identity you should use AssumeRoleWithWebIdentity in the provider config: https://github.com/crossplane-contrib/provider-aws/blob/master/pkg/utils/connect/aws/config.go#L125 |
Thanks for your answer @christophrj Just want to mention that now using |
Thanks for pointing that out, I wasn't aware of that. I will provide a fix that supports AWS_WEB_IDENTITY_TOKEN_FILE (basically the old behavior) and AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE tomorrow |
Description of your changes
Fixes web identity usage when using providerconfig.spec.credentials.source InjectedIdentity.
Sample config:
Sample error message when not providing a web identity token file, e.g. via AWS_WEB_IDENTITY_TOKEN_FILE, in the provider-aws pod with InjectedIdentity:
This fix enables (config v1) services to use any credential provider via the default credential provider chain.
As a result v1 services can be used with container credential providers like pod identity.
I have:
make test
to ensure this PR is ready for review.How has this code been tested
make test