Repository navigation
fix: use authenticated role when JWT default group name is unset - #2962
Open
pcbeingused333 wants to merge 2 commits into
Open
pcbeingused333 wants to merge 2 commits into
pcbeingused333 wants to merge 2 commits into
Conversation
The deprecated setting stays empty unless it is configured, so the deprecation warning does not fire on every boot. New users still get the authenticated role PostgREST expects.
This branch has not been deployed
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.
When GOTRUE_JWT_DEFAULT_GROUP_NAME is unset, signup and admin user creation stored an empty role. PostgREST then fails with
role "" does not exist. New users now get theauthenticatedrole in that case. An explicit value is still stored as given, and leaving the variable unset does not turn on the deprecation warning.The test checks that an empty setting still reads as empty, that the role used for a new user is
authenticated, and thatcustom_roleis kept when it is set.Prepared with the help of an AI coding assistant.
Fixes #1362