Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No security whatsoever #16

Open
niekoost opened this issue Oct 5, 2017 · 2 comments
Open

No security whatsoever #16

niekoost opened this issue Oct 5, 2017 · 2 comments

Comments

@niekoost
Copy link

niekoost commented Oct 5, 2017

I don't like that there is no mentioning of security for this repository. For testing purposes I had started an autopilotpattern/mongodb instance on Joyent Triton and after a couple of days, my database had disappeared ....

{ 
  "_id" : ObjectId("59d5347ed08e60d4ef9f62ec"), 
  "BitCoin" : "1Jqw2tHBkUAGY32YzettJiDAwe8A9mUzok", 
  "eMail" : "[email protected]", 
  "Exchange" : "https://localbitcoins.com", 
  "Solution" : "Your DataBase is downloaded and backed up on our secured servers. To recover your lost 
    data: Send 0.2 BTC to our BitCoin Address and Contact us by eMail with your MongoDB server IP 
    Address and a Proof of Payment. Any eMail without your MongoDB server IP Address and a Proof of 
    Payment together will be ignored. You are welcome!"
 }

I think that it would be wise to add some security information:

  • create container
  • go to the container docker exec -it mongodb_1 bash
  • start mongo client mongo
  • initiate the cluster rs.initiate()
  • go to admin database use admin
  • create admin user db.createUser({user: "USERNAME",pwd: "PASSWORD",roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]})
  • ... do some other security stuff that actually enforces using the user/pwd combination ...

Inspiration:

@yosifkit
Copy link
Contributor

I believe this would be fixed by #11. In the interim, you could add a firewall to not expose the database to the public internet.

@RahulMR42
Copy link

I had this earlier for fully open system to internet and I tried with mongokey /with kvm it worked well

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

No branches or pull requests

3 participants