IAM authentication not working in Compass

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Critical - P2
    • No version
    • Affects Version/s: 1.26.1
    • Component/s: Compass
    • None
    • Hide

      AWS IAM (Suggestion)
      completed (24 users)

      Show
      AWS IAM (Suggestion) completed (24 users)
    • Not Needed

      Problem Description

      Compass shows a validation error when a connection string with IAM authentication is pasted.

       

      Property 'authStrategy' must be one of values: NONE, MONGODB, X509, KERBEROS, LDAP, SCRAM-SHA-256. Tried to set undefined
      

      This prevents the user from clicking the Connect button. The same connection string works when using other ways to connect, such as pymongo.

       

      Steps to Reproduce

      Paste an IAM connection string, e.g.

      mongodb+srv://accesskey:secretkey@production-datastore.eucmb.mongodb.net/myFirstDatabase?authSource=%24external&authMechanism=MONGODB-AWS&retryWrites=true&w=majority

      Expected Results

      Connect button to be enabled and successfully connecting on click.

      Actual Results

      Connect button is disabled and an error is shown.

      Additional Notes

      The example given above is for IAM user-based authentication, but role-based authentication isn't working either.

            Assignee:
            Unassigned
            Reporter:
            David Steiner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: