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 AWS STS url to https when using web identity token #1263

Merged
merged 1 commit into from
Apr 14, 2020

Conversation

alicek106
Copy link
Contributor

This PR fixes AWS STS url to https when using web identity token.

I'm using EKS ServiceAccount IAM auth for thanos deployment and thanos uses minio-go to access S3 bucket. There were thanos logs like below, which means minio-go failed to get temporary credentials when using web identity token file.

level=warn ts=2020-04-08T03:57:12.445984084Z caller=sidecar.go:340 err="iter local block metas: check exists: stat s3 object: Access Denied." uploaded=0

After digging into minio-go codes, I found error was returned in sts_web_identity.go#L143

Post sts.ap-northeast-1.amazonaws.com?Action=AssumeRoleWithWebIdentity&...: unsupported protocol scheme ""

And it was because of missing 'https://' in minio-go sts url, so I'm using my own custom build docker image by fixing it. It would be better to merge in upstream repository if there are not any exceptions :D

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