Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2696

Add a programmatic option to control AWS region settings

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Component/s: Authentication
    • None
    • Needed

      Summary

      AWS SDKs offer slightly different ways to configure region settings. Some use environment variables, others only allow programmatically setting options. The variations in configurations is problematic when the user is not in direct control of the SDK and the driver's internal use may prevent them from properly configuring the SDKs behavior.

      Motivation

      Who is the affected end user?

      • AWS Auth users that allow the driver to obtain temporary credentials

      How does this affect the end user?

      In the case of NODE-5477 users are experiencing increased latency when the driver routes it's STS request to the default global region (us-east-1) rather than to their current local region.

      How likely is it that this problem or use case will occur?

      If an SDK does not obtain settings from the environment this will occur always when using AWS auth.

      If the problem does occur, what are the consequences and how severe are they?

      Increased latency when using AWS authentication.

      Is this issue urgent?

      TBD

      Is this ticket required by a downstream team?

      No

      Is this ticket only for tests?

      No

      Acceptance Criteria

      • Add an optional AWS_REGION property to authMechanismProperties
      • Require drivers to set this property in their SDK configurations whenever possible to override environment variables

            Assignee:
            Unassigned Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: