async-fastapi-mongo icon indicating copy to clipboard operation
async-fastapi-mongo copied to clipboard

Configure a static IP on Heroku with Fixie Socks and restrict access to the MongoDB Atlas database

Open kevinbird15 opened this issue 3 years ago • 1 comments

I noticed in your blog post that you had mentioned using Fixie Socks to restrict access to the MongoDB Atlas Database. I'm curious if that is a step you were able to successfully implement. I have done something pretty close to the app you describe here and I really like how easy MongoDB Atlas is to work with, but I am having troubles using it with Heroku because Heroku doesn't have static IPs available except for enterprise tier customers. I tried using Fixie, Fixie Socks, and Quota Guard, but I don't think I am using them quite properly because when I install them as add-ons, my fastapi backend still tries to call Atlas directly. From what I can tell these add-ons basically just turn into a proxy server, but I'm not sure how to tell my application to pass traffic through. If you have any advice on getting this to work, I would be super interested!

kevinbird15 avatar Feb 08 '22 04:02 kevinbird15

Hi!

You'll have to make use of Heroku enterprise to have access to the static IPs. Proxy addresses can change and isn't a recommended way!

Youngestdev avatar Feb 12 '22 22:02 Youngestdev