[COMPASS-6788] Set default behavior such that "Edit Connection String" always starts disabled Created: 03/May/23  Updated: 29/Oct/23  Resolved: 17/May/23

Status: Closed
Project: Compass
Component/s: Security
Affects Version/s: None
Fix Version/s: 1.37.0

Type: Task Priority: Critical - P2
Reporter: Jessica Sigafoos Assignee: Himanshu Singh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Issue split
split from COMPASS-6161 Hide password during screenshares / Z... Closed
Story Points: 3
Documentation Changes: Needed
Documentation Changes Summary:

Note: Please check the comment below in the task ticket, the description contains some outdated info.

In this ticket we have introduced a new global config property called `protectConnectionStringsForNewConnections`. This new property allow users to configure the default state of "Edit connection string" toggle, for new connections.

If set to true, "Edit connection string" toggle is in the off state for new connections by default.

This property works differently when compare to `protectConnectionStrings` in a way that the new property will:

  • work specifically for new connections
  • not hide the toggle entirely unlike `protectConnectionStrings`, instead will set the default state of the toggle (on / off). Users will still be able to switch the toggle on / off.

Required change:
We need to document this property on Compass - Configuration File Settings page (https://www.mongodb.com/docs/compass/current/settings/config-file/)

Sprint: Iteration Brontosaurus

 Description   

Add an extra option to the global config file, something like connectionStringEditableByDefault. When set to `false`, Compass' default behavior is that "Edit Connection String" always starts disabled and has to be enabled manually both for new as well as for existing connections. Default value here should be {true} so the UX is more straightforward for less regulated customers.



 Comments   
Comment by Githook User [ 16/May/23 ]

Author:

{'name': 'Himanshu Singh', 'email': 'himanshu.singhs@outlook.in', 'username': 'himanshusinghs'}

Message: Merge branch 'main' into COMPASS-6788-edit-conn-string-disable-global-config
Branch: COMPASS-6788-edit-conn-string-disable-global-config
https://github.com/mongodb-js/compass/commit/e7cc73ff887f51c8826413b3b5c668f4290dff31

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