Skip to content

Conversation

@nikoshet
Copy link
Contributor

Changes:

  • Extract app_owner username from TARGET_POSTGRES_URL environment variable
  • Update default privileges logic:
    • If user is app_owner: use standard ALTER DEFAULT PRIVILEGES IN SCHEMA
    • If user is not app_owner: use ALTER DEFAULT PRIVILEGES FOR ROLE app_owner IN SCHEMA

This ensures that when app_owner creates new tables/functions/sequences,
application users automatically receive the appropriate permissions.

@nikoshet nikoshet self-assigned this Jan 22, 2026
@nikoshet nikoshet requested a review from a team as a code owner January 22, 2026 16:03
@nikoshet nikoshet force-pushed the chore/update-grant-permissions-logic branch from e285a0a to 5b93e2d Compare January 22, 2026 16:05
- Add `app_owner` and update the permission granting logic for objects created by the app_owner
@nikoshet nikoshet force-pushed the chore/update-grant-permissions-logic branch from 5b93e2d to f8bae1f Compare January 22, 2026 16:09
@nikoshet nikoshet merged commit 41de501 into main Jan 22, 2026
6 checks passed
@nikoshet nikoshet deleted the chore/update-grant-permissions-logic branch January 22, 2026 18:42
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.

2 participants