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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Hi @brian801307
I found the answer at these two links.
https://vercel.com/knowledge/how-to-allowlist-deployment-ip-address
https://github.com/vercel/vercel/discussions/4595#discussioncomment-26799
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.