- Category
- Developer Tools
- Rank
- No. 2439Tools index
- Pricing
- Open Source
- Type
- TOOL
- GitHub
- 1 stars
- Latest release
- v0.1.2
- Date
About
pgseal is a Go command-line tool and GitHub Action that checks PostgreSQL, Supabase and Neon databases for schema drift, Row-Level Security exposure and unsafe migrations. It connects with a role that has no SELECT access to user tables and reads only catalog views, so it can run in CI without touching application data. It records an attestation on each run to show that no user rows were read.
At a glance
pgseal is a Go command-line tool and GitHub Action that watches a PostgreSQL, Supabase or Neon database for schema drift, Row-Level Security gaps and risky migrations. It logs in as a role with no SELECT rights on your tables and reads only the system catalogs, so it can audit structure without touching row data.
Good fit
Teams on Supabase or plain Postgres who want a pull-request check that flags a table left without RLS, a policy like USING (true), or a migration that will take a heavy lock, such as CREATE INDEX without CONCURRENTLY. The offline check-sql mode lints migration files without any database connection.
Consider something else when
Skip it if you need data-quality checks on row contents, since the tool deliberately cannot read rows; its watch mode only tracks freshness and volume drops from statistics. It is also a poor fit if you cannot create a dedicated database role or add a connection string to your CI secrets.
Start here
Install with go install github.com/yun87457-web/pgseal/cmd/pgseal@latest or download a release binary and verify its checksum. Set DATABASE_URL, run pgseal init to print the role SQL, apply it, then run pgseal doctor to confirm zero table access before pgseal snapshot and pgseal rls --live.
Cost and requirements
The code is MIT licensed and the README lists no paid tier. Building from source needs Go 1.25; release binaries are static. You need permission to create a login role, plus a Postgres connection string. On Supabase CI runners, the README recommends the Supavisor transaction pooler URL because direct hosts are often IPv6-only.
Limits to know
This is an early release, v0.1.2. Its safety and speed claims, including no user-table scans across PostgreSQL 15 to 17, come from the README's own CI and benchmarks rather than independent review. The README documents seven RLS rules and nine migration rules, and Supabase internal schemas are excluded by default.
Sources checked 2026-11-27. Source-based assessment.
Similar tools
Tags
Tech Stack
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.