File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
aws/src/main/java/org/apache/iceberg/aws Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 3939import org .apache .iceberg .util .SerializableMap ;
4040import org .slf4j .Logger ;
4141import org .slf4j .LoggerFactory ;
42+ import software .amazon .awssdk .auth .credentials .AnonymousCredentialsProvider ;
4243import software .amazon .awssdk .auth .credentials .AwsBasicCredentials ;
4344import software .amazon .awssdk .auth .credentials .AwsCredentialsProvider ;
4445import software .amazon .awssdk .auth .credentials .AwsSessionCredentials ;
@@ -1126,7 +1127,9 @@ public Map<String, String> httpClientProperties() {
11261127 */
11271128 public <T extends S3ClientBuilder > void applyS3CredentialConfigurations (T builder ) {
11281129 builder .credentialsProvider (
1129- credentialsProvider (s3AccessKeyId , s3SecretAccessKey , s3SessionToken ));
1130+ s3RemoteSigningEnabled
1131+ ? AnonymousCredentialsProvider .create ()
1132+ : credentialsProvider (s3AccessKeyId , s3SecretAccessKey , s3SessionToken ));
11301133 }
11311134
11321135 /**
You can’t perform that action at this time.
0 commit comments