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

Credentials: Support assuming role via WebIdentityTokenFile #1183

Merged
merged 2 commits into from
Jan 7, 2020

Conversation

saracen
Copy link
Contributor

@saracen saracen commented Nov 11, 2019

This supports the new AWS_WEB_IDENTITY_TOKEN_FILE and AWS_ROLE_ARN environment variables that allow exchanging OIDC tokens given to pods in EKS for access tokens.

I haven't introduced any new API for this, as I figured the use-case for this will be solely EKS. So this privately extends the existing STSWebIdentity credential provider for AWS use and is only activated when the correct environment variables are provided. Calling NewIAM() is all that is required.

I haven't actually tested this in an AWS environment yet, but figured it was worth opening for discussion early.

@barryib You requested this in #1156 - are you able to test in an AWS environment?

This supports the new AWS_WEB_IDENTITY_TOKEN_FILE and AWS_ROLE_ARN environment
variables, that allow exchanging OIDC tokens given to pods in EKS for access
tokens.

Fixes minio#1156
@harshavardhana
Copy link
Member

PTAL @sinhaashish @kanagarajkm

@jujugrrr
Copy link

jujugrrr commented Jan 7, 2020

Hi @harshavardhana @sinhaashish @kanagarajkm, do you have any news about this PR? It's a great feature as EKS + WebIdentity is the way to go for secure IAM credentials on AWS.

Copy link
Contributor

@kanagarajkm kanagarajkm left a comment

Choose a reason for hiding this comment

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

Sorry for the delay in review. LGTM.

@nitisht nitisht merged commit a544e9f into minio:master Jan 7, 2020
@jujugrrr
Copy link

jujugrrr commented Jan 7, 2020

Awesome, thank you

@jujugrrr
Copy link

jujugrrr commented Jan 7, 2020

Do you know when could we see it in v6.0.45 @kanagarajkm ?

@harshavardhana
Copy link
Member

@jujugrrr soon no ETA

@jujugrrr
Copy link

jujugrrr commented Jan 8, 2020 via email

gitlab-runner-bot pushed a commit to gitlabhq/gitlab-runner that referenced this pull request Feb 28, 2020
Now that minio/minio-go#1183 has been merged
that supports Web Identity auth in the Minio Client we need to use a
recent version of Minio that includes that change that was released in
v6.0.45.
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.

5 participants