-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Use IAM instance profiles for S3 authentication #1067
Comments
I need to look into this. |
I've done a very quick test on update-minio-go branch of yours with a small change:
Works perfectly. Not sure how to support multiple providers - I believe ChainCredentials struct is responsible for that. |
Interesting, thanks for trying. What's the parameter string you're passing to NewIAM? |
An empty string as in the example. It should fetch all the required data from metadata server itself. |
So, I'd be willing to merge support for IAM in, but I don't have the time to do it (and properly integrate it so that you can still give restic the credentials via the environment variables). I'd be happy to review the code and help integrating it though. |
thanks! |
Instead of passing key/secret, there should be a possibility to use metadata server to retrieve key/secret from IAM instance profile. Minio supports this approach, but there's no documentation how to configure that and it doesn't work out of the box with s3:s3.amazonaws.com/bucket URL.
Probably requires moving from minio.New to minio.NewWithCredentials.
The text was updated successfully, but these errors were encountered: