Mongodb – How secure is mongodb with elastic beanstalk and EC2

mongodbSecurity

I have a questions.

  • I run MongoDB on one of instances of EC2 and application on Elastic BeansTalk.
  • I restricted access to DB: only application can access it.
  • DB instance has Elastic IP because it is replicated in different zones, so private IP is not an option.

Questions:

  1. Can communication between application and DB be eavesdropped?
  2. Should I implement SSL with mongo connection?

Thanks in advance to everyone!

Best Answer

If eavesdropping of traffic intra-cloud is a potential issue for you, you really should implement the connection over SSL. You should also consider running all of your resources in a VPC (virtual private cloud). This allows you to isolate all of your EC2 resources in a private network that is isolated from the rest of the traffic. It also enables you to control where the points of connection to the external world are and how they behave.

Related Question