Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some options for securing redis db?

Tags:

ruby

redis

resque

I'm running Redis locally and have multiple machines communicating with redis on the same port -- any suggestions for good ways to lock down access to Redis? The database is run on Mac OS X. Thank you.

Edit: This is assuming I do not want to use the built-in (non backwards compatible) Redis requirepass directive in the config.

like image 335
Mike Avatar asked Sep 21 '11 07:09

Mike


1 Answers

On EC2 we lock down the machines that can make requests to the redis port on our redis box to only be our app box (we also only use it to store non-sensitive data).

Another option could be to not open up the redis port externally, but require doing port forwarding through an ssh tunnel. Then you could only allow requests coming through the tunnel and only allow ssh with a known key.

You'd pay the ssh penalty, but maybe that's ok for your scenario.

like image 107
Ted Naleid Avatar answered Nov 09 '22 23:11

Ted Naleid