Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4718

Depend on AWS SDK for fetching credentials

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.8.0
    • Affects Version/s: None
    • Component/s: Authentication
    • Labels:
      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

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: