Hi
We're just testing elasticsearch and it is amazing.
We've set it up so that we have all ports closed except for port 80
and port 9300, and are reverse proxying with basic http authentication
to port 9200 on each host. (We're on EC2 running the zero conf cloud
magic plugin.) So far so good. Everything just works. It's a marvel.
However we're concerned and a little bit confused about the role that
9300 plays. Having 9300 open seems to be necessary to let the
different servers find each other in the first place, but if we close
it after they have found each other, the clustering carries on working
just fine. Is this correct?
The reason we're worried is we want to understand if it is OK to leave
9300 open at all or if we need to lock down firewall rules by IP or
similar. We're reluctant to do that as it is quite a bit of admin
overhead and fiddliness. I know that using something like Rightscale
it's possible to add a security group to itself - a sort of DIY VPC -
but as far as I'm aware that functionality doesn't exist on vanilla
AWS. We aren't sure if 9300 traffic is encrypted or signed or what.
I've had a look for more information on security but haven't had much
luck, although questions similar to this have been asked before - I
would have thought there are a lot of people who would benefit from
understanding the (lack of) security model so they can work out how to
set up a secure cluster in the wild.
Interested to know your thoughts,
David