-
Type: Bug
-
Resolution: Fixed
-
Priority: Blocker - P1
-
Affects Version/s: 1.27.1
-
Component/s: Atlas, Compass, Connectivity
-
None
-
Iteration Geneva
-
Not Needed
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
- Add a database user with Certificate authentication
- In Atlas, click on the connect button for the cluster
- Click connect using MongoDB Compass
- Copy the connection string and remove username and password
- Paste connection string into compass
Example: mongodb+srv://TESTCLUSTER.abcde.mongodb.net/ - Click Fill in connection fields individually
- Fill in the remaining fields to connect with X509: Authentication, SSL, Certs
- 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.