Open c-thiel opened 2 months ago
@c-thiel it appears that vended credential support was added only for S3 https://github.com/trinodb/trino/pull/20186/files#diff-300020eb68920cea152529486b75fddcf41b4fa85c10be3ce893a17d4537881bR105-R106
Please feel free to create a PR for Azure.
@cgpoh https://github.com/apache/polaris/pull/44#issuecomment-2323108039 can you please advise if you were successfully be able to use vended credentials with Azure?
@c-thiel you may want to try the above given config to see if it works.
@mayankvadariya my company policy disable SAS token generation, therefore, vended credentials is not working for me. I need to add these properties in order to get Trino working with Polaris:
fs.native-azure.enabled=true
azure.auth-type=OAUTH
azure.oauth.tenant-id=tenant-id
azure.oauth.endpoint=https://login.microsoftonline.com/tenant-id/oauth2/token
azure.oauth.client-id=client-id
azure.oauth.secret=client-secret
With the above properties, we can remove iceberg.rest-catalog.vended-credentials-enabled
property or set to false
.
Thanks for confirming @cgpoh and updating https://github.com/apache/polaris/pull/44#issuecomment-2323108039
@c-thiel as stated, please feel free to create a PR for this feature. Thanks.
@mayankvadariya I am not a Java dev - more involved with Rust and Python. I probably won't be able to work on this soon.
I am currently extending the integration tests for our iceberg rest catalog implementation.
S3 integration with trino works nicely, but I can't get
vended-credentails
up and running.My configuration looks as follows:
I can use all endpoints as usual, but data operations fail with the following error:
I believe the returned config attribute for the table:
adls.sas-token.<storage-account-name>.dfs.core.windows.net: "skoid=...."
is not being used. Instead it is trying to load credentials from well-known locations:It would be great if someone could check why the returned sas token is not being used. The java
iceberg
package supports it and spark respects the token as well.Let me know if I can support this in any way!