Menu

How to Guard PostgreSQL & Supabase Schema Drift and RLS Without Granting SELECT on Any Table
📰

How to Guard PostgreSQL & Supabase Schema Drift and RLS Without Granting SELECT on Any Table

DEV Community: go·DevSignal Engineering·9 days ago
#pCcDyXRR
#devtogo#devto#dev#pgseal#neon
Long article (890 words) — no AI summary yet.
Reading 0:00
15s threshold

Most database drift and data-quality tools ask for a connection string with SELECT privileges across your production tables. For B2B SaaS teams handling customer PII, billing records, or multi-tenant Supabase schemas, giving a CI workflow or monitoring agent read access to every production row is a hard no.

Yet three silent production regressions keep happening on PostgreSQL, Supabase, and Neon:

Someone disables Row-Level Security (RLS) on a table in the dashboard during debugging and forgets to re-enable it.

A developer creates a public view without security_invoker = true — silently bypassing RLS on the underlying tables because views default to running with the view owner's privileges.

An unreviewed migration adds a column with a volatile default, runs CREATE INDEX without CONCURRENTLY , or drops a column that downstream services still query.

I built pgseal ( GitHub Actions Marketplace ) — a single static Go binary (~10.75 MB, MIT license, only pgx/v5 as a runtime dependency) — to catch all three…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.