Repository navigation
Conversation
Re-running migrations on an existing cluster left explicit grants to postgres on auth.uid/role/email and the pg_cron/pg_net event trigger functions, and granted pgsodium_keyholder to service_role when a user had created pgsodium after the initial run. Revoke postgres's grants right after each ownership change, and only grant pgsodium_keyholder to service_role when the migrations themselves create pgsodium. Add a NixOS test that re-runs all migrations on PG 15 and 17 and diffs roles and schema against the fresh cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PostgreSQL Extension Dependency Analysis: PR #2552
SummaryNo extensions had dependencies with MAJOR version updates. Full Analysis ResultsPostgreSQL 15 Extension DependenciesPostgreSQL 17 Extension DependenciesOrioleDB 17 Extension Dependencies |
PostgreSQL Package Dependency Analysis: PR #2552
SummaryNo packages had MAJOR version updates. Full Analysis ResultsPostgreSQL 15 Dependency ChangesExtracting PostgreSQL 15 dependencies...
Runtime Closure Size
Raw Dependency ClosurePostgreSQL 17 Dependency ChangesExtracting PostgreSQL 17 dependencies...
Runtime Closure Size
Raw Dependency Closure |
Package version diffCompares built package versions in legacyPackages between this PR and the tip of the base branch, per system. aarch64-linux: Closure size: 372 -> 372 (2 paths added, 2 paths removed, delta +0, disk usage +736B).x86_64-linux: Closure size: 370 -> 370 (2 paths added, 2 paths removed, delta +0, disk usage +736B). |
brainrake
marked this pull request as ready for review
October 11, 2026 09:42
brainrake
enabled auto-merge
October 12, 2026 23:27
|
Found 1 test failure on Blacksmith runners: Failure
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-running migrations on an existing cluster adds grants a fresh cluster lacks:
postgresonauth.{uid,role,email}()andextensions.grant_pg_{cron,net}_access(). Revoked right after each ownership change.pgsodium_keyholdertoservice_roleonce a user creates pgsodium. Now granted only when the migrations create pgsodium.Adds
ext-migrations-idempotency: re-runs all migrations on PG 15 and 17 and diffs roles and schema against the fresh cluster.