-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Authentication
-
None
-
Fully Compatible
-
Needed
Proposal
Add an optional dependency on both v1 and v2 of the AWS SDK. If v2 is present on the runtime classpath, the driver will use its software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider to fetch credentials from the environment. Otherwise, if v1 is present, the driver will use com.amazonaws.auth.DefaultAWSCredentialsProviderChain to fetch the credentials. If neither are present, the driver will use its existing code to fetch the credentials.
Motivation
By relying on the AWS SDK when it's available, users of AWS authentication can take advantage of all the features of the default credentials provider in the SDK, which is a superset of what's in the driver authentication spec. The extra functionality includes:
- support for system properties in additional to environment variables
- support for additional environment variables
- support for additional providers, e.g. file-based configuration profiles