[SERVER-22441] change authenticationDatabase default from test to admin Created: 02/Feb/16  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Martin Bligh Assignee: Backlog - Security Team
Resolution: Unresolved Votes: 0
Labels: platform-lhf
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Security
Participants:

 Description   

"test" seems like a terrible default, forces uses to specify manually, and is contrary to how our docs show to set things up.



 Comments   
Comment by Lungang Fang [ 03/Jul/19 ]

Hi,

I believe this has been implemented by SERVER-35212 for mongo shell. It might be worthwhile to link this ticket to that ticket to avoid confusion.

When I noticed this behaviour change with MongoDB 4.0.6, I searched in JIRA using the keyword authenticationDatabase but only to find this ticket which made me think the default authentication database is still test. Although technically it is still true, but from a mongo shell user's perspective, the default authentication database appears to be admin. That confused me until I checked the git history and found SERVER-35212. Therefore, I'd suggest linking this ticket to SERVER-35212 so that those who look at this ticket know the default authentication database has changed to admin for mongo shell.

Regards,
Lungang

Generated at Thu Feb 08 04:00:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.