Mongos authentication
In a sharded cluster you should use --keyFile
to allow all the members of the cluster to authenticate to each other. When you use this option, --auth
is "assumed". Since there've been several version changes since you asked this question, the roles assigned to users are more granular now - you would need to have a 'clusterAdmin', 'userAdmin', 'dbAdmin', etc.
This page has more details about how to configure security in MongoDB for a sharded cluster.