From 35a7d863b77a692908d90ba529714210859f3f8b Mon Sep 17 00:00:00 2001 From: Naya Chen Date: Tue, 3 May 2022 12:25:51 -0700 Subject: [PATCH] add aws-java-sdk-sts to aws-common classpath (#12482) Fixes #11303 WebIdentityTokenProvider in the defaultAWSCredentialsProviderChain can not actually be used because the aws-java-sdk-sts jar is not in the classpath of S3 extension at runtime, since each extension has its own classpath. This results in the inability to assume STS role before generating authentication token. The error message from getCredentials() is: "Unable to load credentials from WebIdentityTokenCredentialsProvider: To use assume role profiles the aws-java-sdk-sts module must be on the class path" This PR will fix multiple authentication modules that are dependent on the WebIdentityTokenProvider, including AWS IAM based RDS authentication and S3 authentication. --- cloud/aws-common/pom.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cloud/aws-common/pom.xml b/cloud/aws-common/pom.xml index 61f554af6a5..3df322ae1d3 100644 --- a/cloud/aws-common/pom.xml +++ b/cloud/aws-common/pom.xml @@ -80,6 +80,14 @@ validation-api + + + + com.amazonaws + aws-java-sdk-sts + runtime + + junit