-
Notifications
You must be signed in to change notification settings - Fork 279
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
How to use WebIdentityToken #1078
Comments
You need to obtain and pass it. It would not be picked up if specified as file. (There is no way to tell if token needs to be read from file. ). Please provide details/trace on what was tried and error if any for further debugging which would help us better understand the issue. Appreciate your efforts to try these APIs and provide feedback. Thank you for the support |
Thanks for the response, that gives me a path forward, will come back with any issues encountered. Currently tried just passing as the example showed
no matter what I provide to this AssumeRoleProvider I get,
@prakashsvmx have you successfully used webIdentityToken and the roleARN to create a minio-client using the assumeRole? |
Would appreciate an example of this setup and the code to at least bare minimum create the minio-client, currently with the lack of documentation and expertise I am going through trial and error. Since you closed #841 with #960, I assume internally it was verified that this functionality works? I would expect parity with the minio-go where it will have a provider-chain and eventually run code such as https://github.com/minio/minio-go/blob/39267760ed9bb78c88d17be63fcafcefb767a366/pkg/credentials/iam_aws.go#L92 to fetch all the required information. Or parity with the aws-js-sdk
In both cases it is not expected that the user themselves will write code to access the webIdentityToken file and get the value. Am I missing something feel free to inform proper usecase? |
We request more information As mentioned earlier, the example initialization can be like:
Feel free to share any information that would be helpful for us to debug further
i have followed the following links while implementing.\
|
The use-case is I have an eks-cluster with a pod that has |
I have not personally tried this approach. yes, you could try and send a pr to support AWS_WEB_IDENTITY_TOKEN_FILE if you are using AWS, you could also use aws-sdk. |
@prakashsvmx I've tried doing
and I'm facing issue of
any guidance? |
Previous issue was closed, The examples given don't seem to give much explanation or insight in what needs to be done. I already know how to use minio-go and the webIdentityToken/IRSA setup there. Asking for clarification on the minio-js side.
From examples since none seem to use webIdentityToken it is not clear what needs to be done here?
Do I need to pass the webIdentityToken and the roleARN i and roleSessionName into
For it work or will these be picked up automatically when using this AssumeRoleProvider if they are env variables similar to the way that minio-go does it https://github.com/minio/minio-go/blob/fe4dc656657288125addc6b3be2f629376881075/pkg/credentials/iam_aws.go#L92? In the pr which added this functionality I don't see any similar code that does the work to obtain these values for us that minio-go does automatically so are we as a user supposed to get these ourselves then pass them in to the constructor?
Originally posted by @ryansteakley in #1077 (comment)
The text was updated successfully, but these errors were encountered: