Sync from docs: Supabase Data API grants, RLS, and publishable keys (powersync-docs #453)#32
Open
bean1352 wants to merge 1 commit into
Open
Sync from docs: Supabase Data API grants, RLS, and publishable keys (powersync-docs #453)#32bean1352 wants to merge 1 commit into
bean1352 wants to merge 1 commit into
Conversation
…able keys - Add Data API Grants section to supabase-auth.md explaining the Supabase default change (May 30 2026) and the explicit grant SQL required for supabase-js writes on new projects - Update uploadData() Important note to clarify that grants are checked before RLS; a missing grant causes 42501 before RLS is evaluated - Add publishable keys note after the fetchCredentials() JS/TS example - Update onboarding-supabase.md step 2 to mention publishable keys as the replacement for the legacy anon key on new Supabase projects Source: powersync-ja/powersync-docs#453
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.
Source docs PR: powersync-ja/powersync-docs#453
What changed in docs
Supabase is rolling out a new default (enforced for all new projects from May 30, 2026) where tables in the
publicschema are no longer automatically exposed to the Data API; explicitGRANTstatements are now required. The guide also notes that new Supabase projects issue publishable keys (prefixedsb_publishable_…) in place of the legacy anon key.Skill updates in this PR
skills/powersync/references/supabase-auth.md— Added a Data API Grants subsection under "Supabase Database Setup" with the required SQL and an explanation of how grants and RLS interact; updated theuploadData()"Important" note to clarify that a missing grant causes42501: permission denied for tablebefore RLS is evaluated; added a publishable keys callout after thefetchCredentials()JS/TS example.skills/powersync/references/onboarding-supabase.md— Updated Phase 1 step 2 to note that new Supabase projects use publishable keys and to use them as the value forSUPABASE_ANON_KEY.Notes for reviewer
supabase-auth.md"Supabase Database Setup" section useslistsandtodosas example table names (matching the existing publication SQL examples). Reviewers may want to consider whether a more generic example (e.g.your_table) would serve agents better, but that is out of scope for this sync.AGENTS.mdandSKILL.mdwere not modified — the routing entry forreferences/supabase-auth.mdin AGENTS.md already covers "Supabase" broadly and does not need updating for this change.Generated by Claude Code