fix(db): make hosted default ACL migrations postgres-safe#914
Conversation
|
Updates to Preview Branch (codex/postgres-default-privileges-repair) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe change moves default-privilege bootstrapping, verification, repair, replay, tooling, documentation, snapshots, and tests from ChangesPostgres default privilege hardening
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
Suggested labels: Sequence Diagram(s)sequenceDiagram
participant CI
participant roles.sql
participant PostgreSQL
participant ACLCheck
CI->>roles.sql: Bootstrap postgres default privileges
roles.sql->>PostgreSQL: Apply ALTER DEFAULT PRIVILEGES
ACLCheck->>PostgreSQL: Read postgres ACL status
PostgreSQL-->>ACLCheck: Return ACL entries and safety result
ACLCheck-->>CI: Pass or report unsafe defaults
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
CI triageCI failed on this PR. Automated classification of the 2 failed job(s):
Compared with main CI run #3526 (success). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
|
@codex fil failing CI testing |
Summary
Testing
|
Summary
postgresin schemapublic.roles.sql, the schema snapshot, CI replay, drift tooling, ACL verification, tests, and the regenerated drift manifest.Verification
supabase/postgres:17.6.1.127(28s).tests/supabase-schema.test.tspassed: 66/66.Verification not run: the complete
npm run verify:pr-localbroad gate was left to PR CI because the focused database suite and deterministic Docker replay passed locally.Production deployment evidence
Target: Clinical KB Database (
sjrfecxgysukkwxsowpy).Applied hosted migrations:
20260719055541_assert_postgres_default_privileges20260719055555_reassert_postgres_default_privileges20260719055609_repair_postgres_default_privileges20260719055623_enforce_public_title_word_scopePost-deployment verification:
public.default_privileges_status('postgres', 'public') -> safe = trueunsafe_title_word_rows = 0document_title_words_enforce_public_scopeexists once and is enabled (tgenabled = O)service_roleonly, notPUBLIC,anon, orauthenticatedRisk and rollout
Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Notes
Summary by CodeRabbit
Security Enhancements
Reliability
Documentation