[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: |
|
||||||||
| 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: |