Eai
Explore posts from serversCDCloudflare Developers
•Created by Eai on 5/22/2024 in #workers-help
Connect to postgres from Workers through tunnel. Is it still possible?
https://blog.cloudflare.com/introducing-socket-workers
https://github.com/cloudflare/worker-template-postgres
Based on this blog post and the template on github, it looks like they used a custom driver to accomplish that. However, the blog and repository were last updated three years ago, and I think things have changed a lot now.
I tried running this sample, but the dependencies were old (wrangler v1) and I didn't know how to migrate them.
Is it currently possible to achieve the same? The purpose is to securely connect to on-premises postgres from workers. hyperdrive requires a publicly accessible postgres, so it doesn't seem fit for this purpose.
3 replies