-
-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Set connect context to check RLS policies
* Setups for tests closer to production based on what realtime/storage is doing * Changes fixture to use supabase_admin to keep the 'closer to production' setup * Creates a migration to properly set the GRANTS required for the roles supported * Enables RLS policies on channels table * Changes order of checks so we have access to decrypted JWT token * If config of channel is public, will assign permissions to socket * Permission check is done after we set various config values of the current transaction * Select on channels determines if user has access to it, no rows means no access
- Loading branch information
1 parent
597cb21
commit 0147ace
Showing
6 changed files
with
186 additions
and
127 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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