Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4787

IAM authentication not working in Compass

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Critical - P2 Critical - P2
    • No version
    • 1.26.1
    • Compass
    • None
    • Not Needed
    • Hide

      AWS IAM (Suggestion)
      completed (24 users)

      Show
      AWS IAM (Suggestion) completed (24 users)

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            david.steiner@validusrm.com David Steiner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: