feat(ops): answer "what datastore does this app actually use?" - #436
Merged
Conversation
Asked whether anything still used the self-hosted Supabase stack, I grepped DATABASE_URL across every app env. Every hit pointed at localhost:5432, so the answer looked like "nothing" — and stopping the stack was one command from taking orangecat and botsmann down, with 114 auth users, 114 profiles and 927 messages behind it, written to as recently as the previous evening. A Supabase app never sets DATABASE_URL. It talks HTTPS to PostgREST/Kong via SUPABASE_URL. Absence of a Postgres connection string is not absence of a dependency; it is the signature of a different one. This reads BOTH bindings per app and reports whether a Postgres target actually contains tables, so an empty database cannot masquerade as the live one. What it found on first run: orangecat, botsmann -> self-hosted Supabase (supabase.orangecat.ch) printcraft -> HOSTED supabase.co, never migrated off the cloud 12 apps -> native postgres native db orangecat -> exists with ZERO tables, referenced by nothing Read-only. The question "is X safe to stop?" now has a factual answer instead of a confident wrong one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Asked whether anything still used the self-hosted Supabase stack, I grepped
DATABASE_URLacross every app env. Every hit pointed atlocalhost:5432, so the answer looked like "nothing" — and stopping the stack was one command from taking orangecat and botsmann down, with 114 auth users, 114 profiles and 927 messages behind it, written to the previous evening.A Supabase app never sets
DATABASE_URL. It talks HTTPS to PostgREST/Kong viaSUPABASE_URL. The absence of a Postgres connection string is not the absence of a dependency — it is the signature of a different one. Grepping one binding and concluding "unused" reads absence as an answer.This reads both bindings per app, and reports whether a Postgres target actually holds tables, so an empty database cannot masquerade as the live one.
First run:
supabase.orangecat.ch)supabase.co— never migrated off the cloudorangecatdbRead-only. "Is X safe to stop?" now has a factual answer instead of a confident wrong one.
🤖 Generated with Claude Code
https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P