Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Mongo-Cluster running without Password #109

Open
appinteractive opened this issue Sep 20, 2017 · 5 comments
Open

Mongo-Cluster running without Password #109

appinteractive opened this issue Sep 20, 2017 · 5 comments

Comments

@appinteractive
Copy link

How can I configure a password for my Mongo Cluster? At the default configuration its open to the wild! This sould really not be the default!

@sergiopellegrini
Copy link

@appinteractive Firstly setup your admin users on your mongo instance. Then upgrade your mongo cluster add --auth to your startup command.

@appinteractive
Copy link
Author

Yeah I did it already and it worked. But to be honest that’s should be four fields to add a read write user and an admin user on first startup if not happened oder add a BIG warning to that to be aware of.

I know it’s not your fault that mongo Standard config is unsafe bur we should not letting run other people into it.

Hope you get my point and thanks for your package man! 🙂

@sergiopellegrini
Copy link

Fully agree with you! Not my package but was setting this up also and found it strange that there was no option to secure the DB.

@micw
Copy link

micw commented Dec 12, 2017

Looks like there's already a pull request for this: #86 - but for some reason it's ignored...

@markqiu
Copy link

markqiu commented Apr 21, 2018

the cluseter has the following error after I add --auth:
Error in heartbeat request to 10.42.230.91:27017; Unauthorized: not authorized on admin to execute command { replSetHeartbeat: "rs0", configVersion: 5, from: "guchong-mongo-cluster-1:27017", fromId: 0, term: 2 }
Any idea?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants