Skip to content

Setting a password for db-anon-role #3840

Discussion options

You must be logged in to vote

It doesn't matter whether the anon role has a password set or not - PostgREST doesn't log in with this role at all.

Instead, what matters is: The authenticator role, the role with which PostgREST connects, needs to be allowed to SET ROLE into the anon role. That means you need to GRANT anon TO authenticator. It doesn't matter whether the anon role has a password for that or not.

That being said: You should probably only create the authenticator role via neon's UI. You will also have access to your database with some kind of superuser role, with which you should be able to create other roles, too, right? Then create the anon role like that. See https://neon.tech/docs/manage/roles#manage-ro…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jayendra-info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3839 on January 04, 2025 20:29.