[COMPASS-5612] It should be possible to save a connection without a password Created: 21/Mar/22  Updated: 23/Aug/23  Resolved: 17/Aug/22

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

Type: New Feature Priority: Major - P3
Reporter: N/A N/A Assignee: Julia Oppenheim
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
Related
related to VSCODE-454 Feature parity with mongosh when conn... Needs Triage
Story Points: 3
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

I want to have saved connections, with the various parameters there - except the password.  It should then prompt for a password when I try to connect.  Most other DB clients support this.


Passwords for client systems are maintained in an enterprise password manager.  They should not be saved anywhere else, so i can't save them in MongoDb Compass...  But i want the rest of the connection criteria saved.

Steps to Reproduce

Try to save a connection as a favourite without a password - no error but not saved

Try to remove password from a saved connection and save - get an error that password must be supplied

Expected Results

I expect to be able to save the connection without the password.  I should only need the password when opening the connection

Actual Results

Try to save a connection as a favourite without a password - no error but not saved

Try to remove password from a saved connection and save - get an error that password must be supplied

 



 Comments   
Comment by Julia Oppenheim [ 17/Aug/22 ]

Closing this feature request for now as it's reflected on our feedback portal: https://feedback.mongodb.com/forums/924283-compass/suggestions/38666281-i-want-to-use-favorites-without-storing-passwords 

 

Requesters should be sure to vote for this issue in the portal, so we can prioritize this in the future. 

Comment by N/A N/A [ 22/Mar/22 ]

I am also trying to generate connections with a script.  I tried generating the JSON files in the folder where they are saved - but it ignores them totally (if I change an existing file there then the change is applied by Compass, but if I create a new file then the connection is not shown at all).  I wonder if this is connected to the fact that i don't have a password for them?

See https://github.com/mongodb-js/compass/issues/2027#issuecomment-1074888574 for more details on that

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