I have configured MongoDB with sharding something like below.
Shard1 Shard2 Shard3
-------- -------- -------
rs1(Pri) rs1(Sec) rs1(Sec)
rs2(Sec) rs2(Pri) rs2(Sec)
rs3(Sec) rs3(Sec) rs3(Pri)
Now, I am planning to have different keyFile's for each replicaset for authentication. Just to ensure no data mismatches in case of any manual configuration errors.
Is there a way we can set-up different keyFile's for multiple replicasets? And how we can configure mongos to refer multiple keyFile's for authentication?
Any pointers will be helpful.