Which authentication to choose?

Hello,

I’m going to set up MongoDB servers: maybe a couple of replica sets or a sharded cluster, I don’t have the final decision yet, I’m reading docs at the moment.

I’m concerned with security and want to know which authentication is the most reliable and which one is the most frequently used? I don’t have any special requirements so I just want to follow trends :slight_smile:

I’m talking about this:

(SCRAM/KERBEROS/LDAP/X.509)

Just curious who uses what and why, what is your experience, recommendations, thoughts :slight_smile:

Any thoughts will be appreciated!

As you don’t have specific requirements, you should go with user name and password. Simple.

So go for SCRAM. (e.g. kerberos requires additional ticket management, cert will expire,…)

1 Like

Hi Kobe_W,

Thank you!