Files
loki/scripts
GandClaude Opus 5 ae562996a3 feat(ops): answer "what datastore does this app actually use?" (#436)
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.


Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-29 07:12:05 +02:00
..
…