[SERVER-12746] changing clusterAuthMode to sendKeyFile does not reset authParams Created: 14/Feb/14  Updated: 11/Jul/16  Resolved: 19/Feb/14

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: 2.5.5
Fix Version/s: 2.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Shaun Verch Assignee: Andreas Nilsson
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

MongoDB shell version: 2.5.6-pre-
connecting to: localhost:30001/test
"sv.local:30001"
{
	"set" : "sslTest",
	"date" : ISODate("2014-02-14T21:19:32Z"),
	"myState" : 2,
	"members" : [
		{
			"_id" : 0,
			"name" : "sv.local:30001",
			"health" : 1,
			"state" : 2,
			"stateStr" : "SECONDARY",
			"uptime" : 9868,
			"optime" : Timestamp(1392409631, 1),
			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
			"self" : true
		},
		{
			"_id" : 1,
			"name" : "sv.local:30002",
			"health" : 0,
			"state" : 6,
			"stateStr" : "(not reachable/healthy)",
			"uptime" : 9866,
			"optime" : Timestamp(1392402571, 1),
			"optimeDate" : ISODate("2014-02-14T18:29:31Z"),
			"lastHeartbeat" : ISODate("2014-02-14T21:19:31Z"),
			"lastHeartbeatRecv" : ISODate("2014-02-14T20:57:16Z"),
			"pingMs" : 0,
			"lastHeartbeatMessage" : "syncing to: sv.local:30001",
			"authenticated" : false,
			"syncingTo" : "sv.local:30001"
		},
		{
			"_id" : 2,
			"name" : "sv.local:30003",
			"health" : 1,
			"state" : 3,
			"stateStr" : "RECOVERING",
			"uptime" : 33,
			"optime" : Timestamp(1392409631, 1),
			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
			"lastHeartbeat" : ISODate("2014-02-14T21:19:31Z"),
			"lastHeartbeatRecv" : ISODate("2014-02-14T20:57:16Z"),
			"pingMs" : 0
		}
	],
	"ok" : 1
}
{ "sslMode" : "allowSSL", "ok" : 1 }
{ "clusterAuthMode" : "x509", "ok" : 1 }
MongoDB shell version: 2.5.6-pre-
connecting to: localhost:30002/test
"sv.local:30002"
{
	"set" : "sslTest",
	"date" : ISODate("2014-02-14T21:19:32Z"),
	"myState" : 2,
	"members" : [
		{
			"_id" : 0,
			"name" : "sv.local:30001",
			"health" : 0,
			"state" : 6,
			"stateStr" : "(not reachable/healthy)",
			"uptime" : 9868,
			"optime" : Timestamp(1392409631, 1),
			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
			"lastHeartbeat" : ISODate("2014-02-14T21:19:30Z"),
			"lastHeartbeatRecv" : ISODate("2014-02-14T18:36:17Z"),
			"pingMs" : 0,
			"authenticated" : false,
			"syncingTo" : "sv.local:30003"
		},
		{
			"_id" : 1,
			"name" : "sv.local:30002",
			"health" : 1,
			"state" : 2,
			"stateStr" : "SECONDARY",
			"uptime" : 9868,
			"optime" : Timestamp(1392409631, 1),
			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
			"self" : true
		},
		{
			"_id" : 2,
			"name" : "sv.local:30003",
			"health" : 1,
			"state" : 3,
			"stateStr" : "RECOVERING",
			"uptime" : 35,
			"optime" : Timestamp(1392409631, 1),
			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
			"lastHeartbeat" : ISODate("2014-02-14T21:19:31Z"),
			"lastHeartbeatRecv" : ISODate("2014-02-14T18:36:02Z"),
			"pingMs" : 0
		}
	],
	"ok" : 1
}
{ "sslMode" : "allowSSL", "ok" : 1 }
{ "clusterAuthMode" : "x509", "ok" : 1 }
MongoDB shell version: 2.5.6-pre-
connecting to: localhost:30003/test
"sv.local:30003"
{
	"set" : "sslTest",
	"date" : ISODate("2014-02-14T21:19:33Z"),
	"myState" : 3,
	"members" : [
		{
			"_id" : 0,
			"name" : "sv.local:30001",
			"health" : 0,
			"state" : 6,
			"stateStr" : "(not reachable/healthy)",
			"uptime" : 0,
			"optime" : Timestamp(0, 0),
			"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
			"lastHeartbeat" : ISODate("2014-02-14T21:19:33Z"),
			"lastHeartbeatRecv" : ISODate("2014-02-14T21:19:33Z"),
			"pingMs" : 0,
			"authenticated" : false
		},
		{
			"_id" : 1,
			"name" : "sv.local:30002",
			"health" : 0,
			"state" : 6,
			"stateStr" : "(not reachable/healthy)",
			"uptime" : 0,
			"optime" : Timestamp(0, 0),
			"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
			"lastHeartbeat" : ISODate("2014-02-14T21:19:33Z"),
			"lastHeartbeatRecv" : ISODate("2014-02-14T21:19:31Z"),
			"pingMs" : 0,
			"authenticated" : false
		},
		{
			"_id" : 2,
			"name" : "sv.local:30003",
			"health" : 1,
			"state" : 3,
			"stateStr" : "RECOVERING",
			"uptime" : 36,
			"optime" : Timestamp(1392409631, 1),
			"optimeDate" : ISODate("2014-02-14T20:27:11Z"),
			"self" : true
		}
	],
	"ok" : 1
}
{ "sslMode" : "allowSSL", "ok" : 1 }
{ "clusterAuthMode" : "keyFile", "ok" : 1 }



 Comments   
Comment by Ian Whalen (Inactive) [ 19/Feb/14 ]

Author:

{u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}

Message: SERVER-12476 Set internalAuth params when changing clusterAuthMode
Branch: master
https://github.com/mongodb/mongo/commit/28327ab66e97d3319ca2baf001385a38825da84c

Comment by Andreas Nilsson [ 14/Feb/14 ]

http://codereview.10gen.com/6035446723248128

Generated at Thu Feb 08 03:29:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.