mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
create-pull-request/patch
26
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
1d269914f7 |
docs(mcp): document scoped OAuth access for MCP (#54156)
## Problem Static OAuth apps can now turn on scoped access (member permissions and project selection), and the hosted Supabase MCP server enforces those grants on connections and tool calls. The MCP docs still tell manual OAuth app users to grant write access to all scopes, and the OAuth integration guide doesn't cover how MCP behaves with scoped grants. ## Solution Add a new `MCP with scoped OAuth access` page under the Supabase OAuth Integration section, building on #53658. It covers which OAuth client types use scoped grants (static apps with scoped access on vs. off, and dynamically registered clients unchanged), account mode vs. project mode enforcement (including `list_projects` discovery, `list_organizations` returning empty on specific-project grants, parent-project grants for preview branches, and uniform `403` errors at connect time), read-only SQL when a grant has `database:read` without `database:write`, and missing-scope vs. live permission denials with their recovery steps. Update the MCP page's Manual OAuth app note, Configuration options examples, and Recommendations to separate URL project targeting from credential-level scoping, link to the new page from `scoped-access.mdx` and `build-a-supabase-oauth-integration.mdx`, and wire it into both navigation menus. ## Verification - [MCP with scoped OAuth access preview](https://docs-git-pedrorodrigues-ai-1343-document-mcp-sc-ec523d-supabase.vercel.app/docs/guides/integrations/build-a-supabase-oauth-integration/mcp-scoped-access) - [MCP docs preview](https://docs-git-pedrorodrigues-ai-1343-document-mcp-sc-ec523d-supabase.vercel.app/docs/guides/ai-tools/mcp#manual-oauth-app) Closes AI-1343 |
||
|
|
3f0edcecd1 |
docs: scoped oauth apps [CTRL-2123] (#53658)
## Problem Scoped OAuth Apps M1 adds two settings to OAuth apps: **Use the permissions of the person who connects** and **Ask for specific projects**. Together they let any organization member authorize an app with their own role, and let people limit an app to the projects they choose. The settings are in private beta. The current OAuth docs assume an Owner or Administrator authorizes an app for the whole organization, and they describe tokens as having full Management API access. App authors have no guidance on what changes when they turn on either setting. Organization admins have nothing on reviewing or revoking member grants. Linear: [[CTRL-2123]](https://linear.app/supabase/project/oauth-app-granular-permissions-scoped-oauth-apps-23de6daf1501) ## Solution Four new guides under `build-a-supabase-oauth-integration/`, plus edits that weave scoped access into the existing Build an Integration pages and the docs nav. | Page | Type | For | | --- | --- | --- | | Scoped access for OAuth apps | Explainer | App authors deciding whether to turn the settings on | | Update your app for scoped access | Guide | App authors changing their code, including which roles can authorize each scope | | Test scoped access on a staging app | Guide | App authors testing before production | | Manage OAuth app access | Guide | Organization admins and members reviewing and revoking grants | Edits to existing pages: - **Build a Supabase OAuth integration:** - The intro no longer says tokens have "full access", and points to scoped access. - The authorize parameters add `project_ref`. - The callback section covers a canceled authorization (`error=access_denied` and `state`) and explains `scope` and `project_refs`, including `project_refs` being `null` for an all-projects grant. - The refresh section notes that a member leaving ends their grant. - **OAuth scopes:** a new "Scopes and member roles" section links to the role table. - **Navigation:** the four pages are added to "Supabase OAuth Integration" after "OAuth scopes" as **Scoped access**, **Update your app**, **Test on staging** and **Manage app access**. The entries are added in both nav files: `features/IaNav/option1/integrations.ts` and `components/Navigation/NavigationMenu/NavigationMenu.constants.ts`. Key choices: - **Explainer separate from the guides.** The overview has no instructions, so authors can decide whether to turn the settings on before reading the code changes. - **Role table in the update guide.** It's derived from the scope and role mapping, and sits next to the advice it supports. The OAuth scopes page links to it rather than duplicating it. - **Partial grants are described as not available in the dashboard.** The pages point authors to the "Handle scopes missing from the grant" section instead of naming an API field. - **No rollout dates.** Dates belong in the changelog and partner emails, per `03-page-structure.md`. The pages state private beta status and the support-ticket route only for the initial TPP rollout. ## Still to be added - **No API reference.** `project_ref` and `project_refs` come from the Management API OpenAPI spec, so field-level detail is out of scope here. ## Preview links See PR preview Head to `docs/guides/integrations/build-a-supabase-oauth-integration` ### Self-review Reviewed with `review-the-docs` (local self-review) before opening. - **Passed:** voice, structure, frontmatter, internal links, anchors and nav. Code snippets run with stub values. - **Formatting:** Prettier check passes on all changed files. A follow-up commit fixed table alignment in three new guides. - **Edits to existing pages:** tested against the live text of both pages. - **Still to run:** `pnpm build:guides-markdown`, and the `WORD_LIST.md` two-pass check, including "re-authorize" and "turn on" vs "select". ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Joshen Lim <joshenlimek@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> |
||
|
|
30a1b38da0 |
feat(studio): rename temporary access to database token access (#54282)
## Problem The database access preview still uses “Temporary access” across its settings and member rules. ## Solution Use “Database token access” for the feature and “Member access” for member rules. Update the preview, settings, dialogs, feedback, member status messages and docs together. Move the guide to `/guides/platform/token-access`, permanently redirect the old URL, and preserve existing section anchors. ## Review instructions 1. Open [the Studio preview](https://studio-staging-git-dnywh-database-token-access-naming-supabase.vercel.app), then Feature previews and find **Database token access**. Enable the preview for a supported project, then open [Database Settings](https://studio-staging-git-dnywh-database-token-access-naming-supabase.vercel.app/project/_/database/settings). 2. Check the **Database token access** heading, **Allow token access** switch and **Member access** table. Open **Add rule** and an existing rule to check the sheet titles. Open a rule’s delete confirmation and cancel it. 3. With an assigned role, check the access status above the member table. As a member without management permission, check the access notice uses the same feature name. 4. Open the [database token access guide in the docs preview](https://docs-git-dnywh-database-token-access-naming-supabase.vercel.app/docs/guides/platform/token-access). Check the guide and navigation use the new name, the dashboard instructions match Studio, and the existing section links from the member guide still work. Open `/docs/guides/platform/temporary-access` and its `.md` variant to check they permanently redirect to the new URLs. | Before | After | | --- | --- | | <img width="726" height="367" alt="CleanShot 2026-11-30 at 16 06 00" src="https://github.com/user-attachments/assets/be351f0c-d578-4289-8785-5c4e69a254a7" /> | <img width="729" height="374" alt="CleanShot 2026-11-30 at 16 05 38" src="https://github.com/user-attachments/assets/f02b470d-ef1a-4b6c-bdbb-20fe10b847c6" /> | |
||
|
|
45b5235705 |
docs: pass Postgres Changes eval (#54332)
Closes DOCS-1815 ## Problem The Postgres Changes page is failing. The reason is this: The Postgres Changes quick start sets up the `anon` role only. A reader who secures the table for signed-in users gets no events and no error. The publication step and replica identity sit in separate sections, so a reader can miss either. I have verified that this change fixes the issue in the Eval. This additionally breaks out many unused Eval lines into another topic. ## Solution - **Prepare a table:** a new section that lists the three requirements, how to set each, and what a reader sees without it. - **Signed-in users:** a policy that sends each user only their own rows. - **Filters page:** the operator reference moves to its own page. `#available-filters` still resolves. - **Corrections:** the publication step names `todos`, and the old record section says what `UPDATE` and `DELETE` carry. - **Style and structure:** imperative headings, a description, and Next steps. | Site | Live | Preview | Search for | | ---- | ---- | ------- | ---------- | | Docs | [/docs/guides/realtime/postgres-changes](https://supabase.com/docs/guides/realtime/postgres-changes) | [/docs/guides/realtime/postgres-changes](https://docs-git-docs-realtime-table-requirements-supabase.vercel.app/docs/guides/realtime/postgres-changes) | Prepare a table | | Docs | New page | [/docs/guides/realtime/postgres-changes-filters](https://docs-git-docs-realtime-table-requirements-supabase.vercel.app/docs/guides/realtime/postgres-changes-filters) | Combining filters with `AND` | ## Manual testing 1. Open the preview of `/docs/guides/realtime/postgres-changes` and go to **Prepare a table**. The table lists three requirements. 2. Open `/docs/guides/realtime/postgres-changes#receiving-old-records`. The page lands on **Receive old records**. 3. In the sidebar, click **Postgres Changes filters**. The page lists all 13 operators. |
||
|
|
58b468916c |
docs(auth): Solve eval for Anonymous sign-in page (#53489)
Closes DOCS-1676 ## Problem The drafted Eval for this guide has one failing check. This PR fixes that check and also runs the `edit-the-docs` and `test-the-docs` skill to improve the page as a whole. The Anonymous Sign-Ins guide tells readers to check the `is_anonymous` JWT claim in RLS policies. When a guest links an email, phone, or OAuth identity, the user becomes permanent at once, but the token the client holds keeps `is_anonymous: true` until it refreshes. A policy on the claim refuses that new customer with `42501` until then. ## What changed - **Access control:** a caution on the stale claim, and a policy that reads `auth.users.is_anonymous` through a `security definer` function in a non-exposed schema with `search_path = ''`. - **Convert an anonymous user:** a "Refresh the session after linking" step with `refreshSession()`. - **Whole-page edit**, one commit per change type: - Style: wording, word list, sentence-case and imperative headings, no time-anchored text. - Structure (moves only): Access control before Convert, identity conflicts under Convert, the Next.js caution under Sign in. - Technical: the `anon` key uses the `anon` role, not `anonymous`; the opening caution no longer says to check the JWT claim; the existing-account sample throws instead of a top-level `return`. Renamed headings with no inbound links: Resolving identity conflicts, Linking an anonymous user to an existing account, Automatic cleanup. `#access-control` (Studio) and `#link-an-email--phone-identity` are unchanged. ## Eval on the preview `build-docs-016-auth-anonymous` with `REFERENCE` pointed at the preview, 3 runs ([workflow run](https://github.com/supabase/evals/actions/runs/43983385855)). | Run | Score | Guest who just made an account can post a review | Failed check | | --- | --- | --- | --- | | Baseline (published page) | 9/10 in all 3 runs | Fail in all 3 | Guest who just made an account can post a review | | 1 | 10/10 | Pass | None | | 2 | 9/10 | Pass | Agent read the guide | | 3 | 9/10 | Pass | Agent read the guide | All 3 runs fetched the preview and wrote the `security definer` policy. The guide-read check only counts fetches from `supabase.com`, so it can't pass on a preview. Run 1 passed it because that agent also opened the published page. ## Manual testing 1. Open the [Anonymous sign-ins preview](https://docs-git-docs-anonymous-claim-refresh-supabase.vercel.app/docs/guides/auth/auth-anonymous). 2. Check the new caution and function example under **Access control**, and the new **Refresh the session after linking** section. 3. Click the anchor links between the two sections and to the RLS guide. |
||
|
|
51fa9b8e8d |
docs: mark C# and Kotlin SDKs as official (#54429)
## Problem The C# and Kotlin client libraries are now official Supabase SDKs. Several places in the docs and README still call them community libraries. ## Solution - **Client libraries page**: move Kotlin from "Community libraries" to "Official libraries". C# was already listed as official. - **Kotlin reference intros (v1, v2, v3)**: replace the "not an official library" note with a note that supabase-kt is official. The thanks to the original maintainer and contributors stays. - **Docs nav**: drop the `community: true` flag on the Kotlin entry in both nav configs. - **Getting Started stepper**: remove the "Community SDK" badge and the `isCommunity` field, which only Kotlin used. - **README**: move the C# and Kotlin rows into the Official section. - Point supabase-kt links in the changed spots at `supabase/supabase-kt`. Not changed: - Links to repos still in the `supabase-community` org (for example `postgrest-csharp` and `gotrue-csharp`) and old release-note issue links. - `guides/getting-started/features.mdx`. It redirects to `/features`, so the docs app never serves it. - The v4 Kotlin note that credits the community for creating supabase-kt. It's a thank-you, not a claim that the SDK is unofficial. ## Review category (docs PRs only) - [ ] Critical: needs a review as soon as possible - [ ] Urgent: the feature ships soon, or it's blocking something else - [x] Moderate: good to have soon, not urgent - [ ] Low: get to it when you can ## Review instructions 1. Open `/docs/guides/api/rest/client-libs` and check that Kotlin is in the official table. 2. Open `/docs/reference/kotlin/introduction` and check that the note no longer says the library is unofficial. 3. Open the docs nav reference menu and check that Kotlin has no community marker. 4. Open the Getting Started page, pick the Kotlin quickstart, and check that no "Community SDK" badge shows. 5. Check the README client libraries table. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
b53403e1d7 |
docs(integrations): add Build a Supabase integration guide (#54088)
## Problem The steps to build a Supabase integration are spread across five pages: the Partner Catalog page, creating an OAuth app, OAuth scopes, the partner install flow, and the Management API reference. A partner has no single page that says where to start or what to do next. Linear: DOCS-1720. ## Solution Add one guide, **Build a Supabase integration**, as the first item under **Build Your Own** in the integrations sidebar. It does not repeat the detail on the other pages. It links to them. - **The path at a glance:** two short paths. Partner Catalog: apply, build a landing page, publish. Integration: apply, build the OAuth flow, build the integration, publish. - **Apply to the Partners program**, then **Choose: Partner Catalog or Integration**, a comparison table with wireframe images (SVG, light and dark). - **Partner Catalog: Build your landing page** and **Integration** (build the OAuth flow, build the integration), each with "Build it" cards that link to the top of the existing page. - **Publish:** ask the partner manager to list the partner on the Partner Catalog or the Integrations page. - Removes the redirect from `/docs/guides/integrations/build-a-supabase-integration` to the OAuth guide, so the new page is reachable at that URL. The old `/oauth-scopes` redirect stays. - The progression and card data is in `apps/docs/data/content-listings/build-a-supabase-integration.data.ts`. Not in this PR: edits to the existing pages. The cards link to page tops, so nothing here depends on those edits. ## Please check - The five progression icons are placeholders from the built-in set. New icons are coming. - The table images sit inside table cells with a fixed width. I checked them in the dev server only. - I rendered the page with `pnpm dev` and ran `oxfmt --check` on the changed files. I did not run the docs tests or `build:guides-markdown`. - Two details are unverified: how partners hand their public key to Supabase for a signed redirect, and partner status callbacks. The guide does not describe either. - The Dashboard Integrations tab wireframe is a drawing, not a screenshot. ## Preview links | Site | Live | Preview | Search for | | ---- | ---- | ------- | ---------- | | Docs | [/docs/guides/integrations/build-a-supabase-integration](https://supabase.com/docs/guides/integrations/build-a-supabase-integration) (redirects to the OAuth guide until this merges) | Vercel bot comment | `The path at a glance` | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: John Stokvis <345546350+stokvis-at-supabase@users.noreply.github.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: John Stokvis <johnstokvis@Johns-MacBook-Pro.local> |
||
|
|
02e61b9cda |
fix(docs): layout v2 reference fixtures (#54233)
## Problem - after #53761 the option-1 sidebar reference list has no row for server, middleware and tanstack db - list marks no row as current on a library page, for example on `/reference/javascript/select` - management api intro shows its endpoint list in the right rail and its toc in an extra column inside the content ## Solution - adds the server, middleware and tanstack db rows with the new and experimental badges of the current nav - fixes the reference list so it marks the library of the current page - changes the management api to open as its own sidebar level with the endpoint list on the left - moves the toc, the links and the feedback of the management api intro into the right rail + removes the rail on endpoint pages - adds the "on this page" menu to the management api intro below `lg` - adds the reference library column to the option-1 nav size allowlist because it is a list of peer libraries | before | after | | -------|------| | <img width="2880" height="1800" alt="image" src="https://github.com/user-attachments/assets/3a216c0b-31c1-4629-82a1-0590c7e639ae" /> | <img width="2880" height="1800" alt="image" src="https://github.com/user-attachments/assets/c53afc0e-8d15-45d7-9dc8-320443761ed2" /> | | before | after | | -------|------| | <img width="2880" height="1800" alt="image" src="https://github.com/user-attachments/assets/5dc79bb9-b160-44e6-a3c5-39182fb71d4f" /> | <img width="2880" height="1800" alt="image" src="https://github.com/user-attachments/assets/9e0dff3c-5261-4c70-b1f1-f74314231a08" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open [/docs/reference?docs-ia-mvp-v1=option-1](https://docs-ivb0vb1qq-supabase.vercel.app/docs/reference?docs-ia-mvp-v1=option-1) and do all steps in the same tab because the flag override lasts only for the tab 2. make sure that the reference list shows server and middleware 3. open [/docs/reference/javascript/select](https://docs-ivb0vb1qq-supabase.vercel.app/docs/reference/javascript/select) and make sure that the sidebar marks only the javascript row 4. click `Management API` in the sidebar and make sure that the sidebar shows `< Management API` with the endpoint list 5. make sure that the right rail shows the toc, the additional links and the feedback buttons 6. open [/docs/guides/database/overview](https://docs-ivb0vb1qq-supabase.vercel.app/docs/guides/database/overview) and make sure that the sidebar and the right rail did not change ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
450939ce86 |
docs: fix the pages the Option 1 nav friction logs got stuck on (#53881)
Part of DOCS-1739 ## Problem People who tried the Option 1 navigation got stuck on these pages: - **Slow queries:** readers looked for a way to debug a slow query and didn't find the guide in the nav. Its title, "Log slow and failing queries", names the mechanism, not the task. - **JWT:** The Supabase way to build says Auth "issues a signed JWT" without saying what a JWT is. - **Docker self-hosting:** the guide opens with its own contents list, which repeats the table of contents beside it. - **Launch readiness:** readers who opened Deploy to production to ask "am I ready to launch?" found a page about branching and environments. Neither checklist is linked from it. ## Solution - **Slow-query title.** The title becomes "Find slow and failing queries", and the nav label in both navigations becomes "Find slow queries". The description still says "log slow queries", so search keeps matching. Five inbound links now use the new title. - **JWT link.** The first mention reads "JSON Web Token (JWT)" and links to the JWT guide. - **Launch intro.** Two sentences near the top of Deploy to production link the production checklist and the production security checklist. - **Docker contents list.** The in-page list is gone. Nothing linked to its anchor. ## Manual testing 1. Open [the slow-query guide on the preview](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/observability/log-slow-queries). The title reads "Find slow and failing queries", and the sidebar entry reads "Find slow queries". 2. Open [The Supabase way to build](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/getting-started/the-supabase-way-to-build). Under Auth, "JSON Web Token (JWT)" links to the JWT guide. 3. Open [Deployment and branching](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/deployment). The third paragraph links both production checklists. 4. Open [Self-hosting with Docker](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/self-hosting/docker). The page goes from the intro straight to Before you begin, with no Contents list. |
||
|
|
64051f3977 |
docs: move the Option 1 nav pages readers couldn't find (#53882)
Part of DOCS-1738 ## Problem People who tried the Option 1 navigation couldn't find some pages in the nav: - **Preview branches on Vercel:** five of eight readers struggled. The item sat two rows below Vercel Marketplace and started with "Preview", so a scan for "Vercel" stopped too early. - **Rotate a leaked API key:** readers looked under Security and compliance. The nav listed it under Start, inside API keys. - **Pause a paid-plan project:** the page sat inside organization transfers. - **Start:** API keys came before the quickstarts and tutorials that new readers come to Start for. - **Realtime:** readers expected it next to Database, Auth and Storage, in the home page's order. The nav put it inside "REST, GraphQL and Realtime". - **Auth sign-in providers:** about 20 OAuth providers filled the Auth sidebar, above the other sign-in methods. - **Observability:** Logs and monitoring kept the layout from before the Observability regroup in #50074. It also left out the Observability overview and Logs in the CLI. ## Solution - **Vercel.** The item becomes "Vercel preview branches" and sits next to Vercel Marketplace. The Marketplace page and Deploy to production link to it. Those two page edits ship to all readers, not only Option 1. - **Rotate a leaked API key.** The item moves to Security and compliance. The API keys page already links to it. - **Paid-plan pausing.** The item moves next to Free project pausing. - **Start order.** Quickstarts and tutorials come first. API keys and the legacy-key migration follow. - **Realtime.** Realtime gets its own sidebar and sits after Storage in Products. The APIs sidebar becomes "REST and GraphQL APIs". Products now has 8 items, one over the proposal's 7-item rule, by decision. - **Observability groups.** Logs and monitoring uses today's task groups: Read project data, Detect and diagnose, Agent prompts, and Configure and export. It lists the overview and Logs in the CLI again. The label stays "Logs and monitoring". Metrics API and Platform webhooks keep their own groups. - **Auth SDK entries.** "Server SDK" and "Middleware SDK" become "Server SDK reference" and "Middleware SDK reference", so readers know the link leaves the guides. The Self-hosting reference entries already use that pattern. - **Sign-in options.** "Social sign-in (OAuth)" and "Other sign-in methods" merge into one "Sign-in options" group. The providers sit in a collapsible "Social sign-in (OAuth)" group inside it. The level-size allowlist follows the new path. ## Manual testing 1. Open [Broadcast with Option 1 on the preview](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/realtime/broadcast?docs-ia-mvp-v1=option-1). The sidebar header reads "Realtime", with a button back to Products. 2. Open [Vercel Marketplace with Option 1](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/integrations/vercel-marketplace?docs-ia-mvp-v1=option-1). The sidebar lists "Vercel preview branches" under Vercel Marketplace, and the page links to Preview branches on Vercel. 3. Open [Logs in the CLI with Option 1](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/observability/cli-logs?docs-ia-mvp-v1=option-1). The sidebar lists it under Logs and monitoring > Read project data. 4. Run `pnpm run -F docs test:local:unwatch features/IaNav components/Navigation`. Expect all tests to pass. 5. Open [Vercel Marketplace without the flag](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/integrations/vercel-marketplace). The page links to Preview branches on Vercel. |
||
|
|
7636e18f8d |
docs: shorten and sentence-case the Option 1 sidebar labels (#53880)
Part of DOCS-1737 ## Problem People who tried the Option 1 navigation reported labels that wrap onto two lines, such as "Architecture, limits and pricing". The old 35-character limit let that label through at 32 characters. They also reported labels that aren't in sentence case, such as "Framework Quickstarts" and "ORM Quickstarts". The docs style guide asks for sentence case. ## Solution - **28-character limit, enforced.** A new test in `option1.test.ts` fails on any Option 1 sidebar label over 28 characters. 97 labels were over the limit. They're shortened. - **Sentence case.** About 120 more labels are recased. Proper nouns and product feature names keep their capitals, such as Edge Functions, Row Level Security and Auth Hooks. "Self-Hosting" becomes "Self-hosting" in the top nav and the sidebar title. - **Parallel Start labels.** "Web app demos" becomes "Web app tutorials", to match "Mobile tutorials". - **Build becomes Products.** The tree test ran each candidate label against the shipped Option 1 tree, with 93 tasks and 3 runs each. Products raised direct success from 51% to 59%, and first clicks on the right section from 78% to 88%. - **Test fixtures.** `DocsSidebarNav.test.tsx` and the level-size allowlist reference labels by name, so they change too. ## Manual testing 1. Open [Getting started with Option 1 on the preview](https://docs-git-docs-nav-label-casing-supabase.vercel.app/docs/guides/getting-started?docs-ia-mvp-v1=option-1). The sidebar shows "Framework quickstarts" and "Web app tutorials". 2. Run `pnpm run -F docs test:local:unwatch features/IaNav components/Navigation`. Expect all tests to pass. |
||
|
|
041c363873 |
fix(docs): layout v2 fixtures (#53761)
## Problem - keyboard users hit focus problems in the option-1 docs layout because the on this page rail clips focus rings and Firefox adds an unlabeled tab stop on the sidebar scroll area - skip link to the content does not render - reference sits in a dropdown next to the logo which doesn't feel optimal - header breadcrumbs repeat the sidebar section with group crumbs that never link ## Solution - fixes the focus rings and tab stops in the sidebar, the rails and the footers so each ring is inset and is not clipped - changes the header breadcrumbs to show the parent and the page + links a group crumb to its overview page when it has one - moves reference into the sidebar section list with a back button + removes the sections dropdown and points the logo to the docs home - moves the knowledge base to the top of the sidebar footer and removes the changelog link - removes the hover backgrounds and color transitions from the sidebar and rail rows + fades the sidebar list under the back button on scroll - aligns the home agent prompt with the second framework column and changes the footer separator to a square <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> 1. visit [/docs/guides/database/replication/pipelines?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-layout-v2-nits-supabase.vercel.app/docs/guides/database/replication/pipelines?docs-ia-mvp-v1=option-1) 2. reload the page and press Tab once to make sure that the first stop is the skip link to the content 3. press Tab through the sidebar, the on this page rail and the page footer to make sure that each ring is inset and round and is not clipped 4. click the back button in the sidebar until the section list shows, then click `Reference` to make sure that it opens the reference list with a back button ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
1eb8684d60 |
docs: rewrite the project transfers guide (#53540)
## Problem Rewrite apps/docs/content/guides/platform/project-transfer.mdx so readers can answer their own transfer questions. Support sees a steady stream of tickets on project transfers, and most of the questions aren’t answered by the current page. Preview: https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer ## Solution The guide is seven pages. The four task pages follow the [how-to guide template](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/templates/how-to-guide.md), applied the way #53650 applies it. The other three have no template yet, so they follow the document types in `03-page-structure.md`. <img width="275" height="239" alt="CleanShot 2026-11-20 at 14 32 51" src="https://github.com/user-attachments/assets/bdbf7d39-df13-4418-a5c3-32a4ae1b9e3d" /> | Page | Type | What it holds | | ------------------------------------------------ | --------------- | --------------------------------------------------------------------------------------------------- | | `project-transfer.mdx` | How-to | Transfer a project with the Dashboard or the Management API, then verify it | | `project-transfer/transfer-ownership.mdx` | How-to | Move a project to another person's organization, or hand over the whole organization | | `project-transfer/vercel-marketplace.mdx` | How-to | Move projects out of an organization managed through the Vercel Marketplace | | `project-transfer/pause-project.mdx` | How-to | Pause a project from the Pro Plan or Team Plan by transferring it to a Free Plan organization first | | `project-transfer/requirements.mdx` | Reference | Every check a transfer runs, what blocks it, and partner-managed projects | | `project-transfer/what-changes.mdx` | Explainer | What stays the same, downtime, billing, access and tokens, notifications, what the Free Plan removes | | `project-transfer/troubleshooting.mdx` | Troubleshooting | Each Dashboard and API message with its cause and fix | Corrections to existing claims (downtime, log drains, target organization role, free project limit). New content - Requirements checklist, including SSO accounts, usage restrictions between Free Plan organizations, and overdue invoices - Dashboard steps and a Management API path (/v2/projects/{ref}/transfers and /previews) - What stays the same (data, ref, URL, keys, connection strings) and when apps need an update - Downtime per direction, billing, access tokens, timing, notifications, and audit log - What a move to the Free Plan removes, and how to pause a project from the Pro Plan or above - Handing a project or an organization to another person, lost access to the Owner account - Vercel Marketplace, AWS Marketplace, Stripe Projects, and a pointer for Lovable backends - Troubleshooting tables that quote each Dashboard message with its cause and fix - New updated screenshots The six pages under `project-transfer/` are new, so they have no live version. | Site | Live | Preview | Search for | | ---- | -------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- | | Docs | [Project Transfers](https://supabase.com/docs/guides/platform/project-transfer) | [Transfer a project](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer) | `Transfer a project` | | Docs | Not on `master` | [Project transfer requirements](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/requirements) | `Account requirements` | | Docs | Not on `master` | [Changes after a project transfer](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/what-changes) | `What stays the same` | | Docs | Not on `master` | [Transfer project ownership](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/transfer-ownership) | `Hand over the whole organization` | | Docs | Not on `master` | [Transfer a Vercel-managed project](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/vercel-marketplace) | `Vercel-managed organization` | | Docs | Not on `master` | [Pause a Pro or Team Plan project](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/pause-project) | `Pause the project` | | Docs | Not on `master` | [Troubleshoot a project transfer](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/troubleshooting) | `Role and membership messages` | ## Review instructions Provide a clear numbered procedure that the PR reviewer can walk through. **Note:** The changes were made based on all support tickets related to project transfers; all statements were cross-checked in the code and tested on a hosted project. 1. Please check if the structure of the pages meets docs standards. 2. Please confirm "Project transfers" is a valid title; let me know if it should be capitalized. 3. Please confirm if the table with error messages fits into this documentation under troubleshooting ([preview](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer?queryGroups=method&method=dashboard#troubleshooting)). Done this way so that customers can find the full message in the search. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
f80095cd92 | docs(self-hosted): add a guide for configuring the OAuth 2.1 server (#53544) | ||
|
|
51c07ef6b2 |
feat(docs): ai layout sidebar tree (#52972)
## Problem - current sidebar shows only the page's product, so a reader opens the top bar menus to reach another product - redesign moves the global nav into the sidebar, so the sidebar needs levels and a way back up ## Solution - adds a sidebar that opens one level at a time: the docs sections, then a section's products, then a product's pages - adds a header row with a back link to the level above, and a home link at the top level - changes a product row to open the product overview and show its pages at once - adds icons to the top level sections in the current nav and in the option-1 nav - changes the new page tree to show a background on hover only, and text color on the current page - adds an overview row to the start section, which only the new layout shows #52971 must merge first, because the sidebar uses the `layout-v2:` css variant <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. run `pnpm --filter docs exec vitest run components/Navigation/NavigationMenu`, and make sure that all tests pass 2. read `DocsSidebarNav.test.tsx`, and make sure that the tests cover the back link, the home link and the product link to its overview 3. the layout mounts the sidebar in the stack top, so check the sidebar on the preview of that pr ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
b1f49edc3b |
docs: revise Option 1 placements from the tree test results (#52969)
Closes DOCS-1473 Closes DOCS-1578 ## Problem The [tree test results on the live trees](https://app.notion.com/p/40e5004b775f811b91bed8f7c76ac7f6) found four tasks where agents look in a different place from where Option 1 puts the page: - **Shared responsibility:** agents look in Security and compliance. The page is under Deploy to production, and every arm failed the task. - **RLS testing:** agents look in Local Development and CLI. The page is under Database. - **Project transfer:** with two levels visible, agents open Team, because the task is about organizations. - **Leaked API key:** with two levels visible, agents see Start's "API keys" and choose it. The rotation page sits a level deeper, under Security and compliance. ## Solution Revises four Option 1 placements and labels. Option 1 only. Today's nav, page content, and URLs don't change. No subheads. | Task | Change | | --- | --- | | Shared responsibility | Moved from Deploy to production to Security and compliance › Compliance. The `docs:compliance` flag moves to the SOC 2, HIPAA, and GDPR items so the page shows in every build. | | RLS testing | New Testing group under Local Development and CLI, with Overview, Test RLS policies with pgTAP, Testing your database, and pgTAP advanced guide. Database's Testing group goes away. | | Project transfer | "Projects, compute and scaling" becomes "Projects, organizations and compute", in the sidebar and the top nav. "Transfer Project" becomes "Transfer to another organization". | | Leaked API key | Start's "API keys and key rotation" becomes an "API keys" group with two pages: API keys, and Rotate a leaked API key. The rotation page moves out of Security and compliance. | Each page keeps one home. Every level stays at 7 items or fewer, 5 levels at most, and labels at 35 characters or fewer. In the tree test on this preview, all four tasks now pass with no wrong turns at two levels. Set-aside tasks score 83% against Option 1's 71% at two levels, and the same within noise at one level. ## Preview links | Site | Live | Preview | Search for | | --- | --- | --- | --- | | Docs | Not live until supabase/supabase#52735 merges | [/docs/nav-tree.json](https://docs-git-docs-ia-option-1-placement-revisions-supabase.vercel.app/docs/nav-tree.json?docs-ia-mvp-v1=option-1) | Rotate a leaked API key | ## Additional context - **The leaked-key move trades views.** With two levels visible, as in the top nav dropdown, agents choose the rotation page in 3 of 3 runs, up from 0. With one level at a time, as on mobile, they look in Security and compliance first and find it in 0 of 3, down from 3. A follow-up link from the Security and compliance hub to the rotation page would help one-level readers without listing the page twice. - **Set-aside tasks:** the shared responsibility and project transfer cases are set-aside tasks. A gain on either can't count as unseen-task evidence. Only a fresh holdout set can confirm it. ## Review instructions 1. Open `/docs/nav-tree.json?docs-ia-mvp-v1=option-1` on the preview. Check that each moved page appears once, under its new parent. 2. Open `/docs/nav-tree.json` without the parameter. Check that it matches supabase/supabase#52737's. 3. Open `/docs?docs-ia-mvp-v1=option-1` on the preview and hover Start. Check that API keys shows as a group with Rotate a leaked API key inside. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
ab54becc60 |
docs(storage): move url signing keys to dedicated page (#52954)
## Problem Details about URL signing keys are embedded in the downloads page, but it is a broader security related topic that applies to both uploads and downloads. There is no signed URL guidance in the Standard Upload section ## Solution - Move details about URL signing keys to a dedicated page under the storage>security tab (content mostly the same) - Replace URL signing key details in downloads page with a brief blurb and a link (keep header in case it has been hot linked) - Add link to URL signing key details to resumable upload > signed url section - Add signed URL details to standard upload page, and similarly link to url signing key page - Update link in URL signing key page of dashboard to point to new dedicated URL Signing key page ## Additional context Follow up to: https://github.com/supabase/supabase/pull/52522 --------- Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> |
||
|
|
5a1e59eb2e |
docs: add Claude as ID-JAG issuer for MCP Enterprise-Managed Auth (#52021)
## Problem Anthropic now lets Claude issue the ID-JAG for enterprise-managed MCP auth when a customer's identity provider can't. No Supabase code change is needed: the platform already validates ID-JAGs against whichever issuer URL the organization configures. The page called the feature "enterprise-managed authentication." It implements the MCP spec's Enterprise-Managed Authorization extension and is built on an RFC 7523 authorization grant. Authentication stays with the IdP. The Studio field description had the same wrong word. ## Solution **New section, "Using Claude as the ID-JAG issuer."** Covers the Claude-side steps (Organization settings > Connectors > Supabase > Managed authorization > Set up, copy the Issuer URL, leave Tenant ID empty), the Supabase-side step (same ID-JAG Issuer field), and the connection test. Two constraints were verified against our platform code: one issuer per SSO provider so the Claude URL replaces the IdP URL and members need an SSO identity in Supabase. The third, that a Claude-issued ID-JAG attests Claude-org membership rather than an IdP session, comes from Anthropic's partner guide. **Rename to "enterprise-managed authorization."** Page title, headings, body, SSO guide section, nav label (title case, matching sibling entries), and the Studio description. The slug moves to `enterprise-mcp-authorization` with a permanent redirect from the old path in `apps/www/lib/redirects.js`. The Studio "Learn more" link and the two published blog posts that linked the page point at the new slug directly. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: Ana <30495040+ana1337x@users.noreply.github.com> Co-authored-by: Ana <ana1337x@users.noreply.github.com> |
||
|
|
fca0f99354 |
docs: move the explain() guide to guides/api/query-plans (#52471)
Closes DOCS-1496 ## Problem The Debugging performance issues page is moved to the Data API as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). The [docs tree tests](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests) in supabase/evals drove the rename. Each test gives an agent a developer goal and only the navigation labels, with no page content and no search. - **The task:** [one test](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests/investigate-tree-036-client-call-execution-plan) asks how to see the plan Postgres uses for a slow supabase-js `.from('orders').select()` call. Its answer is this page. - **Today's label:** the page sits under Database as "Debugging performance issues". That label names a symptom many pages share, not the tool the page teaches. - **The change:** round 4 of the tests split the `explain()` content into its own topic, labeled "Query plans with explain()" and placed in Data API, Tools, next to the other client tools. Option 1 fixed every task its new topics targeted. - **Why the whole page moves:** `explain()` is the only thing the page covers, so a split would leave an empty source. The page takes the topic's label as its title. ## Solution - **Move, not split:** the whole page covers `explain()`, so a split would leave an empty source. The page moves to `guides/api/query-plans`, and the old URL redirects there. The existing `api/rest/debugging-performance` redirect now points straight to the new URL, so there's no chain. - **Anchors:** the four H2s keep their anchors, so the client reference link to `#enabling-explain` resolves through the redirect. The two H3s, Example data and Expected response, are gone. Nothing links to them. - **Navigation:** both entries in today's navigation point to the new URL, with the label "Query plans with explain()". In Option 1, the Data API, Tools entry points to the new page, and the Database entry is gone, since it would list the page twice. This was the last Option 1 topic that linked to a section of its source page, so the test that tracked those topics is removed. - **Inbound link:** Realtime reports links to the new URL. - **Cross-links:** the page links Query Performance for finding slow queries, Query optimization for plans of SQL you run yourself, Row Level Security performance for slow policies, and the `explain()` client reference. Query optimization and Row Level Security performance link back to it. - **Guide shape:** a value-statement opener with the reason `explain()` is off by default, and the sample table before the query that reads it. The SQL samples have no comments, and the `format` option has an example. Production readers are told to set up the filter before enabling, and the options paragraph warns that `analyze` on a write changes data. - **Row Level Security performance:** the caution about restricting plans now sits above the step that enables them. - **Sample fix:** `pgrst.db_pre_request` holds one function, so the production step now checks for an existing one and says to call the filter from it. The disable step clears the pre-request setting only for readers who set the filter directly. The filter function sets `search_path`, so the Security Advisor doesn't flag it. It matches the `Accept` header case-insensitively anywhere in the list, because PostgREST accepts `Application/vnd.pgrst.plan+text` and the old prefix check let it through. The check for an existing pre-request function reads `pg_db_role_setting`, which also shows per-database settings that `pg_roles.rolconfig` leaves out. When both a global and a per-database setting exist, the page says PostgREST uses the per-database one. The function is created and set as `public.filter_plan_requests`, because PostgREST resolves an unqualified name against the requested schema first. After the filter, the page says the Supabase Platform sets `cf-connecting-ip`, and that a self-hosted project needs a header its proxy overwrites. ### Verification `test-the-docs`, local stack, Supabase CLI v2.39.2. Each SQL fence ran in document order. The `supabase-js` calls were checked through the HTTP request they send, with `Accept: application/vnd.pgrst.plan`. | Step | Result | | --- | --- | | Plan request before enabling | 406, as expected | | Enable, then request a plan | 200, text plan, and JSON with `+json` | | Sample table, no extra grant | readable by `anon` | | Pre-request filter with `set search_path = ''`, non-matching IP | 401 `Not allowed to use application/vnd.pgrst.plan`, normal requests 200 | | Filter, mixed-case `Application/vnd.pgrst.plan+text` | old filter 200 with a plan, new filter 401; matching IP 200 | | Insert plan with `options=analyze` | row persists after the request; without `analyze`, no row | | Existing-function check with an `in database` setting | `pg_db_role_setting` shows it, `rolconfig` doesn't | | Disable | plan requests 406, normal requests 200 | | `cf-connecting-ip` on a hosted project | checked in review on a test project: Cloudflare sets it, and a request that sends its own value is rejected at the edge with `error code: 1000` | ### Not verified - **Deferred:** the TypeScript fences, because the sandbox runs Node only for example apps. The plan values in the example response come from the old page and differ slightly from a local run. - **Old links left on the redirect:** the client reference specs (`supabase_{dart,py,kt,swift}`), the supabase-js doc comment, and one `www` blog post still link to the old URL. ## Manual testing 1. Open [Query plans with explain()](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/api/query-plans). See the enable, use, production, and disable sections. 2. Open [the old URL](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/database/debugging-performance#enabling-explain). See it redirect to the new page at Enabling `explain()`. 3. In the Database sidebar under Debugging, click **Query plans with explain()**. See the new page open. |
||
|
|
86848fc036 |
docs: move the production security checklist to its own page (#52466)
Closes DOCS-1494 ## Problem The Security section of the Production checklist is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `## Security` to `guides/security/production-checklist`. The production checklist keeps the heading, and its `#security` anchor, with a one-sentence pointer. The page is in the Security sidebar under Guides, after Production Checklist. - **Option 1 navigation:** the "Production security checklist" entry in Run and manage, Security and compliance, points to the new page. The Option 1 test no longer expects the anchor. - **Page shape:** a value-statement opener with the situations that call for the checklist, then the items grouped under Database, Account and organization, Auth, and Threat review. Each group opens with a lead-in that says what its checks protect. - **Inbound links:** two Studio linter entries for OTP settings, the Studio Auth providers form, and `auth/auth-email-passwordless` now point to `production-checklist#auth`. The password length lint points to the password security guide instead, since the checklist has no password item. They used to land on `going-into-prod#security`, which is a pointer now. - **Claim fixes:** - The replication item told readers to enable replication on sensitive tables. It now says to enable RLS on replicated tables that hold sensitive data. - The Auth items named **Authentication > Providers**. The Dashboard label is **Sign In / Providers**. - **Terminal path:** the Auth group links the Management API endpoint for its settings. The Database items link to guides that carry CLI or SQL paths. - **Review fixes:** a note that RLS doesn't filter Postgres Changes `DELETE` events, a SQL path for publications, and the other email links the OTP expiry controls. - **Agent prompt:** after the opener, a copyable `AiPrompt` that has an agent audit the project read-only and report each item as pass, fail, or can't check. It reads Security Advisor and the tables through the Supabase MCP server, and SSL, network restrictions, Auth settings, and org members through Management API GET endpoints. `includeInMarkdown` is on, so the `.md` carries the prompt as a fenced text block. - **Cross-links:** Testing auth flows points to the checklist's Auth group, and the Security overview and Product configuration pages link the checklist. The custom SMTP item links the SMTP guide. ### Not verified - **Deferred samples:** none. The page has no code samples. - **Agent prompt:** its endpoints and fields match `api_v1_openapi.json`, and `Owner` matches Studio's role name. No agent has run it against a hosted project. - **Studio:** the link changes are strings only. Studio tests and build run on this PR because it touches `apps/studio`. ## Manual testing 1. Open [Production security checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/security/production-checklist). See the agent prompt below the opener and four groups of checks. Click **Copy** and see the prompt text. 2. Open [Production checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/deployment/going-into-prod#security). See the Security heading with a one-sentence pointer to the new page. 3. In the Security sidebar under Guides, click **Production security checklist**. See the new page open. |
||
|
|
7e5748ba6b |
docs: move team member role mapping to its own page (#52476)
Closes DOCS-1498 ## Problem The Configure user access section of Temporary access is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `## Configure user access` to `guides/platform/team-database-access`. Temporary access keeps the heading and its anchor, with a one-sentence pointer. The page is in the Platform sidebar after Temporary Access. - **Option 1 navigation:** the "Map team members to Postgres roles" entry in Run and manage, Team, points to the new page. The Option 1 test no longer expects the anchor. Today's navigation uses the same label, at 34 characters. - **Guide shape:** a value-statement opener with a short definition of a role mapping, Prerequisites, then steps to authorize a team member and to restrict their access. Each list has a lead-in. - **Sample fixes:** - The request sent the role list as `user_roles`. The Management API requires `roles`. - `expires_at` was in milliseconds. It takes Unix seconds, which the Dashboard sends. - A new step looks up the team member's user ID through the organization members endpoint. The old sample used a placeholder with no way to find the value. ### Not verified - **Samples:** the Management API calls need a hosted project, so `test-the-docs` can't run them. I ran them by hand against a hosted project. ## Manual testing 1. Open [Map team members to Postgres roles](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/team-database-access). See the prerequisites, the steps to authorize a team member, and the restrictions. 2. Open [Temporary access](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/temporary-access#configure-user-access). See the Configure user access heading with a one-sentence pointer to the new page. 3. In the Platform sidebar, click **Map team members to Postgres roles**. See the new page open. |
||
|
|
340101642a |
docs: move preview branches on Vercel to its own page (#52473)
Closes DOCS-1497 ## Problem The Vercel section of Branching integrations is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution Split out the old section into a new one with `/edit-the-docs` and `/test-the-docs`. ## Manual testing 1. Open [Preview branches on Vercel](https://docs-git-docs-vercel-preview-branches-supabase.vercel.app/docs/guides/integrations/vercel-preview-branches). See the prerequisites, two steps, and the After you connect section. 2. Open [Branching integrations](https://docs-git-docs-vercel-preview-branches-supabase.vercel.app/docs/guides/deployment/branching/integrations). Under **Hosting providers**, see a one-sentence pointer to the new page, with no Vercel heading. 3. In the Branching sidebar, click **Preview branches on Vercel**. See the new page open. 4. In the Integrations sidebar, click **Preview branches on Vercel**, after **Vercel Marketplace**. See the new page open with the Integrations sidebar. |
||
|
|
57b659d47f |
docs: move slow and failing query logging to its own page (#52469)
Closes DOCS-1495 ## Problem The `log_min_duration_statement`, `auto_explain.*`, and `log_min_error_statement` sections of Postgres log configurations are split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `log_min_duration_statement`, `auto_explain.*`, and `log_min_error_statement` to `guides/observability/log-slow-queries`. Postgres log configurations keeps each heading and its anchor, with a one-sentence pointer. The page is in the Database sidebar after Postgres log configuration. - **Option 1 navigation:** the "Log slow and failing queries" entry in Run and manage points to the new page. The Option 1 test no longer expects the anchor. `/edit-the-docs` and `/test-the-docs` ran as well. - **Cross-links:** the Customizing Postgres config table links this guide from its `auto_explain.*`, `log_min_duration_statement`, and `log_min_error_statement` rows, and the intro links Query logs with SQL for searching the logs. ## Manual testing 1. Open [Log slow and failing queries](https://docs-git-docs-log-slow-queries-supabase.vercel.app/docs/guides/observability/log-slow-queries). See the slow queries, query plans, errors, and restore-defaults sections. 2. Open [Postgres log configurations](https://docs-git-docs-log-slow-queries-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config#logmindurationstatement). See the heading with a one-sentence pointer to the new page. 3. In the Database sidebar, click **Log slow and failing queries**. See the new page open. |
||
|
|
e79adc4a42 |
docs: move leaked API key rotation to its own page (#52465)
Closes DOCS-1493 ## Problem The Rotate a leaked or compromised key section of API keys is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `### Rotate a leaked or compromised key` to `guides/security/rotate-leaked-api-keys`. API keys keeps the heading and its `#leaked-key` id, with a one-sentence pointer. The page is in the Security sidebar under Guides, since its URL selects that sidebar. - **Option 1 navigation:** the "Rotate a leaked API key" entry in Run and manage, Security and compliance, points to the new page. The Option 1 test no longer expects the anchor. Run /test-the-docs and /edit-the-docs. ## Manual testing 1. Open [Rotate a leaked or compromised API key](https://docs-git-docs-rotate-leaked-api-keys-supabase.vercel.app/docs/guides/security/rotate-leaked-api-keys). See the create, replace, and retire sections, with Dashboard and Management API tabs. 2. Open [API keys](https://docs-git-docs-rotate-leaked-api-keys-supabase.vercel.app/docs/guides/getting-started/api-keys#leaked-key). See the heading with a one-sentence pointer to the new page. 3. In the Security sidebar under Guides, click **Rotate a leaked or compromised API key**. See the new page open. |
||
|
|
76f3d06a8b |
docs: add Test Row Level Security policies with pgTAP guide (#52344)
Closes DOCS-1499 ## Problem The testing overview teaches RLS tests, in pgTAP and from application code, in sections that have grown into their own task. ## Solution This goes above and beyond the initial ask, which was just to move a section into a new topic. Because I was here anyway, I aimed to improve the experience and improve our RLS Evals score on tests. A companion Evals PR will split out a new Eval for the new topic, migrating the checks that were in the RLS guide. Some fixes are also included from running our docs skills, including: - **Structure:** move the pgTAP example and the Application-Level testing section to `guides/database/postgres/testing-row-level-security`. The overview keeps both headings, each with a short pointer. The "RLS policies testing" nav entry points to the new page, and so does "Test RLS policies with pgTAP" in the Option 1 nav. - **Style:** a value-statement opener, lowercase SQL, and the command split from its output. - **Technical fixes:** test 2 asserts the `returning` value. Test 4 uses `is_empty`. The output is the output `supabase test db` prints. - **Additions:** `supabase start`, the table as a migration applied with `supabase db reset`, and two sentences on how the test isolates its data and user. A note for readers who use an agent to write their tests, linking to a `## Write quality tests with agents` reference section. One sentence in the RLS guide's `### Run the test suite` links to that section. ## Review instructions 1. Open [Test Row Level Security policies with pgTAP](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/postgres/testing-row-level-security) on the preview. See five steps and a passing `Tests=4` output. 2. Open [Testing overview](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/local-development/testing/overview#database-unit-testing-with-pgtap). See the heading with a one-sentence pointer to the new page. 3. In the sidebar under Local development, Testing, click **RLS policies testing**. See the new page open. 4. On the [Testing overview](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/local-development/testing/overview#application-level-testing), click **Test the policy from your application**. See the TypeScript suite on the new page. 5. On the new page, click **Write quality tests with agents** in the agent note's prompt. See the five rules for agents near the bottom of the page. 6. On [Row Level Security](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/postgres/row-level-security#run-the-test-suite), click **Write quality tests with agents** under Run the test suite. See the new page open at that section. 7. Open the [Database guides with the Option 1 nav](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/overview?docs-ia-mvp-v1=option-1). Under Row Level Security, roles and Vault, click **Test RLS policies with pgTAP**. See the new page open. |
||
|
|
4b7af187a4 |
feat(docs): add Option 1 navigation behind the flag (#52191)
Closes DOCS-1469 ## Problem Option 1 in the navigation proposal groups the docs into Start, Build, Develop and deploy, Run and manage, Self-Hosting, Reference, and Resources. The `docs-ia-mvp-v1` flag from #52049 switches to an Option 1 config. That config is still a copy of today's navigation. ## Solution - **Top nav:** reads Start, Build, Develop and deploy, Run and manage, Self-Hosting, Reference, and Resources. Menus still open sidebars by URL prefix, as they do today. - **Run and manage:** pages under `/guides/platform`, `/guides/security`, and `/guides/observability` share one sidebar with the outline's seven groups. - **Other sidebars:** follow the outline. REST, GraphQL and Realtime share one sidebar, and Cron and Queues share one sidebar. - **Seven new topics:** keep their outline labels and link to the section on their source page, for example `getting-started/api-keys#leaked-key`. - **No flash of today's nav:** flags load in the browser, so the nav stays invisible until the query param or the flags resolve, with a 1-second fallback. The links stay in the HTML for agents. - **Tests:** each page appears once across the sidebars, and every link goes to a page in today's navigation. With the flag off, `useNavItems` returns today's navigation. **Not changed:** no URLs move. Breadcrumbs still show today's trail, which DOCS-1470 covers. ## Manual testing 1. Open [Database Backups with the flag on](https://docs-git-docs-ia-nav-option-1-supabase.vercel.app/docs/guides/platform/backups?docs-ia-mvp-v1=option-1). The top nav reads Start, Build, Develop and deploy, Run and manage, Self-Hosting, Reference, and Resources. The sidebar shows the seven Run and manage groups. 2. Open [the same page with the flag off](https://docs-git-docs-ia-nav-option-1-supabase.vercel.app/docs/guides/platform/backups?docs-ia-mvp-v1=control). Today's navigation shows. 3. Open [Database with the flag on](https://docs-git-docs-ia-nav-option-1-supabase.vercel.app/docs/guides/database/overview?docs-ia-mvp-v1=option-1). The sidebar starts with Connect to your database. 4. In the sidebar, open Row Level Security, roles and Vault, and select Test RLS policies with pgTAP. The testing overview opens at Database unit testing with pgTAP. |