AWS authentication not working with environment variables

XMLWordPrintableJSON

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

      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
            Reporter:
            Michael Rose (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: