Repository navigation
fix(db): enforce verified TLS when configured - #592
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Independent review found no remaining code blocker. Full local A separate never-promoted staged diagnostic using this exact client/TLS policy is READY. Its actual Node24.22.3 pool reports verified TLS with the official public Supabase CA, and the unchanged canonical production schema guard connected successfully. It has zero actual aliases; public application and cron targets remain on the prior release. The two new public TLS settings were added for future production/preview deployments without changing credentials. A fresh normal exact-source preview under these project settings is required before merge. No schema migration is required by this PR. |
|
Released reviewed main squash |
Adds an explicit DATABASE_REQUIRE_TLS policy across the application pool, schema checks, migrations and backup/recovery connections. Optional public CA certificates augment runtime trust; certificate and hostname verification remain required even when URL or PGSSL settings request weaker modes. Local defaults remain unchanged.
Native pg_dump and pg_restore receive a verified temporary CA context with owner-only permissions and cleanup after success, failure or cancellation. Pool cache identity includes the TLS policy. No migration is required.
Validation: clean full verify passed 7,148 tests with zero failures or skips on ee3e72d; all static and type checks passed. Actual Node24 TLS fixtures cover trusted certificates, incorrect CA/hostname, literal IP identity and TLS refusal. Native adapter cleanup tests and real pg_dump17 loopback TLS controls also passed. Deployment configuration and production promotion remain separate release steps.