[SERVER-45108] Change authutil.asCluster to check conn for clusterAuthMode Created: 12/Dec/19  Updated: 29/Oct/23  Resolved: 28/Jan/20

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: None
Fix Version/s: 4.3.4

Type: Bug Priority: Major - P3
Reporter: Haley Connelly Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-47388 Complete TODO listed in SERVER-45108 Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2019-12-30, Security 2019-01-13, Security 2019-01-27, Security 2020-02-10
Participants:

 Description   

In order for TestData.clusterAuthMode to be set, clusterAuthMode must be configured as part of the suite. Since clusterAuthMode is a property of the mongod, jstest.options().clusterMode is never set and always defaults to 'keyFile'. Thus, atuhutil.asCluster should use 'conn' to check for the setting of clusterAuthMode instead of using jstest.options

Currently, authutil.asCluster won't work for some tests that require x509 auth, since auth mode defaults to 'keyFile,' and x509 authorization cannot be reached in the code.  

 

 



 Comments   
Comment by Githook User [ 28/Jan/20 ]

Author:

{'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon', 'name': 'Sara Golemon'}

Message: SERVER-45108 Determine clusterAuthMode from connection for authutil.asCluster
Branch: master
https://github.com/mongodb/mongo/commit/806bdd4c59adf3e9f9167e60bf6c48769310ad83

Generated at Thu Feb 08 05:07:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.