Secure connection to MongoDB and Redis

javikeziahPRO

a year ago

I currently have MongoDB and Redis connected to my project. By default, these connections do not utilize SSL/TLS, which, as I understand, means that data transferred to my databases is not encrypted.

Could you please confirm if it is possible to implement TLS for these database connections to ensure data security? How could I do it?

3 Replies

a year ago

If you connect to the database via the private network (you should be doing that anyway) there would be no need for SSL/TLS because it's already a private network.


javikeziahPRO

a year ago

Is there any way to limit the public access by IP? I know I could remove the public url, but I like to connect to UI tools like Redis Insights, as Railway does not offer anything similar to visualize and edit the data.


a year ago

Railway does not offer any firewalls, I would recommend deploying a service into your project that would give you the insights you want into your Databases.