Re:Several thousand MongoDBs without access control on the I...
by neals on Tuesday February 10, 2015 @08:20AM
(#9026897)
How do I know if my access control is just local? I have a few small (pet) mongoDB projects on Digital Ocean, never spend too much time updatng and/or securing them actually.
[ Parent
| on HN ]
Re:Several thousand MongoDBs without access control on the I...
by patio11 on Tuesday February 10, 2015 @09:36AM
(#9027298)
Assuming you have the mongo client installed on your laptop or similar, use this in a command shell:
> mongo server.address.or.ip.goes.here
If this connects successfully, that is problematic.
Re:Several thousand MongoDBs without access control on the I...
by jwklemm on Tuesday February 10, 2015 @08:48AM
(#9027033)
I'd first make sure that MongoDB is locked down in your firewall. Only open port 27017 to the IPs that need it (app, secondaries, etc).
I've found Mongo's authorization setup to be pretty unintuitive, but you can find some information here: http://docs.mongodb.org/manual/core/authorization/ (IIRC, you need to setup the permissions first, then set "auth=true" in mongod.conf and restart the service.)