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

Support for IAM auth? #2821

Closed
mausch opened this issue Jul 11, 2019 · 8 comments
Closed

Support for IAM auth? #2821

mausch opened this issue Jul 11, 2019 · 8 comments

Comments

@mausch
Copy link
Contributor

mausch commented Jul 11, 2019

Expected behavior

I'd like to be able to say mc config host add s3 https://s3.amazonaws.com and have mc use IAM auth instead of access keys.
I'd like to see documentation for IAM auth if it's supported, or otherwise an item on some FAQ saying that it's not supported. I can't seem to find any of this :-(

Actual behavior

When running the command above I get <ERROR> Incorrect number of arguments for host add command.

mc version

RELEASE.2019-07-09T23-57-06Z

@harshavardhana
Copy link
Member

We don't support IAM auth yet @mausch there is a plan in future we will though.

@mausch
Copy link
Contributor Author

mausch commented Jul 11, 2019

Thanks for the quick reply! it seems that support in the SDK has been implemented quite some time ago: minio/minio-go#643

@harshavardhana
Copy link
Member

Thanks for the quick reply! it seems that support in the SDK has been implemented quite some time ago: minio/minio-go#643

SDKs have implemented a long time ago. mc requires some CLI changes to make it user-friendly

@stale
Copy link

stale bot commented Jul 16, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 16, 2020
@stale stale bot closed this as completed Aug 15, 2020
@kgrimes2
Copy link

Can we reopen this? Are there any suitable workarounds? Our team really needs it

@harshavardhana
Copy link
Member

Can we reopen this? Are there any suitable workarounds? Our team really needs it

@kgrimes2 you should get the keys from the IAM endpoints and then pass them to mc as

MC_HOST_iam=http://<access_key>:<secret_key>:<session_token>@s3-server:port/ mc ls iam/mybucket

@ztaylor54
Copy link

@harshavardhana Is this documented anywhere in MinIO docs? I have yet to stumble upon it.

@harshavardhana
Copy link
Member

@harshavardhana Is this documented anywhere in MinIO docs? I have yet to stumble upon it.

https://github.com/minio/mc/blob/master/docs/minio-client-complete-guide.md#specify-temporary-host-configuration-through-environment-variable

Something like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants