-
Notifications
You must be signed in to change notification settings - Fork 159
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
Feature Request - Support assume roles and MFA #20
Comments
Hi @andytom , I will definitely consider implementing this, but could you please describe your use case? |
If someone is using AWS Organizations and have a single account they they use to manage all the IAM user they will need to use assume roles to access resources in other accounts. This blog post from Segment.io explains the multiple AWS account setup in the "Separate AWS Accounts" section. An example would be that assuming that there is a developer who needs to setup his local minikube environment, that user would have an account in the ops account and in order to fetch the helm charts that developer would need to be able to use assume roles to access the prod account that contains the helm-s3 bucket. MFA is just for security, Amazon recommend the use of MFA devices to increase security (see https://aws.amazon.com/iam/details/mfa/). Hopefully that explains my use case but please let me know if you want me to expand anything or if anything is unclear please let me know. |
@hypnoglow I believe @ConradKurth has done some work relating to switching roles in #24. Would it make sense to create a separate issue to the MFA stuff and keep this issue for the switching roles (I'm not sure how granular you want to get with your issues)? |
@andytom So I have updated my PR to allow for MFA token per AWS documentation for you. Let me know if that works for. Also if you would like some more reference, take a look here https://aws.amazon.com/blogs/developer/assume-aws-iam-roles-with-mfa-using-the-aws-sdk-for-go/. |
Fixed by #24. |
@hypnoglow and @ConradKurth, It seems I may have been a little bit hasty in closing this. I have been doing some testing with the new version and found a few issues:
|
I think that increasing timeout is not an option. What is a reasonable timeout for a user with MFA enabled? It can take quite a time for him in some cases to get the code. We either have to
I've tried to fix this by using stderr instead of stdin-stdout, and it worked 😳 But we need to decide what to do with the problem above, because the
So, I guess, we are forced to remove the timeouts completely because there is no other way to make MFA happy? |
Ah that would make sense, I've just read the plugin downloader docs and helm must be capturing the prompt as part of the output. We could increase the timeout to a few minutes, that would give someone plenty of time to enter an MFA code and still keep the timeout for things like CI systems. |
I've set a timeout of 5 minutes ( |
@hypnoglow I've given the PR a bit of testing and it works great 👍. Thanks for the hard work. |
What I did is
It works for me. Hopefully save a lot of time for people who encounter the same problem. :))))) |
In #10 you added support for profiles would it be possible to expand support for this to include assume roles and MFA (similar to https://docs.aws.amazon.com/cli/latest/userguide/cli-roles.html) ?
The text was updated successfully, but these errors were encountered: