2.5.8 Breaks AWS SSO Credentials for authMechanism=MONGODB-AWS

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.5.8
    • Component/s: None
    • Environment:
      OS: macOS 26.0
      node.js / npm versions: node v24.8.0, npm 11.6.0
    • 3
    • None
    • Developer Tools

      Problem Statement/Rationale

      Connecting to our Atlas MongoDB hosted on AWS using AWS SSO credentials with mongosh no longer works on mongosh v2.5.8. 

      Steps to Reproduce

      Try connecting to an AWS Atlas instance using AWS SSO credentials, like this in ~/.aws/config:

      [sso-session periodic]
      sso_start_url = https://SOMEUNIQUEID.awsapps.com/start/
      sso_region = us-west-1
      sso_registration_scopes = sso:account:access
      [default]
      sso_session = NAME
      sso_account_id = NUMBER
      sso_role_name = PowerUserAccess

      using

      &authMechanism=MONGODB-AWS

      in the connect URL.
      Expected Results

      The shell should connect successfully.

      Actual Results

      The shell gives an error:

      ~ mongosh "mongodb+srv://periodiclabs.jqakwn.mongodb.net/?authSource=%24external&authMechanism=MONGODB-AWS" Current Mongosh Log ID: 68d336ef41fe8728d0cd9f2a Connecting to: mongodb+srv://organization.jasjjdn.mongodb.net/?authSource=%24external&authMechanism=MONGODB-AWS&appName=mongosh+2.5.8 Error: connect EHOSTUNREACH 169.254.169.254:80 - Local (10.89.231.104:59606)

      Additional Notes

      We are able to connect without any issues using mongosh version 2.5.5. Sometime between 2.5.5 and 2.5.8, this functionality was broken. 

            Assignee:
            Unassigned
            Reporter:
            Xander Dunn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: