Supabase is GA now and from their blog post they will do a Fly announcement this week
Folks, Supabase on Fly.io is now in public beta. Hereās the post!
When I spin up a database in Fly I get a DATABASE_URL
and DATABASE_POOLER_URL
. How can I get a service role key, database password, and project ID given that information? Iām hoping to do this all through scripting.
Sorry to reiterate on this, but has there been any movement here? Any tutorial or blog post?
I envision something more reliable than just doing a pg_dump
and pg_restore
. Maybe setting up a logical replication, then switch.
Actually, this makes me believe that securely using Supabase as public db with Fly.io might not be feasible at all. Since Fly.io doesnāt offer static outbound IPs, configuring network restrictions becomes impossible (unless you another 3rd party https://usefixie.com)
Thereās no official tooling for migration, yet. However, setting up logical replication is pretty straightforward, as you can see in this recently minted guide.
Weād love to write something up, or even work on tooling to automate a migration, but weāre now focused on reliability. Once we get to beta, we can revisit this topic.
Thank you!
I looked into logical replication, of course, but it seems itās not supported from the Supabase side: Roles, superuser access and unsupported operations | Supabase Docs
or is there some special setup/environment for Fly customers?
Yes, youāre right, I had forgotten about this change. Thereās no special setup, but weāre discussing the possibility of opening it up for the db initialization phase.
These are on the horizon, actually⦠They were mentioned recently in the (excellent but much overlooked) Infrastructure Log:
Steve has had a fun week. Heās working on shipping (you heard it here first) static IP address assignments for individual Fly Machines ā this means Fly Machines can make direct requests to the Internet (for instance, to internal on-prem APIs) with predictable IP addresses.
And subsequentlyā¦
Steve finished up the provisioning tooling for the fou-tunnel-and-SNAT monstrosity that we talked about last week: giving Fly Machines static IP addresses, for people who talk to IP-restricted 3rd party APIs.
Whether or not it helps with security, , it definitely will improve compatibility.
Would be awesome if these were cross posted to the forum so we can be notified.
Oh this is great news! Would still be nice if we could run it from within our fly network obviously so itās not even open to the Internet but Iāll take static IPs