[COMPASS-4787] IAM authentication not working in Compass Created: 04/May/21  Updated: 25/Apr/22  Resolved: 04/May/21

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.26.1
Fix Version/s: No version

Type: New Feature Priority: Critical - P2
Reporter: David Steiner Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2021-05-04-10-47-09-237.png    
Issue Links:
Related
related to COMPASS-4877 Relax connection string validation to... Closed
Documentation Changes: Not Needed
UserVoice Links:

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.



 Comments   
Comment by Massimiliano Marcon [ 04/May/21 ]

Hi david.steiner@validusrm.com. Compass currently does not support IAM authentication. We are tracking the feature request in our feedback portal: https://feedback.mongodb.com/forums/924283-compass/suggestions/42476686-aws-iam. Could you please add your vote there?

Generated at Wed Feb 07 22:37:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.