-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Allow pinning to WebIdentityTokenCredentialsProvider in legacy S3 client #22162
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
Allow pinning to WebIdentityTokenCredentialsProvider in legacy S3 client #22162
Conversation
|
@electrum can you merge this? |
Allow users to only use the WebIdentityTokenCredentialsProvider instead of the default credentials provider chain.
11cdd91 to
5efa34f
Compare
|
I tested this by deploying Trino on EKS, using https://github.com/binayakd/trino-on-eks Contents of <?xml version="1.0"?>
<configuration>
<property>
<name>trino.s3.use-web-identity-token-credentials-provider=true</name>
<value>true</value>
</property>
</configuration>I checked the logs and I see it using only one provider: |
|
@ebyhr could you merge this? |
|
@ebyhr thanks for merging this! 🙌 It looks like this change will make it in to release 450, is that correct? If so, when will that release officially land? |
| return new AWSStaticCredentialsProvider(credentials.get()); | ||
| } | ||
|
|
||
| if (conf.getBoolean(S3_USE_WEB_IDENTITY_TOKEN_CREDENTIALS_PROVIDER, false)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this reads from Hadoop config, not Trino's FS config. How is this exposed to users?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is exposed through the Hadoop config. See my previous comment on how I tested it.
|
|
||
| If you are running Trino on Amazon EKS, and authenticate using a Kubernetes | ||
| service account, you can set the | ||
| `trino.s3.use-web-identity-token-credentials-provider` to `true`, so Trino does |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no config like this in Trino legacy S3 FS.
So the docs (and release notes) are wrong. @nineinchnick can you please update / fix this (both docs and adding a config to expose setting the hadoop config to users).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Allow users to only use the
WebIdentityTokenCredentialsProviderinstead of the default credentials provider chain.This is preferred over #22007. This at least makes the workaround for #15267 easier, I'm not sure if it will allow closing that issue. I haven't updated the docs yet, I'll wait for some initial feedback first.
Additional context and related issues
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
(x) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: