Skip to content

Add grant runAs for Postgres grants#47

Merged
MelbourneDeveloper merged 1 commit intomainfrom
grant-run-as-cross-schema-core
May 6, 2026
Merged

Add grant runAs for Postgres grants#47
MelbourneDeveloper merged 1 commit intomainfrom
grant-run-as-cross-schema-core

Conversation

@MelbourneDeveloper
Copy link
Copy Markdown
Collaborator

Summary

  • add grants[].runAs for PostgreSQL support grants and YAML round-trip support
  • wrap runAs grants with a membership guard plus SET LOCAL ROLE / RESET ROLE so migration roles can apply grants owned by another schema role
  • preserve grant diff idempotency and add NAP-shaped Supabase auth grant E2E coverage
  • add mixed-case CHECK constraint regression coverage for the existing PostgreSQL identifier path

Fixes #46
Refs #18

Validation

  • dotnet test Migration/Nimblesite.DataProvider.Migration.Tests/Nimblesite.DataProvider.Migration.Tests.csproj --configuration Release --verbosity minimal (484 passed)
  • make lint

@MelbourneDeveloper MelbourneDeveloper merged commit 3bdeecf into main May 6, 2026
3 checks passed
@MelbourneDeveloper MelbourneDeveloper deleted the grant-run-as-cross-schema-core branch May 6, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

schema.yaml grants: support cross-schema GRANT when migrate role is not the schema owner [NAP Tier 1]

1 participant