Looking for a Proxy Solution for MongoDB Connections

0
28
Asked By CuriousCoder42 On

I'm trying to find a proxy tool for MongoDB to use with my serverless functions that connect to MongoDB Atlas. The issue I'm facing is that the IPs for my serverless functions aren't static, so I can't whitelist them for network access on MongoDB Atlas. I need to set up a proxy that has a static outbound IP. I tried using Mongobetween, but it doesn't support any authentication, which is a bit risky. Does anyone know of a good proxy tool or method to handle this situation?

3 Answers

Answered By CloudGuru_88 On

Where are your serverless functions hosted? Depending on that, you may have different proxy options available to you.

CuriousCoder42 -

They're running on Azure.

Answered By TechieTom123 On

You might want to check out MongoDB Atlas's private endpoint feature. It allows you to securely connect your resources to MongoDB without exposing your IP. Here's a link to their documentation: https://www.mongodb.com/docs/atlas/security-private-endpoint/

CuriousCoder42 -

Thanks, I'll definitely look into that!

Answered By DevOpsDude77 On

Consider setting up a VPN, a custom proxy with authentication, or using a cloud NAT gateway to provide a static IP for securely routing your serverless functions to MongoDB Atlas. That way you can maintain security while solving the IP issue.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.