How do I restrict to a Vercel Now hosted deployment?

Posted April 26, 2020 4.1k views
DigitalOcean Managed MySQL Database

Hello! Just fired up a DigitalOcean managed MySQL database, and need to restrict to specific hosts that can access it. However I don’t think there’s a static IP or range they could potentially fire connections from. How do I access the managed db from a vercel now instance in this case?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Thanks @manuganji !

I got a private reply from Vercel support which confirms this. You can just restrict by ensuring you’re using a strong password in a private env file, rotating it frequently, and doing requests over SSL.