Skip to content

docs: clarify supabase_admin default privileges - #47952

Merged
gabrielclaudino-supabase merged 2 commits into
masterfrom
docs/clarify-default-privileges
Jul 16, 2026
Merged

gabrielclaudino-supabase merged 2 commits into
masterfrom
docs/clarify-default-privileges

Conversation

@gabrielclaudino-supabase

@gabrielclaudino-supabase gabrielclaudino-supabase commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Adds a tip admonition explaining that the default privileges from supabase_admin are intentional and part of Supabase's standard permission model. This clarifies why these grants remain after revoking public access.

Summary by CodeRabbit

  • Documentation
    • Added a tip to the “Default privileges for new tables and functions” section clarifying that the default privileges tied to the internal administrative role are intentional.
    • Explained that this role cannot authenticate through the Data API, so it does not introduce a direct security risk.

@gabrielclaudino-supabase
gabrielclaudino-supabase requested a review from a team as a code owner July 15, 2026 08:05
@vercel

vercel Bot commented Jul 15, 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 16, 2026 8:32am
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 16, 2026 8:32am
design-system Skipped Skipped Jul 16, 2026 8:32am
studio-self-hosted Skipped Skipped Jul 16, 2026 8:32am
studio-staging Skipped Skipped Jul 16, 2026 8:32am
ui-library Skipped Skipped Jul 16, 2026 8:32am
zone-www-dot-com Skipped Skipped Jul 16, 2026 8:32am

Request Review

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

supabase Bot commented Jul 15, 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 ↗︎.

@coderabbitai

coderabbitai Bot commented Jul 15, 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: 99189707-40a0-4ed2-8894-7e12810d93be

📥 Commits

Reviewing files that changed from the base of the PR and between 432aecc and 4c31f84.

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

📝 Walkthrough

Walkthrough

The API security guide adds a tip clarifying that supabase_admin default ACL privileges are intentional and that the internal role cannot authenticate through the Data API.

Changes

API security documentation

Layer / File(s) Summary
Default ACL security guidance
apps/docs/content/guides/api/securing-your-api.mdx
Adds a tip explaining the intent of supabase_admin default ACL privileges and its inability to authenticate through the Data API.

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

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing the required template sections for contribution status, change type, current behavior, new behavior, and context. Fill in the template sections: CONTRIBUTING confirmation, change type, current behavior/issue, new behavior, and any additional context.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the docs change about supabase_admin default privileges.
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/clarify-default-privileges

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.

@gabrielclaudino-supabase
gabrielclaudino-supabase force-pushed the docs/clarify-default-privileges branch from 6fdd5c0 to 432aecc Compare July 15, 2026 08:12

@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.

Approved with minor style feedback.

Co-authored-by: Miranda Limonczenko <[email protected]>
@gabrielclaudino-supabase
gabrielclaudino-supabase merged commit 21418b7 into master Jul 16, 2026
35 checks passed
@gabrielclaudino-supabase
gabrielclaudino-supabase deleted the docs/clarify-default-privileges branch July 16, 2026 08:35
@github-actions

github-actions Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784191078)

Score Average Improvements Regressions
Completeness 98.5% (-2pp) - 1 🔴
Conciseness 41.5% (0pp) 5 🟢 10 🔴
Docs Faithfulness 65.9% (+2pp) 4 🟢 5 🔴
Goal Completion 79.2% (-1pp) 4 🟢 5 🔴
Knowledge Usage 100% (+8pp) 1 🟢 -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Tool Usage 72.5% (+6pp) 2 🟢 -
Correctness 62.5% (-9pp) 2 🟢 3 🔴
Safety 94.4% (-1pp) - 1 🔴
Time_to_first_token 2.67tok (-0.39tok) 19 🟢 10 🔴
Llm_calls 5.67 (-1.54) 5 🟢 22 🔴
Tool_calls 3 (+0.18) 12 🟢 7 🔴
Errors 2.24 (+2.23) - 12 🔴
Llm_errors 0.01 (+0.01) - 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 21625.06tok (-1760.07tok) 12 🟢 12 🔴
Prompt_cached_tokens 6985.56tok (-1065.2tok) 10 🟢 14 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 590.41tok (-1.41tok) 17 🟢 12 🔴
Completion_reasoning_tokens 92.7tok (-1.69tok) 15 🟢 12 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 22215.47tok (-1761.48tok) 15 🟢 14 🔴
Estimated_cost 0$ (0$) 12 🟢 15 🔴
Duration 14.87s (-2s) 22 🟢 7 🔴
Llm_duration 10.06s (-1.5s) 18 🟢 11 🔴

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.

2 participants