Samrat002 commented on code in PR #27187:
URL: https://github.com/apache/flink/pull/27187#discussion_r2877835785
##########
flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/S3ClientProvider.java:
##########
@@ -372,14 +384,103 @@ public S3ClientProvider build() {
}
private AwsCredentialsProvider buildBaseCredentialsProvider() {
- // The token provider returns null if credentials are not
available,
- // allowing the chain to proceed to the next provider (fallback).
+ if (credentialsProviderClasses != null
+ && !credentialsProviderClasses.trim().isEmpty()) {
+ return
buildCustomCredentialsProvider(credentialsProviderClasses);
+ }
+ // Default chain:
+ // 1. delegation tokens
+ // 2. static credentials (if configured)
+ // 3. DefaultCredentialsProvider.
return AwsCredentialsProviderChain.builder()
.credentialsProviders(
new DynamicTemporaryAWSCredentialsProvider(),
buildFallbackProvider())
.build();
}
Review Comment:
Sync offline. Now I understand the issue. working on it .
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]