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

Depend on AWS SDK for fetching credentials

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.8.0
    • None
    • Authentication
    • None
    • Fully Compatible
    • Needed

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: