By brian801307
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!
Accepted Answer
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.