Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3152

AWS authentication not working with environment variables

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.7, 4.0.0
    • Affects Version/s: 4.0.0, 3.6.5
    • Component/s: None
    • Labels:
      None
    • Not Needed

      When using AWS authentication with Atlas, the connection can only be established when the access key, secret, and session token are specified either explicitly as options or as part of the connection string.

      When these are set as environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN), authentication does not work.

      Only tested with driver v4 - not 3.x.

      Relevant part of the spec: https://github.com/mongodb/specifications/blob/master/source/auth/auth.rst#environment-variables.

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            michael.rose@mongodb.com Michael Rose (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: