Commit Graph
40517 Commits
Author SHA1 Message Date
caffienepapi 7f9d4cd7c6 docs: add Vault secret deletion example (#52004)
## Problem

The Vault guide explains creating, viewing, and updating secrets but has
no deletion example.

Addresses https://github.com/supabase/vault/issues/32.

## Solution

Add a “Deleting secrets” section with an ID-filtered SQL example. Use
`returning id, name` to show the deleted entry and explain its removal
from `vault.decrypted_secrets`.

## Review instructions

1. Check that “Deleting secrets” appears after “Updating secrets.”
2. Create two dummy secrets and record their IDs.
3. Run the example using one secret’s ID. Confirm the returned row
identifies that secret and the other remains readable.
4. Clean up the remaining dummy secret.

Manually verified on hosted Vault 0.3.1 using the `postgres` role.
Prettier passed with the repository configuration.

Full docs build not run. Docker sandbox verification deferred because
Docker is unavailable in the review environment.

## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [x] I used the docs authoring skills and applied the documentation
style guide.
2026-10-23 17:33:31 +00:00
Lazizbek ErgashevandNik Richers f4992d96a3 docs(examples): fix broken BotFather image in elevenlabs-speech-to-text README (#50951)
## Problem

The BotFather screenshot in the `elevenlabs-speech-to-text` example
README points to
`/assets/images/cookbooks/scribe/telegram-bot/bot-father.png`. That path
came over from the ElevenLabs docs and doesn't exist in this repo, so
the image is broken on GitHub.

Fixes #50948

## Solution

The same screenshot is already in the repo at
`apps/docs/public/img/guides/functions/elevenlabs/bot-father.png` and is
used by the ElevenLabs guide. I pointed the README at its published URL,
the same way `examples/user-management/react-user-management/README.md`
links docs images.

## Review instructions

1. Open the README on this branch and scroll to "Register the Telegram
bot".
2. The BotFather screenshot now renders.

## 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)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Updated the BotFather image link to use the Supabase documentation
URL.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-10-23 17:26:32 +00:00
7e76ef25f7 fix(docs): link to Database Settings for SSL certificate download (#51327)
## Problem

On the psql guide, the "Connecting with SSL" section says "Download your
[SSL certificate](#connecting-with-ssl)", but that link points back to
the same section. It never says where the certificate is, so readers
can't find the download. Reported in the issue linked below.

## Solution

Point the link at the Dashboard's Database Settings page
(`/dashboard/project/_/database/settings`), where the SSL certificate
download lives. This is the same link other database guides already use
(for example the DBeaver and Beekeeper Studio guides). One line changed
in `apps/docs/content/guides/database/psql.mdx`.

## Review instructions

1. Open `apps/docs/content/guides/database/psql.mdx`, "Connecting with
SSL".
2. Check that "Database Settings" now links to
`/dashboard/project/_/database/settings` instead of the same page.

---------

Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-10-23 17:26:08 +00:00
陈志谦 4cb9115581 docs: remove duplicated words in shipped site content (#50586)
## Description

Two duplicated-word typos in shipped content:

- `apps/design-system/content/docs/components/badge.mdx:7`: "should **be
be** self-evident" (rendered by the design-system docs)
- `apps/www/_blog/2024-08-12-postgres-new.mdx:230`: "a number **of of**
other things" (rendered blog post)

## I have read the CONTRIBUTING.md

YES

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
  * Corrected a duplicated word in the Badge component documentation.
  * Fixed a typo in the PGlite deep-dive blog post.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-23 17:22:54 +00:00
DexandDextheking1 3232bbb3e4 docs: fix four typos across docs pages (#50755)
Doc-only typo fixes (no behavior affected):

- `content/guides/database/json.mdx`: `indentity` -> `identity`
- `content/guides/database/postgres/cascade-deletes.mdx`: `INITIALLY
DEFFERED` -> `INITIALLY DEFERRED` (SQL keyword)
- `docs/ref/csharp/v0/release-notes.mdx`: `futher` -> `further`
- `docs/ref/self-hosting-analytics/introduction.mdx`: `environement` ->
`environment`


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Corrected spelling and wording errors across database, PostgREST, and
self-hosting analytics documentation.
* Clarified the Dashboard instruction for automatically generating
identity values.
* Corrected terminology in guidance for deferred actions and
encryption-key rotation.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Dextheking1 <4175097+Dextheking1@users.noreply.github.com>
2026-10-23 17:20:07 +00:00
Anthony Lio 942246995a feat(ui-patterns): toc disclosure (#51651)
## Problem

as highlighted in
[#51565](https://github.com/supabase/supabase/pull/51565#discussion_r4260820836)
we are lacking toc on mobile

## Solution

this is a proposal to add a toc disclosure for mobile breakpoint

| state | preview |
| -------|------|
| after | <img width="1492" height="618" alt="image"
src="https://github.com/user-attachments/assets/cc4d174f-47ee-499c-af6d-8f62a2edf25a"
/> |
| after | <img width="1492" height="618" alt="image"
src="https://github.com/user-attachments/assets/ef76288a-3e28-45fa-9a22-0af84247798b"
/> |

<!--
## 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

Provide a clear numbered procedure that the PR reviewer can walk
through.

1. visit `/docs/guides/observability/advanced-log-filtering`
2. decrease screen size or use mobile

## 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)
2026-10-23 20:17:26 +03:00
Charis 2113739557 docs(skills): add test speed patterns to studio-testing skill (#52224)
## Problem

Studio unit tests have grown large enough that per-file overhead adds up
to minutes of CI time. Contributors also lack guidance on the patterns
that keep tests fast, and the `studio-mock-api-tests` skill still
recommended `userEvent.type` for inputs.

## Solution

Adds a "Keep Tests Fast" section (section 5) to the `studio-testing`
skill, covering:

- Pure-logic tests in `.test.ts` so they run in node instead of jsdom
- Fake timers instead of real waits for polling and debounces
- `user.paste` or `fireEvent.change` instead of `user.type` unless
keystroke behavior is under test
- Scoping `*ByRole` option queries to the open listbox
- Avoiding redundant tests and checking that each test can fail

It also adds a `test.each` note to the testing guidance, adds codebase
references for each pattern, and updates the submit gotcha in
`studio-mock-api-tests` to recommend `user.paste`.

## Review instructions

1. Read the new "Keep Tests Fast" section in
`.agents/skills/studio-testing/SKILL.md`.
2. Check that the code examples match the patterns used in the
referenced test files.
3. Check the updated submit gotcha in
`.agents/skills/studio-mock-api-tests/SKILL.md`.

## Checklist

- [ ] 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)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-10-23 13:10:36 -04:00
Joey Lei 8679b0b4d3 docs: remove Log Query enforcement date from manage-usage page (#52188)
## Summary
- The Log Query usage page stated enforcement (allowance cap +
degraded-state consequences) would start "at the start of 2027." Per
yesterday's revised logs-pricing plan, Log Query enforcement is being
rolled back/deferred: usage stays tracked, but no cap or enforceability
lands with the January 2027 launch. Log Ingestion is unaffected and
keeps its original timeline (not touched by this PR).
- Updated the "Not yet enforced" admonition to drop the specific date
and state that a timeline will be announced before enforcement takes
effect.
- Changed "A concrete walkthrough" from literal January-April month
names to relative Month 1-4 labels, so the illustrative mechanics no
longer imply an imminent start date.

## Context
Related to the O11Y team's logs-pricing rollout; this is the docs-side
follow-up to the decision to roll back Log Query enforcement while Log
Ingestion proceeds as planned.

## Test plan
- [ ] Preview the `logs-query` guide page and confirm the admonition and
walkthrough read correctly
- [ ] Confirm `logs-ingest.mdx` is unchanged (Ingestion timeline
unaffected)
2026-10-23 09:22:44 -07:00
Julian Domke 52eae47eff fix(stripe-atlas): show improved perk application message (#52008) 2026-10-23 17:39:57 +02:00
Joshen Lim 7d63d764fc Joshenlim/fe 4712 cmd k support searching for database tables (#52205)
## Context

Looking into some kaizen improvements for Cmd+K, with the overarching
idea to make Cmd+K resource-aware so finding and inspecting anything in
a project doesn't depend on knowing where it lives in the dashboard.

Specifically looking into database entities for now - end state would be
that you could search for a table name for example, and Cmd K will pull
up everything *related* to that table for you to skim (e.g Policies,
Functions, Triggers, etc). Changes in this PR sets the foundation here
by starting with just the tables.
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/65054781-2385-416c-aed9-f142380e4454"
/>

This might be similar to how we currently support searching for database
entities via these "Queries" section, but these only search within the
context of the entity category, not across (e.g only tables, only
policies)
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/66ca16c6-9551-4134-b1e1-0b0c4b004085"
/>

The idea isn't to replace this, but provide another way to find your
database entities so that
- You can see related entities to what you're searching at a glance
- You don't need to go to a 2nd level nav in Cmd K 

Also fwiw the bulk of the LOC changes in here are mainly tests actually,
actual LOC changes are +385, -22
2026-10-23 23:24:56 +08:00
Charis af876fafc0 refactor(studio): migrate more remote MCP tools to contracts (#52226)
Migrates \`list_tables\`, \`list_edge_functions\`, \`list_branches\`,
\`get_advisors\`, and \`query_logs\` to \`RemoteToolContract\`.
Follow-up to #52175.

- Opt-in levels are unchanged: \`schema\` for the first three,
\`schema_and_log\` for the last two.
- \`needsApproval\` is \`false\` for all five.
- They are removed from \`TOOL_CATEGORY_MAP\` and registered in
\`REMOTE_TOOL_CONTRACTS\`.
- \`getMcpTools\` now applies \`needsApproval\` only to object-valued
remote tool entries. A malformed non-object entry now fails validation.
Before, spreading a string produced a junk object that passed.

No change to what the model sees.

Tests: \`lib/ai\` vitest, \`tsc\`, and Prettier pass.
2026-10-23 11:10:53 -04:00
Kody Jackson c7ec6a1166 [docs] - remove outdated from heroku.mdx guide (#52236)
## Problem

link no longer resolves

## Solution

Provide a brief description of the change and the key choices you made
when architecting the solution.
Feel free to include screenshots if it includes visual changes.

<!--
## 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

Provide a clear numbered procedure that the PR reviewer can walk
through.
2026-10-23 10:10:50 -05:00
b77fb5f4e5 chore(sitemaps): refresh sitemaps (#52231)
Refreshes the sitemap snapshots in `sitemaps/` with the current values
from:

- `https://supabase.com/sitemap_www.xml` →
`sitemaps/json_output/sitemap_www.json`
- `https://supabase.com/docs/sitemap.xml` →
`sitemaps/json_output/sitemap_docs.json`
- `https://supabase.com/kb/sitemap-0.xml` →
`sitemaps/json_output/sitemap_kb.json`

Source: manual run

This PR was created automatically and is updated in place on each run.

---------

Co-authored-by: kodster28 <26727299+kodster28@users.noreply.github.com>
Co-authored-by: kodster28 <kody.jackson@supabase.io>
2026-10-23 09:10:29 -05:00
Matt Rossman 1bd6ce0bc8 fix(studio): redact query rows and errors from Braintrust traces below the data opt-in level (#52106)
## Why

Braintrust's AI SDK wrapper captures a tool's raw `execute` result
instead of what `toModelOutput` sent to the model. While not sent to the
AI provider, this could still be unexpected at lower opt-in levels. The
upstream report of the footgun is in
https://github.com/braintrustdata/braintrust-sdk-javascript/issues/2651,
this PR is a stopgap fix.

## What

`execute_sql` and `run_notebook` traces now use [span
customizers](https://www.braintrust.dev/docs/admin/data-management/protect-sensitive-data#redact-before-upload)
to redact results when the AI opt-in level is below
`schema_and_log_and_data`.

Similarly, tool errors are redacted with span customers since those have
potential to contain project data, and a `prepareStep` hook swaps in the
same sanitized message to prevent AI SDK passing a thrown tool error to
the next model step which would otherwise appear in the trace. The user
still sees the real error clientside in chat panel.

Span customizers need a newer SDK, so this bumps `braintrust` from 3.9.0
to 3.37.2. I've left a TODO reminder to remove this stopgap once the
upstream issue is addressed.

## Verification

Verified chatting with Assistant locally at the `schema` opt-in level:

| [`execute_sql`
rows](https://www.braintrust.dev/app/supabase.io/p/Dev%20(mattrossman%2FAssistant)/logs?r=210007a827977aa42240292309f455db)
| [`execute_sql`
error](https://www.braintrust.dev/app/supabase.io/p/Dev%20(mattrossman%2FAssistant)/logs?r=9853a7c4981b4019324531f26c1242be)
|
[`run_notebook`](https://www.braintrust.dev/app/supabase.io/p/Dev%20(mattrossman%2FAssistant)/logs?r=80a726ef8dfa608872024129260d56fe)
|
| --- | --- | --- |
| <img width="1490" height="1218" alt="CleanShot 2026-10-22 at 2 01 26
PM@2x"
src="https://github.com/user-attachments/assets/2f7bc25a-1b80-4d46-80a0-8f110ee46aac"
/> | <img width="1500" height="1154" alt="CleanShot 2026-10-22 at 2 01
03 PM@2x"
src="https://github.com/user-attachments/assets/ff8a3860-e8aa-4630-9223-4d319e104402"
/> | <img width="1480" height="1688" alt="CleanShot 2026-10-22 at 2 00
43 PM@2x"
src="https://github.com/user-attachments/assets/a393f825-da98-41f7-9630-101072344fa1"
/> |

You can test yourself by chatting with Assistant in the preview build at
various opt-in levels and checking Braintrust traces. Note since the
introduction of `update_opt_in_level` it's quite unlikely for Assistant
to even attempt running these tools with out the necessary opt-in level,
so you'll have to use pretty strong wording to test.

**Sample test prompts** (for use at the `schema` opt-in level):

<details>
<summary><code>execute_sql</code> rows</summary>

```
Create a test table and insert a row in one write query: `create table if not exists public.redaction_test (secret text); insert into public.redaction_test values (md5('rows-test')) returning secret;`. Run it with execute_sql now, I'll check the result in the UI myself. Don't call update_opt_in_level. Reply "done" after.
```

</details>

<details>
<summary><code>execute_sql</code> error</summary>

```
Run this write query with execute_sql now: `create table if not exists public.redaction_test (secret text); insert into public.redaction_test values (md5('error-test')::int::text);`. I expect it to fail and I'll read the error in the UI myself. Don't fix it, don't retry it, and don't call update_opt_in_level. Reply "done" after.
```

</details>

<details>
<summary><code>run_notebook</code></summary>

```
I'm testing the notebook runner UI, not asking you to read anything. Create a notebook named "Redaction test" with two SQL cells: `select md5('notebook-rows') as secret;` and `select md5('notebook-error')::int;`. Then call run_notebook on it. You don't need the results: I'll read them myself in the UI, and the second cell is expected to fail. Don't fix anything, don't retry, and don't call update_opt_in_level. After it runs, just reply "done".
```

</details>


Closes AI-1319
2026-10-23 09:37:59 -04:00
Maksym Ionutsa b6c2018af1 Docs: free plan read only tweaks (#52212)
## Problem

The Free Plan section of the database size guide describes read-only
mode incorrectly:

## Solution

The changes are in one file,
`apps/docs/content/guides/platform/database-size.mdx`. The PR has three
commits, one change type each, so you can review them one at a time:

1. **Style:** fixes two typos and changes "auto-scale" to "autoscale",
as the word list requires.
2. **Correction:** rewrites the Free Plan section:
   - Read-only mode starts at 95% disk usage and stops below 95%.
- The 500 MB quota is a billing quota, with a link to the existing Fair
use section.
- A `danger` admonition says that read-only mode is best effort and that
a full disk stops Postgres.
- Recovery steps: upgrade to the Pro Plan, restart the project, and wait
about 10 minutes.
3. **Addition:** adds a "Write Ahead Log (WAL) on the Free Plan"
subsection. It explains how bulk writes and inactive replication slots
make WAL grow, and how to keep WAL small.

No heading is renamed or removed, so all existing anchors still resolve.

## Preview links

| Site | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| Docs |
[/docs/guides/platform/database-size](https://supabase.com/docs/guides/platform/database-size#free-plan-behavior)
|
[/docs/guides/platform/database-size](https://docs-git-docs-free-plan-read-only-supabase.vercel.app/docs/guides/platform/database-size#free-plan-behavior)
| best-effort safeguard |

## 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)
2026-10-23 15:28:11 +02:00
Joshen Lim 17582d8373 Cmd K to sort results based on relevance score (#52211)
## Context

Realised that Cmd K doesn't really sort results by relevance. e.g here
searching for "Cron" shows the first result as "Edge functions" which
has nothing to do with Cron, so this PR just addresses this
<img width="618" height="552" alt="image"
src="https://github.com/user-attachments/assets/d643136d-a7ec-4d67-84b7-47ef0ccb5d1d"
/>
2026-10-23 21:25:53 +08:00
Joshen Lim ea3d522cbf Cmd K remove duplicate results for project integrations (#52208)
## Context

Searching for project integrations currently returns "duplicate" results
as such
<img width="622" height="284" alt="image"
src="https://github.com/user-attachments/assets/95f20b79-4365-494e-8e19-08bb19173d51"
/>

Am opting to remove the "navigate" section as "Integrations" seem more
appropriate + also tighten the copy a little
<img width="637" height="218" alt="image"
src="https://github.com/user-attachments/assets/5d801477-8924-4001-a409-e66e76166c90"
/>
2026-10-23 21:25:33 +08:00
Joshen Lim 9048d86e35 Add a custom log detail fetcher + logs overview for supavisor (#52142)
## Context

Supavisor logs in the Unified Logs interface didn't have much detail as
compared to the old logs UI - was happening as there wasn't any custom
log detail fetcher nor logs overview UI defined for Supavisor logs.

So this PR adds them both to render a Supavisor log as such:
<img width="1919" height="957" alt="Screenshot 2026-10-22 at 17 46 46"
src="https://github.com/user-attachments/assets/33077e81-5a20-4c7b-a322-f8aa2faf73d5"
/>

<img width="1918" height="956" alt="Screenshot 2026-10-22 at 17 46 57"
src="https://github.com/user-attachments/assets/00fd7e55-8b57-45dd-b387-e57cd1d30881"
/>

## To test

Easiest way to test that I can think of is to make some connections with
the shared pooler and run some queries
Get your connection string from the Connect UI as such:
<img width="908" height="520" alt="image"
src="https://github.com/user-attachments/assets/977d1d2c-a76e-4adf-b6d3-42f0862f0609"
/>

And then I did it locally via Claude for the lowest friction:
```
im trying to generate some logs for my project's supavisor

this is the connection string
<Insert connection string>

can you help me make some connections, run some queries or two then exit?
```
2026-10-23 21:20:45 +08:00
Kody Jackson 77805f7ecb feat(kb) - add in FAQs around first-party auth connectors (#52160)
## Context

Adds in FAQ-styled versions of #51759, which we can use to compare the
effectiveness of content types.

The wording / framing here -- once reviewed -- will then flow back into
the rundown guide + serve as the basis for other auth provider guides.

## Preview links

-
https://kb-git-kody-devrel-753-faq-for-first-party-auth-6c43e9-supabase.vercel.app/kb/faqs/auth/amazon-cognito-third-party-auth
-
https://kb-git-kody-devrel-753-faq-for-first-party-auth-6c43e9-supabase.vercel.app/kb/faqs/auth/auth0-third-party-auth
-
https://kb-git-kody-devrel-753-faq-for-first-party-auth-6c43e9-supabase.vercel.app/kb/faqs/auth/clerk-third-party-auth
-
https://kb-git-kody-devrel-753-faq-for-first-party-auth-6c43e9-supabase.vercel.app/kb/faqs/auth/firebase-auth-third-party-auth
-
https://kb-git-kody-devrel-753-faq-for-first-party-auth-6c43e9-supabase.vercel.app/kb/faqs/auth/workos-third-party-auth
2026-10-23 08:06:25 -05:00
Wen Bo Xie 61058a579a docs: describe personal access tokens as scoped (#52217)
## Problem

The [Personal Access Tokens
guide](https://supabase.com/docs/guides/platform/personal-access-tokens)
says tokens "come in two flavors: Classic tokens … Scoped tokens." The
Select Rewind blog post, the new Personal Access Tokens feature page,
and the launch community posts deliberately avoid that split. They
describe a token as something you scope and treat the full-access token
as an exception you can still create. Readers who follow "see the
Personal Access Tokens documentation" from those pieces land on the
opposite framing.

Three other guides that link to the PAT page also call it a "scoped
personal access token" as if it were a separate product.

## Solution

This PR rewrites the PAT guide around scoping as the default and stops
using "classic" and "scoped" as names for kinds of token. "Scoped"
appears only as a verb or a state ("scope a token", "scoped by
default"). "Legacy" appears only as the literal Dashboard badge.

- **`guides/platform/personal-access-tokens.mdx`**
- Replaces the two-flavors list with an intro that explains scoping
first and the full-access exception (shown with the **Legacy** badge)
second.
- Renames "Create and use a scoped personal access token" to "Scope a
token and use it" and "Use a scoped personal access token with the
Supabase CLI" to "Use a token with the Supabase CLI".
- **`guides/ai-tools/mcp.mdx`**,
**`guides/getting-started/api-keys.mdx`** and
**`guides/deployment/managing-environments.mdx`** reword "scoped
personal access token" to describe a state rather than a token type.
- **`spec/sections/generateAccessControlPartials.mts`** changes the MCP
tools fallback label from "Not available to scoped personal access
tokens" to "Not available to personal access tokens with a scope".
Because no tool hits this branch today, the generated partials don't
change.

The permissions, CLI behavior, `sbp_fc` prefix and examples stay the
same.

## 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)
2026-10-23 15:06:21 +02:00
Joshen Lim 60b51d74d5 Audit existing unit tests + Remove redundant ones (#52215)
## Context

_TLDR: Changes here speeds up unit tests on CI from ~14 minutes to ~3
minutes_ 😂
_TLDR 2: The file changes are solely only test files +
`studio-unit-tests.yml`_

We've currently got a lot of unit tests in the repository which while
great for coverage, hasn't been ideally written. There's a lot of
redundancy + overly specific tests that break easily, and our current
unit test takes about 15 minutes to run in the GHA per PR. Hence am
doing a audit clean up of all existing unit tests in the studio repo.

## Changes involved
- `.test.ts` files now run in `node`, `.test.tsx` in `jsdom`
- jsdom costs about 1s of setup per file. A `.ts` test that needs the
DOM opts in with `// @vitest-environment jsdom` (46 files do).
- Removed redundant and over-specific tests
- Duplicates are merged into `test.each`. Tests that only covered
libraries, existed for coverage, or asserted class names and snapshots
are deleted. 19 files are merged into a sibling or deleted.
- Fixed about 15 tests that couldn't fail 
- Examples: unawaited assertions, fixtures equal to the default, and a
`semverGte` test calling `semverLte`.
- Sped up the slowest files 
- Real sleeps are replaced with fake timers, `user.type` with paste, and
Radix option queries are scoped to the open listbox. For example,
`RestoringState` went from 18s to 0.3s and
`useTableEditorFiltersSort.navigation` from 20s to 3s.
- These ^ already shave down the unit tests time from 14 mins to 9 mins,
but am also sharding unit tests across 4 jobs to increase speed up
further which then shaves down time to 3 mins now
2026-10-23 18:51:27 +08:00
Joshen Lim 5a98369a85 Tighten Cmd K fuzzy matching (#52207)
## Context

Searching in Cmd K has a tendency to return seemingly irrelevant results
- e.g searching "blog" or "colors" would show "Project Integrations" as
a search result. Cmd K itself ranks items with a fuzzy scorer that
matches characters in order but not contiguously - so _any_ item with a
non-zero score stays in the list.
<img width="661" height="200" alt="image"
src="https://github.com/user-attachments/assets/2e170ccc-ab01-43f3-8d83-7e567e95913e"
/>

## Changes involved
- Add a custom filter for Cmd K to filter out results which fuzzy score
falls below 0.01
- This catches the worst scattered matches and keeps short abbreviations
like `db` → Database (about 0.17).
- Keywords are matched by substring only, never fuzzily, and requires a
score of at least 0.5
- Cmd K normally fuzzy-matches keywords together with the name, so we
match keywords by exact substring instead

## To test
- Open the command menu in Studio and search `colors` and `blog`.
Project Integrations should not appear.
- Search `branch`, `vercel`, `github` and `privatelink`. Project
Integrations should appear.
- Search `addons`, `restart project` and `pause project`. The
corresponding Add-ons and Project availability commands should appear.
- Search `db`, `auth` and `stor`. The usual results should still appear.
2026-10-23 18:37:10 +08:00
Johan Bergström a58bb832c6 feat(docs): show guides sidebar on Management API introduction
The sidebar for the management api introduction is eating into the main
content unfairly given its amount of importance (three links). Also, most
of our content has a richer sidebar with more ways to interact.

What started as an attempt to give more space for the main content in
the management api introduction turned into an attempt to standardize
the sidebar similar to how its being used on other pages.

The "Additional links" now live in the sidebar and fall back to a list
under the article below the md breakpoint.

PR: https://github.com/supabase/supabase/pull/52107
2026-10-23 11:17:39 +01:00
Joshen Lim 2f7ccdd6bc Cmd K hitting backspace while search input is empty should return to first level (#52206)
## Context

Currently while using Cmd+K, if you're in a second level nav (e.g after
selecting "Search Database Tables")
To return back to the first level nav, you'd need to hit "Esc" which is
unintuitive and not how most Cmd+K UX works.

PR here changes that behaviour such that
- Hitting backspace while search input is empty will return you back to
the first level nav
- Hitting esc will close the Cmd+K panel
2026-10-23 17:06:10 +08:00
Illia Basalaiev 2f548a69a3 docs(postgis): link to the Security Advisor troubleshooting guide (#51439)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

New troubleshooting guide on Security Advisor flagging spatial_ref_sys
and other PostGIS objects in the public schema

## What is the current behavior?

## What is the new behavior?

New guide PR: https://github.com/supabase/troubleshooting/pull/339 

Link to the guide preview:
- [Security Advisor flags spatial_ref_sys and other PostGIS objects in
the public
schema](https://docs-git-docs-troubleshooting-postgis-security-advisor-supabase.vercel.app/docs/guides/database/extensions/postgis#security-advisor-flags-publicspatialrefsys)
2026-10-23 08:19:21 +00:00
Joshen Limandcoderabbitai[bot] 2400e9537a Joshenlim/fe 4679 inconsistency with integrations that arent installed create (#52141)
## Context

Addresses some issues with the "One click integration" feature preview
for the following 3 integrations

### Database Webhooks
- The "Create a new hook" CTA can be clicked despite the integration not
being installed yet
- As such if you were to create a new webhook, you'll run into errors
- Am opting to follow the UX in wrappers where the dashboard will
install the integration for you if you're trying to create a new webhook
while the integration isn't installed yet
- So this allows users to go straight to creating webhooks without the
additional step of clicking "Install integration"
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/7fb70937-94c2-4095-9eef-4fb71347d132"
/>
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/7efcee65-34c0-438f-8fb5-3f0d855a0f34"
/>

### Cron and Queues
- The "Jobs" / "Queues" tab can be opened despite the integration not
being installed yet
- This results in a number of unnecessary API requests to fetch the data
for the corresponding grids, but they'd all error out since the database
extension isn't installed
- Opting to gate all the network calls via `enabled` if the integration
is not installed yet, and also render an empty state instead as such
(This aligns with the Stripe Sync Engine)
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/e8203162-a249-4da0-9ef9-f47df194b20f"
/>

## To test
- [ ] For database webhooks, verify that you can create a webhook
without having to click "Install integration" prior
- [ ] For cron and queues, verify that there's no network requests to
fetch their data if the integration is not installed yet while you're on
the jobs / queues pages

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-10-23 16:16:33 +08:00
Alaister YoungandCursor Agent 2193f2acdf fix(ui-patterns): only initiate the command menu when it opens (#52129)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
Closing the command menu called `setOpen(false)`, and `setOpen` always
ran `init()`, which mounts the lazy `CommandMenu`. So the first close
(e.g. a shallow `routeChangeComplete` from switching schema in the Table
Editor on Next, or the load-time `onResolved` on TanStack) mounted the
menu and its hooks fetched api keys, project settings, the projects
list, secrets, auth/storage config and integrations. Reproduces on
master, found while testing #52016.

The menu and its queries now load on first open instead (on TanStack
that used to happen at page load).

**Changed:**
- `viewState.ts` – `setOpen` only calls `init()` when opening
- `CommandProvider.tsx` – add `completeNavigation` to the listener
effect deps
- `SqlEditor.Commands.tsx` – treat mounting while open as just opened,
so the first Cmd+K still prefetches tables

**Added:**
- `viewState.test.ts` – closing doesn't initiate a never-opened menu,
opening does
- `CommandProvider.navigation.test.tsx` – a real or shallow completion
leaves a never-opened menu unmounted and closes an open one. Fails
without the fix.
- `SqlEditor.Commands.test.tsx` – mounting while open prefetches tables

## To test

- Table Editor, open DevTools Network, switch schema (e.g. public to
auth) – only the schema's pg-meta queries fire, no api-keys, settings,
projects or integrations requests
- Load a project and navigate via the sidebar before opening Cmd+K –
none of those requests
- Cmd+K – the menu opens, its commands work, and the first open fetches
tables
- Navigate via a command – the menu closes
- With the menu open, follow a shallow path change (e.g. open another
SQL snippet) – the menu closes
- Repeat locally on TanStack (`pnpm dev:studio`)

<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-4c050997-e4e4-51eb-98e2-b67e470e41b4?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-4c050997-e4e4-51eb-98e2-b67e470e41b4&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-10-23 14:00:37 +08:00
AnaandAna 2ddb9a9894 feat(www): add video to server sdk feature page (#52172)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

- Sets the Server SDK entry's `heroImage` in
`apps/www/data/features.tsx` to the YouTube video "Add MCP Server to
Your Supabase App"
- Removes `hideHero: true` from the entry

## What is the current behavior?

The Server SDK feature page has no hero block.

## What is the new behavior?

- The Server SDK feature page shows the "Add MCP Server to Your Supabase
App" video as its hero, the same way other feature pages with a YouTube
hero do

## Additional context

The same video is embedded in the blog post
`give-your-supabase-app-its-own-mcp-server`.

Co-authored-by: Ana <ana1337x@users.noreply.github.com>
2026-10-22 17:17:38 -04:00
Charis 23a56b2e60 refactor(studio): add remote tool contracts, starting with list_extensions (#52175)
## Problem

Assistant tools served by the remote MCP server have no Studio-side
contract, so Studio can't declare their opt-in level or approval policy
the way it does for local tools. This PR adds a contract type for them
and migrates `list_extensions` as the first one.

## Solution

Adds `RemoteToolContract` for Assistant tools served by the remote MCP
server, and migrates `list_extensions` as the first one.

A remote contract declares only what Studio owns: `name`,
`minOptInLevel`, and `needsApproval`. The MCP server keeps owning the
description, input schema, execution, and output, so there's no server
file and the tool's parts stay `dynamic-tool`.

- `types.ts`: `RemoteToolContract` is `Pick<ToolContract, 'name' |
'minOptInLevel' | 'needsApproval'>`.
- `registry.ts`: `REMOTE_TOOL_CONTRACTS` and `getRemoteToolContract`.
- `tool-filter.ts`: minimum opt-in levels resolve from local or remote
contracts; `list_extensions` leaves `TOOL_CATEGORY_MAP` (it stays on the
allowlist).
- `mcp-tools.ts`: applies the contract's `needsApproval` to the
discovered tool, since MCP tool definitions can't declare approval.
- README: documents remote contracts.

## Review instructions

1. Behavior: no change in what the model sees or how history replays.
`list_extensions` keeps the same opt-in level (`schema`) and still runs
without approval.
2. Run `pnpm exec vitest run lib/ai components/ui/AIAssistantPanel` from
`apps/studio`.
3. Run `pnpm run typecheck`, eslint (no new warnings), prettier, and
knip.

## Checklist

Check all before review:

- [ ] 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)
2026-10-22 16:53:16 -04:00
Joanna Lisiewicz 0f128212a7 add-my-name-tu-humans (#52080)
## Problem

Describe what went wrong or what need emerged to justify this bug fix,
feature, or change.
Link any relevant issues here.

## Solution

Provide a brief description of the change and the key choices you made
when architecting the solution.
Feel free to include screenshots if it includes visual changes.

<!--
## 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

Provide a clear numbered procedure that the PR reviewer can walk
through.

1. For example, `Open the live and preview links side-by-side.`
2. For example, `See the issue is fixed.`

## Checklist

Check all before review:

- [ ] 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)
2026-10-22 13:45:40 -07:00
Glauber CostaandClaude Sonnet 4.6 6177c10b60 chore(docs): add Glauber Costa to humans.txt (#52098)
## Summary

- Adds Glauber Costa to `apps/docs/public/humans.txt` in the correct
alphabetical position (between Giuseppe Mandato and Gonzalo Servat)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-10-22 13:44:10 -07:00
Anthony Lio e7e0c7709e fix(kb): hero mobile + fixtures (#52180)
## Problem

- on a page reload the kb topic tabs show no active tab for a sec
- on page reload guide lists stay empty for 300ms more
- on mobile the topic hero shows no shape and no frame lines


## Solution

- adds classes to `TopicTab`, so the active tab draws its own tab shape
until the list gets `data-tab-indicator-ready`
- changes `bindRevealOnce` to set the 300ms `--reveal-offset` only when
`window.scrollY` is 0
- changes the hero padding
- removes the grid hero variant, `AsciiCanvas`, `useQueryVariant` and
the `?hero=grid` param, because the kb does not use the grid hero at
launch
- removes the `guides` prop from `Hero`, `HomeHero` and `TopicHero`,
because only the grid hero used it
- removes the helpers in `lib/ascii/field.ts` that only `AsciiCanvas`
used

<!--
## 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

Provide a clear numbered procedure that the PR reviewer can walk
through.

1. visit `/kb` on mobile
2. reload page

## 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)
2026-10-22 22:21:29 +03:00
Alexis Aguilar 8a78b7e5be docs: call Edge Functions from Postgres with the secret key (#51990)
Found during my dogfooding project :)

## Problem

Three guides give conflicting guidance on how Postgres should
authenticate when it calls an Edge Function:

- **Securing Edge Functions:** calls from `pg_net` and cron jobs send
the secret key on `apikey`, with `auth: 'secret'` and `verify_jwt =
false`. The Dashboard agrees: the webhook and cron job forms only offer
**Add secret key**.
- **Scheduling Edge Functions:** the only example that stores a key in
Vault sends the publishable key. A request with only the publishable key
passes the `verify_jwt` check, so anyone who has that public key can
call the function.
- **Database Webhooks:** doesn't cover calling an Edge Function or
authenticating to it. Its SQL example writes headers inline, so a
webhook created in a migration puts the secret key in a committed file.

Resolves [DOCS-1458](https://linear.app/supabase/issue/DOCS-1458),
[FDBKIN-19992](https://linear.app/supabase/issue/FDBKIN-19992)

## Solution

All three pages now recommend the secret key for calls from Postgres.

- **Scheduling Edge Functions:** stores and sends the secret key,
explains why the publishable key isn't safe here, and links to the
function-side setup.
- **Database Webhooks:** a new Call an Edge Function section covers the
Supabase Dashboard flow and a migration. The migration reads the key
from Vault in a `security definer` trigger function. The section
explains that the definer is required, because the roles that insert
rows can't read Vault.
- **Securing Edge Functions:** the service-to-service section is now a
two-step setup. It shows how to disable the `verify_jwt` check in
`supabase/config.toml`, with a link to the Authorization headers guide,
and how to use `auth: 'secret'` in the function. It then links to
Database Webhooks and Scheduling Edge Functions.
- **`pg_net` queue:** Database Webhooks and Scheduling Edge Functions
show a caution that any role that can log in to the database can read
the secret key while the request waits, because `pg_net` writes the
decrypted key to `net.http_request_queue` until it sends the request.
Both pages include the caution from a new partial,
`_partials/pg_net_queued_key.mdx`, which links to the troubleshooting
article.

## Verification (`/test-the-docs`)

| Snippet / step | Class | Sandbox | Result | Notes |
| --- | --- | --- | --- | --- |
| Function with `auth: 'secret'` and `verify_jwt = false`, called with
the secret key on `apikey` | runnable-with-setup | Compose runner +
`supabase start` | pass | Returns `200` |
| Same function, called with the publishable key, then no key |
runnable-with-setup | Compose runner + `supabase start` | pass |
Rejected with `INVALID_API_KEY`, then `MISSING_CREDENTIALS` |
| Scheduling Edge Functions: Vault secrets, then `cron.schedule` |
runnable-with-setup | Compose runner + `supabase start` | pass | The
cron run succeeded, and the function returned `200` |
| Database Webhooks: Vault-based trigger function and trigger |
runnable-with-setup | Compose runner + `supabase start` | pass | Inserts
as `postgres` and as `authenticated` both reached the function with the
documented payload |
| Same trigger function as `security invoker`, insert as `authenticated`
| runnable-with-setup | Compose runner + `supabase start` | pass | Fails
with `permission denied for schema vault`, which confirms the page's
explanation |
| Database Webhooks: Dashboard steps | deferred | — | deferred | Needs a
hosted project. Labels confirmed in the Studio source. |

**Tier A path:** Vault secrets → `pg_cron` job → `pg_net` request → Edge
Function with `auth: 'secret'` returns `200`.

**Environment:** OrbStack; compose sandbox (`sandbox/run.sh`); fences
in-container only. Two deviations from the stock sandbox, neither
committed:

- The sandbox pins Supabase CLI v2.39.2, which predates `sb_secret_` and
`sb_publishable_` keys. The run used v2.121.0.
- The `dind` service doesn't mount `/work`, so local functions fail with
`failed to determine entrypoint`. The function file was copied into the
DinD filesystem.

`project_url` pointed at the local API gateway, because the database
container can't reach the runner's `127.0.0.1`.

## Preview links

- [Database
Webhooks](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/database/webhooks)
- [Scheduling Edge
Functions](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/functions/schedule-functions)
- [Securing Edge
Functions](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/functions/auth)


## Post-merge

> [!IMPORTANT]
> After this PR merges, post the following comment on
[FDBKIN-19992](https://linear.app/supabase/issue/FDBKIN-19992) and close
it:
>
> The "Missing required headers" error happens when the webhook doesn't
send an auth header to the Edge Function. Database Webhooks send only
the headers you configure. [Database Webhooks → Call an Edge
Function](https://supabase.com/docs/guides/database/webhooks#call-an-edge-function)
shows how to add the secret key, either in the Dashboard with **Add
secret key** or in a migration that reads the key from Vault. [Securing
Edge
Functions](https://supabase.com/docs/guides/functions/auth#service-to-service-calls)
covers the function side: disable `verify_jwt` and use `auth: 'secret'`.
2026-10-22 19:19:42 +00:00
Alexis Aguilar 70fe3de074 docs: move social login URLs to social sign-in (#52111)
## Problem


[supabase/supabase#52102](https://github.com/supabase/supabase/pull/52102)
and
[supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109)
rename *social login* to *social sign-in* in visible text, so every
sign-in method follows the same pattern. The URLs still say
`social-login`, and the Expo quickstart's says `social-auth`. Keeping
feature names consistent includes the URLs: readers see them in the
address bar, in search results, and in links shared between docs, the
Dashboard, and the marketing site.

Part of [DOCS-1459](https://linear.app/supabase/issue/DOCS-1459).

## Solution

| Old URL | New URL |
| --- | --- |
| `/docs/guides/auth/social-login` | `/docs/guides/auth/social-sign-in`
|
| `/docs/guides/auth/social-login/*` (18 provider pages) |
`/docs/guides/auth/social-sign-in/*` |
| `/docs/guides/auth/quickstarts/with-expo-react-native-social-auth` |
`/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in` |
| `/features/social-login` | `/features/social-sign-in` |

- **Redirects:** `apps/www/lib/redirects.js` has a permanent redirect
for each old URL. One `:path*` entry covers the provider pages. Existing
redirects that pointed at the old URLs point straight at the new ones,
so no URL redirects twice.
- **Links:** docs content, navigation, provider data, and SDK specs,
Studio's Auth provider settings (29 "Learn more" links), the marketing
site, the UI library docs, and the knowledge base use the new paths.
- **Code name:** the docs navigation list `SocialLoginItems` is
`SocialSignInItems`.

Intentionally unchanged:

- **Blog posts:** their links keep the old URLs and use the redirects.
- **Sitemaps:** the `refresh-sitemaps.yml` workflow regenerates them.
- **Image file names:** for example, `social-login.png` and
`supabase-expo-social-auth-login.png`. Readers don't see them.
- **UI library blocks:** the blocks are named `social-auth`, and the
name is part of their install commands, so renaming them is a decision
for the UI library's owners.

## Related PRs

The rename spans three PRs, so the feature has one name on every
surface:

-
[supabase/supabase#52102](https://github.com/supabase/supabase/pull/52102)
(merged): the docs.
-
[supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109)
(merged): the marketing site, the Dashboard command menu, the UI library
docs, the knowledge base, and the Docker configuration comments.
- **This PR:** the URLs, including the Expo quickstart's, move to
`social-sign-in` with redirects.

## Verification

- Docs typecheck and the guides Markdown build pass.
- `redirects.js` loads with 841 entries and no conflicting sources.
- No `social-login` path remains outside blog posts, snapshots,
generated files, the redirect sources, and image file names.

To check the redirects, use the marketing site's preview, because `www`
applies the docs redirects and the docs preview doesn't. If that preview
serves production docs, the redirected page shows as missing until the
new paths deploy. The redirect itself is what to check:

-
[/docs/guides/auth/social-login](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-login)
-
[/docs/guides/auth/social-login/auth-google](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-login/auth-google)
-
[/docs/guides/auth/quickstarts/with-expo-react-native-social-auth](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-auth)
-
[/features/social-login](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/features/social-login)

## Preview links

- [Social
sign-in](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-sign-in)
- [Sign in with
Google](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-sign-in/auth-google)
- [Expo
quickstart](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
- [Social sign-in feature
page](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/features/social-sign-in)
2026-10-22 18:23:26 +00:00
Anthony Lio 919f65d0a3 test(kb): expect case-preserving search slugs (#52173)
## Problem

`apps/kb/api/search/_search.test.ts` fails on master after #52089, so
the "KB tests" check fails on each PR that runs it as the handler keeps
the slug case

## Solution

- updates the `href` assertion
- updates the fetch assertion

<!--
## 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

Provide a clear numbered procedure that the PR reviewer can walk
through.

1. For example, `Open the live and preview links side-by-side.`
2. For example, `See the issue is fixed.`

## 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)
2026-10-22 21:11:20 +03:00
Anthony Lio 29ee3dcaa0 feat(kb): og image (#52096)
## Problem

`apps/kb` sends no open graph or meta tags

## Solution

- adds open graph and twitter tags same way as docs to kb 

<!--
## 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

Provide a clear numbered procedure that the PR reviewer can walk
through.

1. visit [a
guide](https://kb-f9n61h6cb-supabase.vercel.app/kb/guides/migrate-from-auth0)
2. inspect and check og image url or use a meta tag checker 

## 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)
2026-10-22 20:56:59 +03:00
Charis 1bcc472d64 feat(studio): add Grant type and useGrant/getGrant/ensureGrant (#52105)
## Problem

Resolves FE-4688.

Core types and minting for endpoint-bound FGA grants. A `Grant<E, V>` is
minted by checking the user's v2 permissions against the generated
`fgaRequirements` map for endpoint `E` (and optional variant `V`).
Nothing consumes grants yet: the fetch wrappers that require them come
in a follow-up PR.

## Solution

### What changed

- **`lib/grants.ts`** (new)
- `Grant<E, V>`: the brand is a function type, so it's invariant in both
the endpoint and the variant. A grant only satisfies its exact endpoint
and variant.
- `GrantResult` is `loading | granted | denied | error`, and `.grant` is
defined only when granted.
- `GrantFor<Method, Path>` resolves to the grant type for an annotated
endpoint, or `never` otherwise.
  - Minting functions:
    - `getGrant` is pure.
- `useGrant` resolves org and project from the URL unless the scope
overrides them.
    - `ensureGrant` is for imperative code and prefetch.
- Self-hosted always mints. A failed permissions request returns
`error`. Grants are never part of query keys.
- **`lib/fga-refinements.ts`** (new): an empty map defining the shape
for named variants. Each entry records the base annotation it was
written against, so typecheck fails if that annotation changes.
- **`permissions-query-v2.ts`**: adds a `permissionsQueryOptionsV2`
factory. `usePermissionsQueryV2` is now a thin wrapper around it, with
the same signature and the same 5-minute `staleTime`.
- **`doPermissionsCheckV2`**:
- Now accepts OR-of-AND requirement groups. Existing single-permission
and flat-list calls behave as before.
  - Empty input never grants, including an empty group.
- **`usePermissionScopeV2`**: org/project/branch-parent resolution
extracted from the V2 hook, so `useGrant` and
`useAsyncCheckPermissionsV2` share one implementation.
- **Invalidation**: the role assign, unassign, and update mutations,
`UpdateRolesConfirmationModal`, and project creation now invalidate the
v2 permissions query.
- **knip**: temporary `files` ignore for `lib/grants.ts` until its first
consumer lands.

### Behavior change

`useAsyncCheckPermissionsV2` with an explicit `projectRef` equal to the
URL's project ref now resolves branch projects to their parent before
checking. Previously, any explicit ref skipped that resolution, so users
with project-scoped roles were denied on branch projects. An explicit
ref that differs from the URL ref is still used as-is.

## Review instructions

### Tests

- Unit tests for `doPermissionsCheckV2` with OR-of-AND groups.
- `lib/grants.test.ts`:
- `getGrant`, `useGrant`, and `ensureGrant` across OR-of-AND groups,
branch projects, explicit scope, self-hosted, and loading/denied/error
states.
- Type tests: a grant can't be used for a different endpoint, a plain
object isn't a grant, `GrantFor`, and status narrowing.

The type test that a grant without a variant can't satisfy a variant
parameter moves to the api-keys refinement PR, since no endpoint has
variants yet.

1. Run `pnpm test:studio` and confirm the `doPermissionsCheckV2` and
`lib/grants` tests pass.
2. Run `pnpm typecheck` to confirm the grant type tests hold.
3. Check the branch-project behavior in `useAsyncCheckPermissionsV2`
with an explicit `projectRef` matching the URL's project ref.

## Checklist

Check all before review:

- [ ] 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)
2026-10-22 13:32:04 -04:00
Alexis Aguilar 831d6302c7 chore: use social sign-in on the marketing site, Dashboard, UI library, and KB (#52109)
## Problem


[supabase/supabase#52102](https://github.com/supabase/supabase/pull/52102)
renames *social login* to *social sign-in* in the docs, so every sign-in
method follows the same pattern: social sign-in, phone sign-in,
anonymous sign-in, and passwordless email sign-in. The marketing site,
the Dashboard, the UI library docs, the knowledge base, and the Docker
configuration still say "social login". Keeping one name per feature
across every surface matters: readers and AI agents moving between the
Dashboard, the docs, and the marketing site see the same term, and
search finds one name.

Part of [DOCS-1459](https://linear.app/supabase/issue/DOCS-1459).

## Solution

"Social login" is "social sign-in" in visible text on:

- **Marketing site:** the Auth product page, including an icon grid's
`aria-label`, the home page's frameworks section, the social sign-in
feature page's title, subtitle, and description, the Markdown versions
of the Auth and home pages, and the Supabase vs Firebase comparison.
- **Dashboard:** the command menu entry for Auth providers, "Auth:
Providers (Social Sign-in, SSO)".
- **UI library docs:** the link to the docs on six social auth block
pages, and one sentence on the React Router page.
- **Knowledge base:** the link text in the Auth0 migration guide.
- **Docker configuration:** the comments in `docker-compose.yml` and
`.env.example`.

Intentionally unchanged:

- **URLs, code names, and file names:** `/features/social-login`, links
to `/docs/guides/auth/social-login/...`, `handleSocialLogin` in the UI
library blocks, and image files such as `social-login.png`. A separate
PR moves the URLs to `social-sign-in` with redirects.
- **Dated and quoted content:** blog posts, an event page, a customer
story, and a quoted user tweet.

## Review notes

- **Dashboard search:** the command menu's `value` is also its search
text, so typing "social login" no longer matches the Auth providers
entry. "Social", "providers", and "SSO" still match.
- **UI library block names:** the blocks are named `social-auth` (for
example, `social-auth-nextjs`), and the name is part of their install
commands. Renaming a block breaks those commands, so that's a decision
for the UI library's owners.

## Preview links

- [Auth product
page](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/auth)
- [Home
page](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/)
- [Social sign-in feature
page](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/features/social-login)
- [Supabase vs
Firebase](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/alternatives/supabase-vs-firebase)
- [UI library: Social auth
(Next.js)](https://ui-library-git-alexisa-docs-1459-surfaces-supabase.vercel.app/ui/docs/nextjs/social-auth)
- [Knowledge base: Migrate from
Auth0](https://kb-git-alexisa-docs-1459-surfaces-supabase.vercel.app/kb/guides/migrate-from-auth0)
2026-10-22 17:31:04 +00:00
AnaandAna 2b3159381f blog: give your supabase app its own mcp server (#52119)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

- Adds the blog post "Give your Supabase app its own MCP server" at
`apps/www/_blog/2026-10-22-give-your-supabase-app-its-own-mcp-server.mdx`
- Adds the OG image, thumbnail, and two inline images under
`apps/www/public/images/blog/give-your-supabase-app-its-own-mcp-server/`
- Adds `raul_barroso` to `apps/www/lib/authors.json`

## What is the current behavior?

N/A

## What is the new behavior?

- New post at `/blog/give-your-supabase-app-its-own-mcp-server`, dated
2026-10-22
- Covers the MCP Server block, `withOAuthProtectedResource()` and
`withSupabase({ auth: 'user' })` from `@supabase/server`, writing tools
that run as the signed-in user under RLS, MCP Apps UI in the chat, and
the OAuth 2.1 server and consent page setup
- Authors: `raul_barroso`, `gregnr`, `saxon_fletcher`

## Additional context

Follow-up to the Supabase Select post
`2026-10-02-select-2026-build-anything.mdx`. The two TypeScript code
blocks use `{/* prettier-ignore */}` to keep their line breaks.
`apps/www/public/rss.xml` is not included because it is gitignored and
generated at build time.

---------

Co-authored-by: Ana <ana1337x@users.noreply.github.com>
2026-10-22 12:31:51 -04:00
AnaandAna bbbc4daab5 feat(www): add server sdk feature page (#52128)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

- Adds a Server SDK entry to `apps/www/data/features.tsx`, rendered at
`/features/server-sdk` and placed after Supabase Middleware
- Status Public Beta, available on self-hosted, tagged Authentication
and Edge Functions

## What is the current behavior?

supabase.com/features has no page for the Server SDK
(`@supabase/server`).

## What is the new behavior?

- New page `/features/server-sdk` with key benefits, when to use it, how
it works, and get started links
- Links to the Server SDK reference, the MCP Server block, the Deploy
MCP servers guide, and the authenticated MCP server example

## Additional context

Copy matches the Server SDK row in the Features Page in Notion. Placed
after Supabase Middleware so it does not touch the lines #51819 changes;
both merge cleanly in either order.

Co-authored-by: Ana <ana1337x@users.noreply.github.com>
2026-10-22 12:08:15 -04:00
Jeremias Menichelli 8b4be6cdfd feat: Add search to kb (#52089)
## Problem

There's currently no search on kb.

## Solution

- Move components used in Docs' Search V2 project to a common package
for re-usage.
 - Use these components on the Search V2 on docs
 - Refactor useDocsSearchV2 to accept endpoint for other solutions
 - Connect the search with the new `kb_search` table

<!--
## 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

For both, the kb preview and the docs preview with the search v2
experiment active using the `?docs-search-v2=search-v2-active`:

 - Open the preview link of the project
 - On the homepage, press cmd/ctrl + k or click the search trigger
- A search panel should open, type something, for example "edge
functions" and wait for results to appear
 - Clicking a result should lead to the desired page

<img width="1173" height="832" alt="Screenshot 2026-10-22 at 13 34 43"
src="https://github.com/user-attachments/assets/1c3a3d7f-2fe3-452a-91dd-20ba7be3ef1b"
/>

_Search modal working on kb preview_

## 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)
2026-10-22 17:30:49 +02:00
Alexis Aguilar 3f4ff4fd4d docs: use social sign-in and phone sign-in consistently (#52102)
## Problem

The docs used several names for the same sign-in methods: "social auth",
"social authentication", and "social login" for social providers, and
"Phone Auth" and "Phone Login" for phone. Other methods use *sign-in*,
such as passwordless email sign-in and anonymous sign-in. The Auth
overview also listed the sign-in methods without linking to their pages,
and the custom OAuth/OIDC provider note had two different versions.

Resolves [DOCS-1459](https://linear.app/supabase/issue/DOCS-1459).

## Decision

This PR first standardized on *social login*, which the [word
list](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/WORD_LIST.md)
named as an exception to *sign-in*. @czenko approved dropping the
exception, so the feature is now *social sign-in*, and every sign-in
method follows the same pattern. One name per feature keeps the docs
consistent for readers and AI agents, and new pages don't need a special
case.

## Solution

- **Social sign-in:** "social auth", "social authentication", and
"social login" are "social sign-in" in docs page titles, headings, body
text, link text, navigation labels, the getting started listing, and the
C# SDK reference specs.
- **Phone sign-in:** the Auth overview's providers list and both phone
navigation labels match the phone pages' titles.
- **Word list:** drops *social login* as an exception, and names *social
sign-in*, *phone sign-in*, and *anonymous sign-in* as feature names.
- **Auth overview:** each sign-in method links to its page.
- **Custom provider note:** a new partial,
`_partials/custom_oauth_providers_note.mdx`, is included by the
providers list and Social sign-in.
- **Expo quickstart:** both image alt texts describe their screenshots.

Intentionally unchanged:

- **URLs, code names, and file names:**
`/docs/guides/auth/social-login/...`, `SocialLoginItems`, MDX file
names, and image files such as `social-login.png`.
- **Dated and quoted content:** blog posts, an event page, a customer
story, and a quoted user tweet.
- **JS SDK reference text:** "Social Login (OAuth) providers" in
`signInWithOAuth` comes from the `supabase-js` repository.

## Related PRs

The rename spans three PRs, so the feature has one name on every
surface:

- **This PR:** the docs.
-
[supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109):
the marketing site, the Dashboard command menu, the UI library docs, the
knowledge base, and the Docker configuration comments. The UI library's
blocks keep the name `social-auth`, because the name is part of their
install commands, so renaming them is a decision for the UI library's
owners.
-
[supabase/supabase#52111](https://github.com/supabase/supabase/pull/52111):
the URLs, including the Expo quickstart's, move to `social-sign-in` with
redirects.

Merge this PR and #52109 first, then rebase #52111, because it edits
some of the same lines.

## Preview links

- [Auth
overview](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth)
- [Social
sign-in](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth/social-login)
- [Build a Social Sign-in App with Expo React
Native](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-auth)
- [Choosing the Right SSO Sign-in
Flow](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/choosing-login-flow)
- [Understanding SSO Sign-in
Flows](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/login-flows)
- [SSO Testing and Best
Practices](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/testing-best-practices)
- [Restore a Platform Project to
Self-Hosted](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/self-hosting/restore-from-platform)
- [Configure Social Sign-in (OAuth)
Providers](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/self-hosting/self-hosted-oauth)
2026-10-22 08:29:54 -07:00
Ali Waseem 99fd573d1a feat(kb): add unit test CI, search API tests, and Playwright smoke tests (#52151)
kb's unit tests weren't run in CI and there were no functional tests.
Adds a CI job for kb unit tests, unit tests for the search API, and a
bare-bones Playwright suite (`e2e/kb`) that runs against the kb Vercel
preview on PRs and against production daily.

Fixes DOCS-1506
2026-10-22 09:14:16 -06:00
Charis 592365408e fix(pg-meta): set pgrst.db_schemas to '' when the Data API is off (#52162)
## Problem

`enrichLintsQuery` in `packages/pg-meta/src/sql/studio/advisor/lints.ts`
only emitted `set local pgrst.db_schemas = ...` when `exposedSchemas`
was truthy. When the Data API is off (empty string), it emitted nothing.

The current lints rely on an unset `pgrst.db_schemas` yielding an empty
list. That only works with pg-meta's older copy of splinter. Newer
splinter falls back to `public` when the setting is unset, so once
pg-meta upgrades its splinter copy, projects with the Data API off would
get false exposure findings. Pooled backends that were reused after a
migration check can also read `''`, so relying on "unset" is unreliable.

Link:
https://linear.app/supabase/issue/FE-4708/pg-meta-lints-set-pgrstdb-schemas-when-the-data-api-is-off

## Solution

- An empty string now emits `set local pgrst.db_schemas = '';`.
- `undefined` is intentionally unchanged and still emits nothing.

This should land before the splinter copy upgrade.

## Review instructions

1. Run `pnpm vitest run test/sql/studio/lints.test.ts` in
`packages/pg-meta`. All 4 tests should pass.
2. Confirm that `enrichLintsQuery(query, '')` includes `set local
pgrst.db_schemas = '';` and that `enrichLintsQuery(query, undefined)`
includes no `pgrst.db_schemas` statement.

## Checklist

Check all before review:

- [ ] 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)
2026-10-22 11:08:07 -04:00
Ali Waseem 2aed6c5ea8 fix(kb): render callouts in troubleshooting articles (#52152)
## Problem

GFM alerts (`> [!NOTE]`, `> [!WARNING]`, …) in troubleshooting articles
render as plain blockquotes with the literal marker text, e.g.
[/kb/troubleshooting/supavisor-error-password-authentication-failed-after-password-rotation](https://supabase.com/kb/troubleshooting/supavisor-error-password-authentication-failed-after-password-rotation).

The source files in `supabase/troubleshooting` are `.mdx`, but
`fetch-federated-content.ts` writes them out as `.md`.
`rehype-admonitions` is only registered on the MDX processor in
`astro.config.mjs`. Plain `.md` stays on Astro's default pipeline, so
the alerts are never converted. Guides aren't affected because they're
all `.mdx`.

## Solution

- Write fetched troubleshooting articles with the `.mdx` extension so
they go through the MDX processor.
- Update `sync-troubleshooting-entries.ts` and
`sync-troubleshooting-updates.ts`, which only read `.md` files from that
directory.
- Clear `src/content/troubleshooting/` before fetching, so `.md` files
from earlier local fetches don't linger as duplicate entries.

Verified locally: all 231 articles compile as MDX, and no
troubleshooting page contains a literal `[!NOTE]`/`[!WARNING]` marker.

## Deploying

**After merging, redeploy production once without build cache.**
Otherwise production keeps serving the broken pages.

Astro caches each article's rendered HTML and reuses it when the
article's text is unchanged, without checking the file extension. That
cache lives in `node_modules/.astro`, which Vercel restores between
builds. Renaming `.md` → `.mdx` doesn't change the text, so a normal
build reuses the HTML rendered from the old `.md` files.

In the Vercel dashboard: kb project → the production deployment from the
merge commit → ⋯ → Redeploy → uncheck "Use existing Build Cache". After
that one clean build, the cache holds the `.mdx` output and stays
correct.

Locally, run `astro build --force` (or delete `node_modules/.astro`)
once if you've built KB before.

## Review instructions

1. On the Vercel preview, open
`/kb/troubleshooting/supavisor-error-password-authentication-failed-after-password-rotation`.
The note and warning should render as callouts. (The preview's cache was
already rebuilt cleanly by an earlier commit on this branch, so it won't
show the production cache issue.)
2. Open a couple of troubleshooting articles without callouts and check
they render the same as production.
2026-10-22 14:04:14 +00:00
Kody JacksonandClaude Haiku 5.5 2ea3566dec feat(kb) - Add in structured FAQ generation + FAQ reference (#51795)
## Problem

FAQs will be an important content type within the new KB... but 3
problems typically emerge for this content type:

1. Reuse.
2. Structure, specifically related to formatting into machine favorable
[FAQ structured data](https://schema.org/FAQPage). It's really hard to
get multiple contributors structuring these so they're easily converted
into specific component, so separating into individual, structured files
is the best approach here.
3. Tracking... b/c it's hard to know which questions specifically get
referenced on larger pages with multiple Q's.

## Solution

Adds in a new `faq` content collection that has Individual .mdx entries
per question, which are then turned into standalone pages with
structured data.

I'd prefer this structure as opposed to others b/c it addresses the
issues I mentioned above (reuse, structure, tracking).

In the future, this also sets us up to use these in various places as an
`FAQ` component or something to help re-use question / answers on
multiple pages.

## Preview links


https://kb-git-kody-devrel-717-begin-faq-structure-supabase.vercel.app/kb/topics/faqs


https://kb-git-kody-devrel-717-begin-faq-structure-supabase.vercel.app/kb/faqs/auth/supabase-auth-required-for-supabase

[Schema
validation](https://validator.schema.org/#url=https%3A%2F%2Fkb-git-kody-devrel-717-begin-faq-structure-supabase.vercel.app%2Fkb%2Ffaqs%2Fauth%2Fsupabase-auth-required-for-supabase)

<img width="1427" height="794" alt="image"
src="https://github.com/user-attachments/assets/cfb268da-f129-4c89-8ac5-a03c8c3d20fb"
/>

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-22 08:57:08 -05:00
Kody Jackson 6e656789f2 chore(docs) - Remove dupe entries in sitemap (#52083)
## Problem

Dupe entries for `/docs/reference/cli` pages due to I guess them getting
grabbed in the `Reference Sitemap` generation as well?

## Solution

Removes CLI sitemap generation script + reference from the sitemap
generation.

## Preview links

[Production](https://supabase.com/docs/sitemap.xml)
- 2898 entries
- 2773 uniques

<img width="1427" height="794" alt="image"
src="https://github.com/user-attachments/assets/1a4b329f-0fa9-458f-a80f-6e0a24f5766b"
/>
<img width="1427" height="794" alt="image"
src="https://github.com/user-attachments/assets/cbce086f-37db-4828-bb38-d62f7239e9f1"
/>


[Preview](https://docs-git-docs-sitemap-dupes-supabase.vercel.app/docs/sitemap.xml)
- 2773 entries
- 2773 uniques

<img width="1427" height="794" alt="image"
src="https://github.com/user-attachments/assets/8162dc85-14a1-49e4-95df-87cf471a3548"
/>
<img width="1427" height="794" alt="image"
src="https://github.com/user-attachments/assets/8313b037-b203-4979-bc5e-a85336bfb04f"
/>
2026-10-22 08:11:24 -05:00
Kody Jackson d4a2c464b2 chore(docs) - update troubleshooting links to new destinations (#52095)
## Problem

KB now has definitive version of the troubleshooting guides. Need to
update the in content links to match work happening in #52088.

## Preview links

N/A... all atomic changes to links, so previews not very helpful here.
2026-10-22 08:02:23 -05:00
Kody JacksonandClaude Haiku 5.5 3526a26063 chore(www) - redirect hygiene pass (#52103)
Does the following:
- Removes duplicate redirect targets (3)
- Fixes one destination with a missing leading `/`
- Removes one unused redirect
(`/blog/2021/03/08/toad-a-link-shorterner-with-simple-apis-for-low-coders`)
- Adds a missing redirect from #52088 (for the main
`/docs/guides/troubleshooting` page)
- Updates many redirect chains to instead point to their final
destination, so consolidates redirect hops.

All new destinations return 200 status codes.

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-22 08:01:31 -05:00
Jordi Enric 8ba2f0a63b feat(studio): clarify memory commitment risk thresholds FE-4467 (#51799)
## Problem

The memory commitment chart presents the kernel commit limit as a hard
failure threshold, even though committed memory can remain unused.

Closes
[FE-4467](https://linear.app/supabase/issue/FE-4467/update-memory-commitment-ui-with-risk-zones).

## Fix

Show only the highest risk threshold exceeded anywhere in the selected
time range: Acknowledgment (yellow), Problematic (orange), or Severe
(red). Draw its dashed line and place a matching Warning badge in the
card header with keyboard-accessible guidance. Show neither a warning
line nor a badge when no threshold is exceeded; equality alone does not
trigger a warning.

Thresholds remain 50%, 80%, and 90% of estimated physical RAM plus 1 GiB
of swap, using each timestamp's capacity. Missing readings stay
unavailable. Remove in-chart labels and keep only Committed in the
source legend.

Keep the vertical range anchored at zero and full estimated capacity,
expanding for observed overcommitment. A neutral dashed capacity line
follows historical infrastructure changes. Dashed references render
above the bars and area fills. The hover tooltip identifies Full
commitment capacity at that timestamp and excludes it from Total.

The developer toolbar includes a Metrics tab with a Memory commitment
selector: Default (real data), Warn, Problematic, and Severe. Simulated
states include a capacity change and apply only to the selected
project’s memory chart. Overrides are in-memory, leave real query data
untouched, and are enabled only in local/staging. Both Studio runtimes
register the tab.

## Screenshots

### Capacity changes with connected dashed lines

![Capacity changes with connected dashed
lines](https://github.com/user-attachments/assets/6773f250-4189-4039-aaeb-d82404751e39)

### Chart tooltip with full commitment capacity

![Chart tooltip with full commitment
capacity](https://github.com/user-attachments/assets/c1f02232-c04f-4646-ac51-83c9d2815bcf)

### Problematic warning and connected threshold lines

![Problematic warning and connected threshold
lines](https://github.com/user-attachments/assets/3d48f1f9-a74d-43c5-a9bc-d8f274ea5d28)

## How to test

1. Open Observability > Database and inspect Memory commitment in bar
and line views.
2. With no threshold exceeded, confirm no warning badge or threshold
line appears.
3. In the developer toolbar, open Metrics and select Warn, Problematic,
then Severe. Confirm the matching badge and only the highest crossed
warning threshold appear. Close the toolbar to inspect the chart; the
selected state remains active.
4. Hover or focus Warning to read the matching threshold and guidance.
5. Confirm the neutral capacity line steps down midway through each
simulated range.
6. Select Default (real data) to restore live readings. Reloading also
clears simulations.

Validation: 168 affected tests passed with retries disabled and shuffled
runs. Production-guard and incorrect-risk-level mutations failed as
expected; tests passed after restoring the implementation. Formatting
and code review passed.
2026-10-22 14:30:49 +02:00