mongodb - Mongoose authenticating with keyfile -
i have mongo replica set 3 members , using keyfile authorisation. using mongoose , docs not find way authenticate via keyfile.
does mongoose support ? if so, how specify keyfile while authenticating ?
you not authenticate client via keyfile. can setup ssl , use x509 authenticate. however, keyfile authentication between replication set members. authentication must create user , require authentication in mongodb config. user local database in created. x509 requires steps correlate key/cert given user.
if have no need ssl, i'd recommend creating admin user entire database, creating user database you're trying access in app.
Comments
Post a Comment