2 months ago
Hey all, hope you can clarify my doubts.
I have a booking system for my client deployed on Railway, and now I would like to create a CRM in MongoDB where to store all the data of the bookings, and their related updates. So in the CRM should be stored sensitive info like name, phone number and email. As the project on Railway has variable IP, I can't add a specific IP in the IP access list of the DB on MongoDB, and at the moment, for testing purposes, there is 0.0.0.0/0 as IP.
So I would like to ask what's the best way to link the DB to my project without any security risk. Is MongoDB the best solution or maybe for this case could be better a solution like Railway PostgreSQL DB?
0 Replies
2 months ago
Are you talking about MongoDB deployed to Railway or to Atlas?
2 months ago
If you are talking about MongoDB deployed to Railway, you can just remove its public TCP Proxy and connect to it via the private network.
If you are talking about Atlas, you would need to upgrade to Pro for static IPs.
thank you for the answer.
At the moment I solved using your PostgreSQL Database, and seems it work properly and it's a safe solution for the data in the database.
But I will also try the solution for MongoDB Atlas upgrading to Pro as soon as possible
thank you
2 months ago
I'd definitely recommend keeping the database on Railway, that way you can connect to it via the private network to eliminate your service to database egress fees
2 months ago
!s
Status changed to Solved brody • 2 months ago