Repository navigation
fix(db): clear Supabase advisor warnings - #496
Merged
Merged
Conversation
Move get_user_org_ids/is_org_admin RLS helpers into a non-exposed private schema (any caller could query another user's orgs via /rest/v1/rpc), revoke EXECUTE on the handle_new_user trigger function, wrap auth.role() in the sdk_projects service-role policy, and index sdk_projects foreign keys. Already applied to prod as migration 20261011015625.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Mogplex PR ReviewStatus: No material issues found PR #496 is approve-ready. The migration correctly fixes Supabase advisor warnings by moving RLS helper functions to a private schema, tightening permissions, fixing auth.role() evaluation in the service-role policy, and adding FK indexes. All changes are idempotent and align with the stated security and performance fixes.
|
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.
Move get_user_org_ids/is_org_admin RLS helpers into a non-exposed private
schema (any caller could query another user's orgs via /rest/v1/rpc), revoke
EXECUTE on the handle_new_user trigger function, wrap auth.role() in the
sdk_projects service-role policy, and index sdk_projects foreign keys.
Already applied to prod as migration 20261011015625.