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

Unable to connect to Atlas with SRV connection string and X509 certificate

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 1.28.1
    • Affects Version/s: 1.27.1
    • Component/s: Atlas, Compass, Connectivity
    • None
    • Not Needed
    • Iteration Geneva

      Problem Statement/Rationale

      Compass can not connect to an Atlas cluster with SRV connection string and X509 certificate.

      Encountered in

      Compass 1.27.1

      MongoDB 4.4.6 (Atlas)

      Steps to Reproduce

      1. Add a database user with Certificate authentication
      2. In Atlas, click on the connect button for the cluster
      3. Click connect using MongoDB Compass
      4. Copy the connection string and remove username and password
      5. Paste connection string into compass
        Example: mongodb+srv://TESTCLUSTER.abcde.mongodb.net/
      6. Click Fill in connection fields individually
      7. Fill in the remaining fields to connect with X509: Authentication, SSL, Certs
      8. Click Connect

      Expected Results

      Compass should connect to the cluster with the given X509 certificate

      Actual Results

      Compass outputs the following error:

      [object Object] can only have authSource set to '$external'
      

      Additional Notes

      This can be worked around by adding

      &authSource=$external

      to the connection string before filling in the individual connection fields. 

            Assignee:
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Reporter:
            ilan.cohen@mongodb.com Ilan Cohen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: