Skip to content
Discussion options

You must be logged in to vote

Yes to the pooler part first, since it is the simplest: custom roles through the shared pooler are supported. The connection docs say the shared pooler username is postgres.[PROJECT-REF], and if you connect as a custom role the username is [ROLE].[PROJECT-REF]. Port 6543 on the shared pooler is Supavisor in transaction mode. Least privilege is just standard Postgres: the role only has what you grant it.

For creating and rotating the password, the supported path is SQL run as the postgres role (SQL editor, CLI, or a direct/psql connection). Supabase recommends a separate user per service rather than sharing the postgres password, and this is exactly that pattern:

CREATE ROLE app_login WITH…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@dkelleci
Comment options

@aniketatgithub
Comment options

Answer selected by dkelleci
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants