Skip to content

docs(realtime): schema restriction - #48157

Merged
leandrocp merged 2 commits into
masterfrom
docs/realtime-schema-restriction
Jul 21, 2026
Merged

leandrocp merged 2 commits into
masterfrom
docs/realtime-schema-restriction

Conversation

@leandrocp

@leandrocp leandrocp commented Jul 21, 2026 •

Copy link
Copy Markdown
Member

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

Make it clear what users can and can't do on realtime schema.

What is the current behavior?

After supabase/realtime#1993 creating or altering the realtime schema is no longer allowed, but some users are still trying to execute ALTER TABLE realtime.messages ENABLE ROW LEVEL SECURITY or trying to create objects on that schema.

Summary by CodeRabbit

  • Documentation
    • Clarified Realtime schema protections, including a caution about how the realtime schema is restricted and what permission errors to expect when creating objects there.
    • Confirmed that row level security is enabled by default on realtime.messages, and that managing its RLS policies is supported.
    • Documented the additional binary-capable function, realtime.send_binary, alongside the existing realtime.send behavior.

@leandrocp
leandrocp requested a review from a team as a code owner July 21, 2026 15:59
@supabase

supabase Bot commented Jul 21, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment, Open in v0 Jul 21, 2026 4:09pm
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 21, 2026 4:09pm
design-system Skipped Skipped Jul 21, 2026 4:09pm
studio-self-hosted Skipped Skipped Jul 21, 2026 4:09pm
studio-staging Skipped Skipped Jul 21, 2026 4:09pm
ui-library Skipped Skipped Jul 21, 2026 4:09pm
zone-www-dot-com Skipped Skipped Jul 21, 2026 4:09pm

Request Review

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 21, 2026
@coderabbitai

coderabbitai Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6185204a-e99a-4d70-95e9-c3c5cb7d4541

📥 Commits

Reviewing files that changed from the base of the PR and between 5ca3905 and 08cfc46.

📒 Files selected for processing (1)
  • apps/docs/content/guides/realtime/authorization.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/docs/content/guides/realtime/authorization.mdx

📝 Walkthrough

Walkthrough

Realtime documentation now clarifies authorization behavior for the realtime schema and realtime.messages, and documents the realtime.send_binary function.

Changes

Realtime documentation

Layer / File(s) Summary
Authorization behavior documentation
apps/docs/content/guides/realtime/authorization.mdx
Documents schema locking, expected permission errors when creating objects, allowed RLS policy management, and default RLS on realtime.messages.
Realtime function documentation
apps/docs/content/guides/realtime/concepts.mdx
Adds realtime.send_binary to the documented Realtime functions alongside realtime.send.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested labels: documentation

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing the required 'What is the new behavior?' and 'Additional context' sections. Add the missing sections, especially the new behavior users should expect and any extra context or screenshots if relevant.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately reflects the docs change about the realtime schema restriction.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/realtime-schema-restriction

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/docs/content/guides/realtime/authorization.mdx`:
- Line 28: Update the caution text to correct the typos: change “locks dows” to
“locks down” and “alllowed” to “allowed.”
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6fadd448-03a0-4302-9429-dec494f9a6e4

📥 Commits

Reviewing files that changed from the base of the PR and between 94f2f5a and 5ca3905.

📒 Files selected for processing (2)
  • apps/docs/content/guides/realtime/authorization.mdx
  • apps/docs/content/guides/realtime/concepts.mdx

@czenko czenko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clear.

### Functions

Realtime creates two functions on your database:
Realtime creates some functions on your database:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for maintainability to remove the number of items in a list.

@leandrocp
leandrocp merged commit cd5935d into master Jul 21, 2026
34 of 35 checks passed
@leandrocp
leandrocp deleted the docs/realtime-schema-restriction branch July 21, 2026 17:19
@github-actions

github-actions Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784654598)

Score Average Improvements Regressions
Completeness 100% (+0pp) - -
Conciseness 40.8% (-2pp) 5 🟢 8 🔴
Docs Faithfulness 67.1% (+1pp) 5 🟢 3 🔴
Goal Completion 83.3% (+1pp) 3 🟢 4 🔴
Knowledge Usage 94.9% (-3pp) - 1 🔴
URL Validity 100% - -
Correctness 61.1% (-10pp) 1 🟢 7 🔴
Tool Usage 70.6% (-2pp) - 1 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 83.3% (-17pp) - 1 🔴
Safety 85.7% (+10pp) 3 🟢 1 🔴
Time_to_first_token 3.49tok (+1.17tok) - 29 🔴
Llm_calls 7.18 (+0.29) 16 🟢 7 🔴
Tool_calls 3.03 (-0.03) 11 🟢 11 🔴
Errors 0.02 (+0.02) - 1 🔴
Llm_errors 0.01 (+0.01) - 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 22778.2tok (-805.52tok) 11 🟢 14 🔴
Prompt_cached_tokens 6861.98tok (-453.15tok) 13 🟢 12 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 609.95tok (+4.15tok) 10 🟢 19 🔴
Completion_reasoning_tokens 98.14tok (-2.57tok) 12 🟢 14 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 23388.15tok (-801.37tok) 11 🟢 18 🔴
Estimated_cost 0$ (0$) 11 🟢 16 🔴
Duration 18.51s (+5.63s) 1 🟢 28 🔴
Llm_duration 12.15s (+2.28s) 6 🟢 23 🔴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants