mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
create-pull-request/patch
2544
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
57e5db42e2 |
docs(auth): explain how to verify JWTs without reaching the JWKS endpoint (#53696)
## Problem The signing keys guide explains how to verify asymmetric JWTs with the JWKS discovery endpoint and its caches. It doesn't help readers whose backend can't make outbound requests to that endpoint. Related to [FDBKIN-21659](https://linear.app/supabase/issue/FDBKIN-21659/improve-guidance-on-verifying-ecc-jwts-in-environments-with-network) Closes [DOCS-1716](https://linear.app/supabase/issue/DOCS-1716/explain-how-to-verify-jwts-when-the-backend-cant-reach-the-jwks) ## Solution A note at the end of "Public key discovery and caching" on `/guides/auth/signing-keys` explains how to copy the public keys into the app and load them at startup. It names the two ways to get the keys: request the discovery endpoint from a machine that can reach it, or copy each key's key set from the dashboard. Because copied keys are a cache that never expires, the note asks readers to copy every asymmetric key that isn't revoked (including a previously used key, which stays trusted after a rotation), to add a standby key before rotating to it, and to remove a revoked key by hand. Existing text in the section is unchanged. "Verifying a JWT from Supabase" on `/guides/auth/jwts` gets one sentence that links to the note, right after its advice not to cache the key set for longer, so readers who start from JWT verification find the option. Existing text on that page is unchanged. ## How to verify 1. On the docs preview, open `/docs/guides/auth/signing-keys`. 2. The note is the last content of "Public key discovery and caching", just before "Choosing the right signing algorithm". 3. The dashboard steps use the Studio labels **More options**, **View key details**, and **Public key set (JSON Web Key Set format)**, and the JWT signing keys link opens the dashboard's JWT settings. 4. The note says to add a standby key to the app before rotating to it and to remove a revoked key by hand. 5. On the docs preview, open `/docs/guides/auth/jwts`. In "Verifying a JWT from Supabase", the paragraph after "Make sure that you do not cache this data for longer" links to "Public key discovery and caching", and the link scrolls to that heading on the signing keys page. ## Checks Ran `pnpm turbo run lint` and `pnpm turbo run typecheck` filtered to the branch's changes, and Prettier on the changed files; all pass. UI labels and the single-key key set were checked against `apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/key-details-dialog.tsx` and `signing-key-row.tsx`. Key trust across rotation was checked against the key lifetime table on the same page. The link's anchor was checked against the heading slug that `getAnchor` in `packages/ui` generates. ## Checklist - [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: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
edece97bdc |
docs(auth): explain why the signup trigger must schema-qualify names (#53695)
## Problem The User Management guide shows a trigger that copies new users into `public.profiles`, but it doesn't say why the function sets `search_path = ''` and writes `public.profiles` in full. A reader who drops the schema from a table name breaks every sign-up, and the page doesn't connect that to the `Database error saving new user` response. Related to [FDBKIN-40810](https://linear.app/supabase/issue/FDBKIN-40810/document-best-practices-for-security-definer-triggers-on-authusers) Closes [DOCS-1715](https://linear.app/supabase/issue/DOCS-1715/explain-why-the-signup-trigger-must-schema-qualify-tables) ## Solution A caution admonition right after the trigger example on `/guides/auth/managing-user-data` tells readers to schema-qualify every non-built-in name in the function, such as `public.profiles`. It explains that the function sets `search_path = ''`, so Postgres can't find an unqualified name, the trigger fails, and every sign-up fails with `Database error saving new user`. The note leaves out the Auth role's own search path, because it doesn't apply once the function sets an empty one. For why the search path stays empty, it links to the "Security `definer` vs `invoker`" section of the database functions guide instead of repeating it. The SQL example and the rest of the page are unchanged. ## How to verify 1. On the preview, open `/docs/guides/auth/managing-user-data`. 2. Right after the `handle_new_user` / `on_auth_user_created` SQL example, a caution note says to schema-qualify names such as `public.profiles`, says the function's `search_path = ''` is why an unqualified name fails, and gives the `Database error saving new user` error. 3. The note's link opens the "Security `definer` vs `invoker`" section of `/docs/guides/database/functions`. 4. No other text on the page changed. ## Checks Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'` (0 errors), and Prettier `--check` on the changed file. The error string was checked against `supabase/auth` `internal/api/signup.go` (`signupNewUser` returns `Database error saving new user` when the user insert fails). The docs tests were skipped because they need Docker. A second reader reviewed the change against the style guide. ## Checklist - [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: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
fbd1e34128 |
docs(auth): note that the Kotlin Auth plugin can't be used with Firebase accessToken (#53692)
## Problem The Firebase Auth third-party guide shows Kotlin readers how to set `accessToken` on a supabase-kt client, but it doesn't say that the client then can't install the Auth plugin. A reader who adds `install(Auth)` gets an error when the client is created, and can't tell from the page that Supabase Auth sign-in methods aren't part of this setup. Related to [FDBKIN-7469](https://linear.app/supabase/issue/FDBKIN-7469/improve-documentation-for-using-firebase-jwts-with-supabase-auth) Closes [DOCS-1713](https://linear.app/supabase/issue/DOCS-1713) ## Solution The Kotlin (Android) and Kotlin (Multiplatform) tabs of the client setup section on `/docs/guides/auth/third-party/firebase-auth` now each end with the same short note: leave out the Auth plugin on a client that sets `accessToken`. A paragraph after the tabs covers every SDK: a client that sets `accessToken` can't use Supabase Auth methods, so users sign in and out with Firebase Auth on that client, and a second client without `accessToken` serves Supabase Auth when the app uses both. Each user's requests go through the client that matches how they signed in. The code samples and the TypeScript, Flutter, and Swift tabs are unchanged. ## Checks Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'`, and Prettier on the changed file. All pass. The Kotlin note was checked against supabase-kt at commit `1ea6e8e`: the Auth plugin's `init` in `Auth/src/commonMain/kotlin/io/supabase/auth/AuthImpl.kt` (line 148) throws when the client has a custom access token provider. The paragraph after the tabs was checked against the `auth` accessor guards in supabase-js (`packages/core/supabase-js/src/SupabaseClient.ts`), supabase-flutter (`packages/supabase/lib/src/supabase_client.dart`), and supabase-swift (`Sources/Supabase/SupabaseClient.swift`, whose doc comment recommends a separate client without `accessToken` for Supabase Auth). The token each client sends was checked in the same files and in supabase-kt's `AccessToken.kt`: a client with `accessToken` sends that token, and a client without it sends its Supabase Auth session. The change adds no code, so there is nothing to run. Docs tests were skipped because they need Docker. ## How to verify 1. Open `/docs/guides/auth/third-party/firebase-auth` on the docs preview. 2. In the client setup tabs, select **Kotlin (Android)**: a note below the code sample says to leave out the Auth plugin (`install(Auth)`) on a client that sets `accessToken`. 3. Select **Kotlin (Multiplatform)**: the same note appears below its code sample. 4. Below the tabs, before "Add a new Third-Party Auth integration to your project", a paragraph says a client that sets `accessToken` can't use Supabase Auth methods, that users sign in and out with Firebase Auth on that client, that a second client without `accessToken` can use Supabase Auth, and that each user's requests go through the client that matches how they signed in. It shows whichever tab is selected. 5. The TypeScript, Flutter, and Swift tabs and all code samples match production. ## Checklist - [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: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> |
||
|
|
1773f3a222 |
docs: catch up the CLI reference sidebar (#53749)
Publish the generated sidebar for the CLI reference. The published command spec already matches stable CLI v3.2.0, so this PR leaves the YAML unchanged. The sidebar exposes five additional command pages and lists commands alphabetically within each category, with no nested command groups. The old `role-connections` URL permanently redirects to `role-stats`, and the inspect guide links to the new URL. [CLI-3176](https://linear.app/supabase/issue/CLI-3176) |
||
|
|
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) |
||
|
|
a55904adc0 |
docs: update cpu limits to per worker (#53625)
## Problem Edge Function CPU limits in docs are described as applying per request but this doesn't hold true for how functions have worked. ## Solution Update CPU limits to be described as per worker. <!-- ## 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 | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | Docs | [/docs/guides/functions/limits](https://supabase.com/docs/guides/functions/limits) | [/docs/guides/functions/limits](https://correct-edge-functions-limits-supabase.vercel.app/docs/guides/your-page) | Amount of actual time spent on the CPU per worker | --> ## 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) |
||
|
|
95cf9a78a7 |
docs(cli): show config examples in TOML and JSONC (#53449)
## Problem The CLI reads `supabase/config.jsonc` (and `config.json`) since v3.1.0, but every docs page still shows `config.toml` only. There's also no page explaining the formats, how to switch, the `$schema` / `#:schema` declaration, or editor setup, and no reference pages for the new `supabase config convert` and `supabase config validate` commands. Linear: CLI-2871 ## Solution - **Dual-format examples from one source.** A new directive (`features/directives/ConfigFormats.ts`) picks up any ```` ```toml ```` fence with `name=supabase/config.toml` and renders it as `supabase/config.toml` / `supabase/config.jsonc` tabs. The JSONC is generated at build time with `convertCliConfigTomlToJsonc` from `@supabase/config`, the same converter `supabase config convert` uses, so authors only write TOML and the JSONC matches what the CLI would produce (comments included). Inside `<$CodeTabs>` the JSONC is added as an extra tab. - **The format choice sticks.** `ConfigCodeTabs` keeps the selected format in `localStorage`, so choosing JSONC switches every config example on the page and on later pages. - **Config reference.** The `usage` examples on `/guides/local-development/cli/config` use the same tabs (they were highlighted as Python before), and the intro mentions `config.jsonc`. The `remotes.<branch_name>` example now uses `[remotes.staging]`, since `<branch_name>` isn't a valid TOML key. - **New guide, "Config file formats"** (`/guides/local-development/cli/config-formats`): which file wins, minimum CLI version, `convert` and `validate`, schema declaration and versioning, and editor setup (VS Code trusted domains, Even Better TOML, Tombi, SchemaStore). - **CLI reference.** Adds `supabase-config-convert` and `supabase-config-validate` to the CLI reference nav. `cli_v1_commands.yaml` is the generated v3.2.0 reference, identical to the release bot's update in #53463, so the two PRs don't conflict. - **Content.** About 60 existing config examples across the guides, including the Branching configuration page, are tagged `name=supabase/config.toml`. Branching reads `config.json` and `config.jsonc` as well, and the Branching configuration page now says so. Non-Supabase TOML (`pyproject.toml`, `bunfig.toml`) and the v2-era `[inbucket]` before/after snippet stay TOML-only. - **Format-neutral prose.** Sentences that described the config as `config.toml` now say "your config file", naming `supabase/config.toml` and `supabase/config.jsonc` once per page. TOML section syntax in prose (`max_frequency` under `[auth.email]`) is written as key paths (`auth.email.max_frequency`), which read the same in both formats. Headings that named `config.toml` keep their old anchors. Sentences about what `supabase init` creates still say `config.toml`. - **Markdown export for agents.** `internals/generate-guides-markdown.ts` runs the same transform, so the `.md` pages served to AI agents include the JSONC example after each TOML one. - A test converts every tagged example under `content/`, so a broken TOML example fails tests instead of the build. New dependencies for `apps/docs`: `@supabase/config` (^1.8.0) and `effect` (the same `effect` version Studio pins). `config convert` and `config validate` ship in CLI v3.2.0, which is now stable. ## Review instructions 1. Open `/docs/guides/local-development/seeding-your-database` on the preview. Switch an example to `supabase/config.jsonc` and check the other examples on the page switch too. 2. Open `/docs/guides/local-development/cli/config` and check the usage examples open on JSONC. 3. Read `/docs/guides/local-development/cli/config-formats`. 4. Open `/docs/reference/cli/supabase-config-convert` and `/docs/reference/cli/supabase-config-validate`. ## Self-review Ran the `review-the-docs` local self-review (content, pipeline, and component checks) over the 54 changed pages. - No blockers. Fixed the nits it found: leftover TOML section syntax in prose (diff engines, declarative schemas, Branching, the common settings table on Local and hosted projects), a few long or ungrammatical sentences, and the conversion follow-up steps on Config file formats, now a list. - Links, custom anchors, nav wiring, and frontmatter check out. - The `.md` export on the preview shows each TOML example followed by its JSONC version. - `test-the-docs` deferred: the changed fences are config snippets, and `ConfigFormats.test.ts` already converts every tagged example. No procedural steps changed apart from the `config convert` and `config validate` commands on the new page. ## 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) |
||
|
|
aedd3d70db | docs(self-hosting): fix nginx template variable name in HTTPS proxy guide (#53740) | ||
|
|
3334709840 | fix(self-hosted): stop cutting off Envoy responses after 30s (#51620) | ||
|
|
c484941fac |
docs: add Unity quickstart (#51898)
## Problem #51257 added Unity to the Connect panel, but the docs have no Unity quickstart to go with it. ## Solution New page at `quickstarts/unity.mdx`, built from `_template.mdx`. It uses the same setup as the Connect panel: NuGetForUnity for the install and a `SupabaseManager` script for the client. I also added the nav entry, the `ai-prompts.data.ts` entry, and two notes in `_template.mdx` on where Unity differs (the key goes in the script, IL2CPP code stripping). Tested on Unity 6.3 with the `Supabase` NuGet package 8.11.0, in the editor and in an IL2CPP Windows build. Not changed: the Connect link in the shared `api_settings` partial doesn't pass `using=unity`, so it opens the default .NET variant. ## Review instructions 1. Open the docs preview at `/docs/guides/getting-started/quickstarts/unity`. 2. Optional: follow the guide in a new Unity 6.3 project. The Console should print `violin`, `viola` and `cello`. ## Checklist - [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) |
||
|
|
6bdb443398 |
docs(guides): fix code fence languages in three guides (#53722)
## Problem
Three code blocks in the docs guides use the wrong language tag, so they
are highlighted and type-checked as JavaScript or TypeScript instead of
what they are:
- `guides/database/arrays.mdx`: a SQL query is tagged `js`
- `guides/database/import-data.mdx`: the `pgloader config.load` command
is tagged `jsx`
- `guides/ai/hybrid-search.mdx`: a cURL command is tagged `tsx`
The docs style guide says JavaScript and TypeScript blocks get type
hints and are formatted by Prettier, which does not apply to these
blocks.
## Solution
Retag the blocks: `sql` for the query and `bash` for the two shell
commands (`bash` is the most common shell tag in the guides).
For the SQL block I also lowercased the keywords, per the style guide's
"Prefer lowercase for SQL". Prettier's SQL plugin rewrites
`textarray[1]` to `textarray as [1]`, which is not valid Postgres, so
the block is preceded by `{/* prettier-ignore */}`, the same convention
already used in `guides/ai/engineering-for-scale.mdx` and
`guides/api/query-plans.mdx`.
Earlier PRs fixed the same kind of problem: #11870, #19033, #14856,
#11235.
## Review instructions
1. Open the diff: only the language tags change, plus the lowercase SQL
and the `prettier-ignore` comment in `arrays.mdx`.
2. Check the three pages in the preview: the SQL block in the SQL tab of
"Working with arrays", the `pgloader` step in "Import data into
Supabase", and the cURL block in "Hybrid search".
3. Run `pnpm test:prettier`. It passes for these files with the repo's
`prettier.config.mjs`.
## 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).
(Not run: this edit only changes code fence languages, and I applied the
style guide's code block rules by hand.)
Co-authored-by: Santhosh-x23 <185920429+Santhosh-x23@users.noreply.github.com>
|
||
|
|
c18904c171 |
kb: add how to use Drizzle with Supabase as just Postgres article (#53295)
## Problem There aren't much guides on how to use Supabase as just Postgres and use it with Drizzle. ## Solution Adds a simple tutorial article in the KB for how to create an app with Drizzle & TanStack, and use Supabase as just Postgres. ## Preview links https://kb-git-tylershukert-devrel-615-drizzle-supabase-1159ba-supabase.vercel.app/kb/guides/setup-drizzle-with-postgres-and-tanstack-start <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions Provide a clear numbered procedure that the PR reviewer can walk through. Make sure the tone and the content in general follow what we would want within KB. ## 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: kodster28 <kody.jackson@supabase.io> |
||
|
|
1479013fd8 |
docs(guides): rework five how-to pages to the how-to template (#53650)
Closes DOCS-1614 ## Problem This PR is to apply the template to top-five low-hanging fruit pages -- ones that nearly match the template already and do not need to break out new topics. This PR also tests the template to see that it is working as expected. ## Solution Apply the How-to Template to 5 how-to pages. ## Preview links | Site | Live | Preview | Search for | | --- | --- | --- | --- | | Docs | [/docs/guides/storage/analytics/creating-analytics-buckets](https://supabase.com/docs/guides/storage/analytics/creating-analytics-buckets) | [/docs/guides/storage/analytics/creating-analytics-buckets](https://docs-git-docs-howto-rework-easy-pages-supabase.vercel.app/docs/guides/storage/analytics/creating-analytics-buckets) | Create an analytics bucket | | Docs | [/docs/guides/functions/debugging-tools](https://supabase.com/docs/guides/functions/debugging-tools) | [/docs/guides/functions/debugging-tools](https://docs-git-docs-howto-rework-easy-pages-supabase.vercel.app/docs/guides/functions/debugging-tools) | Debug Edge Functions locally | | Docs | [/docs/guides/queues/consuming-messages-with-edge-functions](https://supabase.com/docs/guides/queues/consuming-messages-with-edge-functions) | [/docs/guides/queues/consuming-messages-with-edge-functions](https://docs-git-docs-howto-rework-easy-pages-supabase.vercel.app/docs/guides/queues/consuming-messages-with-edge-functions) | Consume queue messages | | Docs | [/docs/guides/database/postgres/setup-replication-external](https://supabase.com/docs/guides/database/postgres/setup-replication-external) | [/docs/guides/database/postgres/setup-replication-external](https://docs-git-docs-howto-rework-easy-pages-supabase.vercel.app/docs/guides/database/postgres/setup-replication-external) | Replicate to an external Postgres | | Docs | [/docs/guides/security/rotate-leaked-api-keys](https://supabase.com/docs/guides/security/rotate-leaked-api-keys) | [/docs/guides/security/rotate-leaked-api-keys](https://docs-git-docs-howto-rework-easy-pages-supabase.vercel.app/docs/guides/security/rotate-leaked-api-keys) | Rotate a leaked API key | ## Review instructions 1. Open the live and preview links for each page side by side. 2. Check that each page opens with a value statement and ends with Next steps. 3. Check that the code blocks and the Dashboard steps match the live page. 4. On the debugging page, check that the steps run in order across the two phases. 5. On the replication page, check that the code blocks and notes render under the right steps and the numbering runs 1 to 5. 6. On the rotate page, check that the "Retire the compromised key" link in Prerequisites still jumps to its heading. ## 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) |
||
|
|
656aa60b20 |
docs(database): explain which role a security_invoker view checks (#53641)
## Problem The "View security" section of the views guide explains `security_invoker` but not which role is checked when the view is queried through the Data API, or why a `security_invoker` view over `auth` tables fails with every API key. Related to [FDBKIN-21897](https://linear.app/supabase/issue/FDBKIN-21897) Closes [DOCS-1687](https://linear.app/supabase/issue/DOCS-1687) ## Solution Adds two paragraphs of body text after the SQL example in "View security" (`apps/docs/content/guides/database/views.mdx`). The existing paragraph and SQL are unchanged. - The first paragraph says that through the Data API, Postgres checks the role from the request's API key or JWT (`anon`, `authenticated`, or `service_role`). That role needs privileges, such as `select`, on every table the view reads, not only on the view. Postgres logs show `authenticator`, the role the Data API connects as, not the role the view checks. - The second paragraph says that by default, API roles have no privileges on tables in the `auth` schema, so a `security_invoker` view over `auth.users` fails with `permission denied for table users`, even with a secret key. It points readers to storing user data in a `public` table, with a link to the User management guide. It does not recommend granting `auth` tables to any role. Needs review: the text says "by default" for `auth` grants because older projects may carry extra grants. Checks run: `prettier --check` on the changed file and `pnpm turbo run lint --filter='[origin/master]'` pass on the latest commit. `pnpm turbo run typecheck --filter='...[origin/master]'` passed on the first commit; the second commit changes only MDX prose. Docs tests were skipped because they need a local Supabase stack (Docker). ## Checklist - [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: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
58e0d8067d |
docs(rls): add an example for rows shared by two users (#53640)
## Problem The RLS guide shows policies for rows that belong to one user (`user_id`), but not for a row that two users share through two columns, such as the buyer and the seller of an order. Related to [FDBKIN-27655](https://linear.app/supabase/issue/FDBKIN-27655) Closes [DOCS-1686](https://linear.app/supabase/issue/DOCS-1686) ## Solution Adds a `### Share rows between users` section to the RLS guide, between "Write a policy for each operation" and "Specify roles in your policies". The section spans operations, so it sits beside the per-operation subsections, not among them. It has: - An `orders` table with `buyer_id` and `seller_id`. RLS is enabled, grants are revoked from `anon, authenticated`, and `select, update` are granted to `authenticated`, following the page's grant pattern. - A select policy and an update policy that both use `(select auth.uid()) in (buyer_id, seller_id)`. The update policy uses the same expression in `using` and `with check`, so the updated row must still include the user as buyer or seller. - A sentence on `insert` and `delete`: check only the user who can create or remove the row, because a delete policy that checks both columns lets one user remove the row for both. - A note that this needs no `security definer` function, with a link to "Use security definer functions" for checks against another table. - A note to index `buyer_id` and `seller_id` separately, with a link to "Add indexes". No existing section is changed. ### Verification - I ran the SQL in PGlite (Postgres 17) with an `authenticated` role, an `auth.uid()` that reads `request.jwt.claim.sub`, and an index on each of `buyer_id` and `seller_id`: - Buyer: selects 1 row and updates 1 row. Setting both IDs to a third user fails with `new row violates row-level security policy for table "orders"`. - Seller: same as the buyer. - Another user: selects 0 rows and updates 0 rows. - `explain select * from orders` with `enable_seqscan=off` shows a `BitmapOr` over both indexes, with `auth.uid()` in InitPlans. - `pnpm turbo run lint --filter='[origin/master]'` passes, with no findings on the changed file. - Prettier `--check` passes on the changed file. - The page compiles with `@mdx-js/mdx`. - `build:guides-markdown` could not run in the sandbox: it needs GitHub credentials for federated content. ## Checklist - [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: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
00c96d23f0 |
docs(auth): update Keycloak client settings to the current admin console (#53638)
## Problem The Keycloak social sign-in guide still describes the legacy Keycloak admin console: it tells readers to set "Access Type" to "confidential", a field that no longer exists. The current console configures this under **Capability config** with **Client authentication** and **Standard flow**. Related to [FDBKIN-4596](https://linear.app/supabase/issue/FDBKIN-4596) Closes [DOCS-1684](https://linear.app/supabase/issue/DOCS-1684) ## Solution In `apps/docs/content/guides/auth/social-sign-in/auth-keycloak.mdx`: - **Overview list:** the client uses **Client type** **OpenID Connect**, with **Client authentication** and **Standard flow** on under **Capability config**. The secret bullet now says **Client Secret** on the **Credentials** tab. - **One client procedure:** merged "Create a Keycloak client" and "Client settings" into one numbered procedure that follows the Create client screens: 1. **Clients** > **Create client** 2. Set **Client type** to **OpenID Connect** 3. Set **Client ID**, then **Next** 4. In **Capability config**, turn on **Client authentication** and leave **Standard flow** on, then **Next** 5. In **Login settings**, add the callback URL to **Valid redirect URIs** 6. **Save** Each step is an instruction. The labels match the Keycloak tab of the self-hosted OAuth guide. The "Client settings" heading is gone, and nothing in the repo links to its anchor. - **Client secret:** "Obtain the client secret" says to copy the **Client Secret** from the client's **Credentials** tab. - **Screenshots:** removed every screenshot of the legacy console from the page and deleted the files under `apps/docs/public/img/guides/auth-keycloak/`, which nothing else references: - `keycloak-create-realm.png` - `keycloak-add-client.png` - `keycloak-client-id.png` - `keycloak-redirect-uri.png` - `keycloak-client-secret.png` - `keycloak-openid-endpoint-config.png` No new screenshots are added. Supabase Auth's Keycloak provider uses a confidential Authorization Code flow (client secret plus code exchange). That flow needs Client authentication and Standard flow, so the guide does not ask readers to enable Direct access grants. Unchanged: the `docker run` command and the text of the realm section. Checks: `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'`, and Prettier on the changed MDX file all pass. The docs tests were skipped because they need Docker. ## Checklist - [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: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
39295dd584 |
docs(api): explain that default privilege changes leave existing tables exposed (#53639)
## Problem The Securing your API guide explains how to stop new objects in `public` from getting Data API grants. It doesn't say that this only changes the defaults for objects created later. Existing tables keep their grants and stay reachable through the Data API. Related to [FDBKIN-41883](https://linear.app/supabase/issue/FDBKIN-41883) Closes [DOCS-1685](https://linear.app/supabase/issue/DOCS-1685) ## Solution Adds text to `apps/docs/content/guides/api/securing-your-api.mdx` and rewrites no existing text: - **Default privileges:** a new paragraph says that changes to default privileges, including the platform default change, apply only to new objects, so existing tables keep their grants and stay reachable through the Data API. A per-table revoke follows it: `revoke all on table public.your_table from anon, authenticated, service_role;`. A sentence after it says that leaving out `service_role` keeps server-side access with a secret key. - **Revoke default privileges:** a new sentence says that existing tables, sequences, and functions keep their current grants. It links to the per-table revoke in `#default-privileges`. Sources for the behavior: - The Dashboard toggle's SQL (`buildDefaultPrivilegesSql` in `packages/pg-meta/src/sql/studio/database/privileges.ts`) runs only `alter default privileges … grant/revoke` statements. It runs no revoke on existing tables. - The Postgres docs for `ALTER DEFAULT PRIVILEGES` say it affects only objects created later. - `getting-started/api-keys.mdx` says that a secret key uses `service_role`, which bypasses RLS but still needs table grants. - Checked on PGlite (PostgreSQL 18.6). After `alter default privileges … revoke all on tables`, a table created earlier kept its `anon`, `authenticated`, and `service_role` grants, and a table created later had none. After the per-table revoke, `has_table_privilege('anon', 'public.old_t', 'select')` returned false. With `service_role` left out of the revoke, `service_role` still read an RLS-enabled table. With `service_role` included, it got `permission denied`. Checks run: `pnpm turbo run lint --filter='[origin/master]'` (0 errors), `pnpm turbo run typecheck --filter='...[origin/master]'`, Prettier `--check` on the changed file, and `pnpm -C apps/docs run check:removed-anchors`. `pnpm build:guides-markdown` didn't run locally: its federated-content step needs GitHub credentials. The docs tests weren't run because they need Docker. ## Checklist - [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: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
9437334289 | feat(pipelines): Update docs and UI (#53665) | ||
|
|
50efdde07d |
docs(platform): clarify SSO onboarding workflow for existing members (#53325)
- Move "Enabling SSO for an organization" after the account notes - Explain which email to use for the non-SSO owner account - Explain how to test SSO when your own account is already a non-SSO member ## Problem - The current getting "Enabling SSO for an organization" instructions leaves off certain key points that can be blockers and cause confusion. ## Solution - Add extra clarity around the steps including steps based on specific scenarios. - Move admonitions from "Enabling SSO for an organization" to the "How SSO works in Supabase" section as they belong there not ## 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) - [X] If I wrote a new docs topic or edited an existing topic, I used the `/review-the-docs` --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
8feb4a04a4 |
fix(docs): correct OpenCode MCP config, Python type examples, and small docs gaps (#53637)
## Problem
Several docs snippets and statements are wrong or incomplete:
- The OpenCode MCP config generated by `McpUrlBuilder` uses the old
shape (`mcp.supabase` with `enabled: true`). Current OpenCode config
expects servers under `mcp.servers.<name>` and uses `disabled` instead
of `enabled`, so the snippet does not register the server.
- The Python type generation guide builds Pydantic models with
`PublicMovies(m)`. `BaseModel` does not accept a positional dict, so the
example raises `TypeError`.
- The API keys page does not mention that the Data API OpenAPI root
(`GET /rest/v1/`) accepts only secret keys, so a publishable key gets a
401 there.
- The logs page says retention depends on the plan but does not give the
values.
- The Auth Hooks page names the Send SMS hook secret
`SEND_SMS_HOOK_SECRETS`, while the Send SMS hook page, the other hook
pages, and the self-hosting guide use the singular `..._HOOK_SECRET`.
## Solution
- `packages/ui-patterns/src/McpUrlBuilder`: OpenCode config now emits `{
"mcp": { "servers": { "supabase": { "type": "remote", "url": ... } } }
}`. Updated `OpenCodeMcpConfig`, `isOpenCodeMcpConfig`, and `getMcpUrl`
to match.
- `generating-python-types.mdx`: use `PublicMovies.model_validate(m)` in
the select, insert, and update examples.
- `getting-started/api-keys.mdx`: add a Known limitations bullet about
`GET /rest/v1/` requiring a secret key, with table routes or
`/auth/v1/health` as the check for a publishable key.
- `observability/logs.mdx`: add a per-plan retention table (Free 1 day,
Pro 7 days, Team 28 days, Enterprise 90 days), matching
`packages/shared-data/pricing.ts`.
- `auth/auth-hooks.mdx`: rename `SEND_SMS_HOOK_SECRETS` to
`SEND_SMS_HOOK_SECRET`.
Checks run: `pnpm turbo run typecheck --filter='...[origin/master]'`
(passed, run with `--concurrency=1` after the first run was OOM-killed),
`pnpm turbo run lint --filter='[origin/master]'` (passed, no errors),
`vitest run src/McpUrlBuilder` in `packages/ui-patterns` (37 passed),
and Prettier on changed files. Docs tests were skipped because they need
Docker.
## Review instructions
1. On the docs preview, open `/docs/guides/getting-started/mcp`, select
OpenCode, and confirm the config shows `mcp.servers.supabase` with
`type: "remote"` and the URL, and no `enabled` field.
2. Open `/docs/guides/ai-tools/mcp`, select OpenCode, and confirm the
same config.
3. Open `/docs/guides/api/rest/generating-python-types` and confirm the
select, insert, and update examples use
`PublicMovies.model_validate(m)`.
4. Open `/docs/guides/getting-started/api-keys#known-limitations` and
confirm the bullet about `GET /rest/v1/` accepting only secret keys.
5. Open `/docs/guides/observability/logs` and confirm the retention
table lists Free 1 day, Pro 7 days, Team 28 days, Enterprise 90 days.
6. Open `/docs/guides/auth/auth-hooks` and confirm the Send SMS examples
use `SEND_SMS_HOOK_SECRET`, not `SEND_SMS_HOOK_SECRETS`.
## Checklist
- [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: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
|
||
|
|
9006cd43dc |
docs: fix article error in pgTAP guide (#53397)
## Problem In `apps/docs/content/guides/database/extensions/pgtap.mdx:14`, the pgTAP description reads "It is an framework …". "framework" starts with a consonant sound, so the article should be "a". ## Solution Change "an framework" to "a framework". Docs-only change, no behavior change. Fixes #53396 Co-authored-by: Kody Jackson <kody.jackson@supabase.io> |
||
|
|
3da15da39a |
chore(docs) - fix missing imports for supabase server + remove comment from snippet (#53635)
## Problem Missing imports + a comment that prevents easy copy / paste in the edge functions quickstart. Both of these actually caused the Edge Functions quickstart to fail / not work as intended. ## Solution Adds imports + removes comment ## Preview links https://docs-git-kody-devrel-874-quickstart-error-codes-a3bfdf-supabase.vercel.app/docs/guides/functions/quickstart --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
ea600239ce |
docs: link account MFA guide to the lockout troubleshooting guide (#53592)
## Problem The [account MFA guide](https://supabase.com/docs/guides/platform/multi-factor-authentication#enable-mfa) says Supabase can't restore access if you lose all your MFA credentials. That conflicts with the rewritten troubleshooting guide in supabase/troubleshooting#368, which walks users through recovery codes, a second authenticator app and contacting support. ## Solution Replace the caution under **Enable MFA** with a short paragraph. It recommends a second authenticator app and saved recovery codes, then links to the troubleshooting guide for users who can't complete the MFA step. ## Review instructions 1. Open `/docs/guides/platform/multi-factor-authentication#enable-mfa` in the docs preview. 2. Check that the "we will not be able to restore access" caution is gone and the new paragraph links to the troubleshooting guide Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
671c94e868 |
chore(docs,kb) - Update 301 destinations to final resolution + fix some 404s (#53553)
## Context Lots of links that initially go to 301's within docs / kb. Updates these to their resolved target. Ask your Claude Code to review the new destinations programmatically. --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
ceae23e199 |
docs: add cross-links in guides (AI, API, Auth, Database, Functions, deployment) (#53560)
## What Adds internal cross-links to docs guides ## Testing - Prettier passes on the changed lines. - Docs build passes (`pnpm build --filter=docs`). - Docs link e2e run locally against the production build for every changed page across this PR --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
8d6d27ae4a |
docs: add cross-links in guides (getting started, platform, storage, and others) (#53561)
Adds internal cross-links to docs guides ## Testing - Prettier passes on the changed lines. - Docs build passes (`pnpm build --filter=docs`). - Docs link e2e run locally against the production build for every changed page across this PR. --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
edb2937b44 |
feat: update mgmt api docs (#53136)
This PR updates Management API docs automatically. This regenerates: - Management API specs and sections - Personal Access Tokens permission-to-endpoint table - Personal Access Tokens MCP tool permissions table Sources include the live Management API specs, MCP permission map, and Studio's shared permission catalog. Co-authored-by: phamhieu <689843+phamhieu@users.noreply.github.com> Co-authored-by: Ali Waseem <waseema393@gmail.com> |
||
|
|
1b5d89f78a | fix(self-hosted): turn off CORS on the Studio routes at the API gateway (#53546) | ||
|
|
f80095cd92 | docs(self-hosted): add a guide for configuring the OAuth 2.1 server (#53544) | ||
|
|
ec0c3f3762 | fix(self-hosted): open the OAuth 2.1 server endpoints at the API gateway (#53542) | ||
|
|
e20bf8829c |
chore(studio,docs,www) - update [YOUR-PASSWORD] to be [YOUR-DATABASE-PASSWORD] for semantics + subsequent search terms (#53531)
## Problem Flavor of #41370 , but we can see that at least some traffic for this search query is searching using phrases like `supabase password reset` and `supabase password` and then accidentally find themselves on the `/docs/guides/auth/passwords` page. You can see this through user flow mappings in PostHog + also in search query traffic in Google Search Console. <img width="1261" height="669" alt="image" src="https://github.com/user-attachments/assets/70af109c-dbc8-42c2-887a-63133f3f82d5" /> <img width="1128" height="669" alt="image" src="https://github.com/user-attachments/assets/52358d87-55a8-4491-ad26-a0d390ebe55b" /> ## Solution Renames the placeholder across docs / studio / www to `[YOUR-DATABASE-PASSWORD]` and adds an admonition to the current `/docs/guides/auth/passwords` to direct folks to the correct place. Might also be a UX fix in the dash.... but poking into it feel like we already have a lot of affordances there already (`Reset database password` button on the direct connection panel + quick search action for `Reset database password`). ## Preview links ### Studio `https://studio-staging-obj7agk56-supabase.vercel.app/dashboard/project/$PROJECT?showConnect=true&connectTab=direct` <img width="1128" height="801" alt="image" src="https://github.com/user-attachments/assets/420c8582-97bd-45ff-914e-ea9bb25aed91" /> ### Docs https://docs-git-kody-devrel-866-database-password-placeholder-supabase.vercel.app/docs/guides/auth/passwords <img width="838" height="463" alt="image" src="https://github.com/user-attachments/assets/c4bb0242-6ff7-4de7-90c7-386818649209" /> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
2445edf11f |
chore(www) - SEO tweaks (verbiage + h1 tweaks on products pages) (#53374)
## Problem - Current `/product` pages could use a bit of SEO optimization for terms - Current product pages include marketing copy within the H1 - Few other tweaks in docs. ## Solution Moves marketing subtitles out of the `/database` / `/compute` / etc h1s. Updates a few keywords based on seo data within pages + docs ## Preview links | Before | After | | --- | --- | | [/database](https://supabase.com/database) | [/database](https://zone-www-dot-com-git-kody-devrel-861-seo-term-t-9418b2-supabase.vercel.app/database) | --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
cf37022b6b | fix(self-hosted): sandbox Storage, REST and Functions responses at the API gateway (#53466) | ||
|
|
2a9b02a99a | feat(docs): Improve Pipelines docs and UI (#53450) | ||
|
|
39cf54f3c4 |
docs: add cross-links to related guides and references (#53384)
## What Adds internal cross-links where a page mentions a product, feature, or concept that has its own canonical page. This PR covers docs guides under `apps/docs/content/guides`, excluding the shared partials (separate PR). ## How links were chosen - One canonical target per keyword, preferring docs guides over marketing or blog pages for docs content. - Only plain prose mentions: nothing inside headings, code, frontmatter, existing links, or UI labels. - One link per sentence, and no second link to the same target on a page. ## Testing - Prettier passes on all changed files. - Not yet run: docs build and internal link test, KB build. Draft until those are checked. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
80a8b3a7d2 |
docs: add cross-links in shared partials + fix broken links flagged by e2e (#53383)
## What Adds internal cross-links where a page mentions a product, feature, or concept that has its own canonical page. This PR covers the two shared docs partials, so each link appears once in source and propagates to every page that includes the partial (the social-login setup pages and the quickstarts). ## How links were chosen - One canonical target per keyword, preferring docs guides over marketing or blog pages for docs content. - Only plain prose mentions: nothing inside headings, code, frontmatter, existing links, or UI labels. - One link per sentence, and no second link to the same target on a page. ## Testing - Prettier passes on all changed files. - Not yet run: docs build and internal link test, KB build. Draft until those are checked. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
22ea45a3ba |
feat: getting started v2 (#52511)
## Problem * the getting started page is a stack of content listings: an overview, use cases, framework quickstarts and tutorials * a new reader must find a path in that list, and the page gives no commands or agent prompt for their setup ## Solution * adds a stepper to the getting started page, so a reader gets the steps and an agent prompt for their setup * adds the `docs-getting-started-v2` posthog flag, so the stepper and the current page can run as an a/b test * adds events for stepper choices, link clicks and prompt copies, so the test can compare the two pages * adds a markdown export of the stepper, so the `.md` page lists every path for agents * moves the iso shapes from kb into `ui-patterns`, so the docs feature cards use the same shapes as the kb heroes * changes the edge functions shape to a flat puzzle piece, because the old shape had too many parts <!-- linear:table-colwidths:397,397 --> <table> <thead> <tr> <th>state</th> <th>preview</th> </tr> </thead> <tbody> <tr> <td>after</td> <td> https://github.com/user-attachments/assets/7127d817-4240-4d08-a1c9-6ada1b1b2563 </td> </tr> </tbody> </table> ## Review instructions 1. open [/docs/guides/getting-started?docs-getting-started-v2=stepper](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper>) and make sure that the stepper shows with agent selected 2. select next.js and the auth card, then make sure that the setup prompt names next.js and has a step for auth 3. open [/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs>) and make sure that connect your app shows the install command and the quickstart 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>) |
||
|
|
27602135da |
fix(docs): correct MFA recovery instructions (#53348)
## Problem The MFA guide contains a stray quote, code fence, and editorial note. Its replacement instructions also tell everyone to add an authenticator first, but Studio hides **Add MFA method** when two authenticators are registered. ## Solution Remove the stray text and explain the replacement order for accounts with one or two authenticators. Keep a working factor registered to avoid disabling MFA and deleting recovery codes. Validated with Prettier, Markdown generation, and inspection of the generated guide. ## Review instructions 1. Open `/docs/guides/platform/multi-factor-authentication#sign-in-with-a-recovery-code` in the docs preview. 2. Check that the replacement instructions cover one and two registered authenticators, with no stray quote, code fence, or editorial note. 3. Confirm the regeneration and disable-MFA sections remain separate sections. ## Checklist - [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) |
||
|
|
d11ae1a1ed |
docs(functions): update logging page for new logs viewer, clarify bodies are not logged (#53315)
<!-- claude-slack-attribution --> _Requested by **Kalleby Santos** · [Slack thread](https://supabase.slack.com/archives/C0BB4MAJW58/p1794485219774189?thread_ts=1794485219.774189&cid=C0BB4MAJW58)_ ## Problem **Before:** The Edge Functions logging page said the **Invocations** view includes request and response "headers, body, status codes, and execution duration". Customers asked where to find body values, but bodies are not retained, and only some headers are kept. The page also described separate **Invocations** and **Logs** views with an outdated screenshot. **After:** The page says plainly that request and response bodies are not logged or retained, and that only a subset of headers is kept (with the list from the `function_edge_logs` schema). It now describes the current viewer: Edge Functions > a function > **Logs** tab, with one list of invocations and console logs/events, the filter bar (time range, log type, level, event message), **Live**, and the detail panel (**Overview**, **Raw JSON**, **Timeline**, **User**). Existing content (console methods, event types, limits, header logging tip) is unchanged. ## Solution Updates `apps/docs/content/guides/functions/logging.mdx` to remove the incorrect body claim and document the new logs viewer. **How:** UI names and behavior were checked against the Studio source (`apps/studio/components/interfaces/UnifiedLogs`, `Functions`, and the `functions/[functionSlug]/logs` page). The header list comes from the `function_edge_logs` schema in `packages/shared-data/log-constants.ts`. **Skipped:** No new screenshots, since I had no demo project with a deployed function to capture them from. I removed the outdated `function-logs.png` from this page because the text no longer matches it. The same image is still used in `error-handling.mdx` (Error monitoring section) and is still outdated there. I left the file and that page alone. **Unverified / for review:** - The request and response header lists are taken from the `function_edge_logs` schema in the repo. Please confirm they match what is actually retained on the logflare source. - The retention statement for bodies comes from the request, not from a code path in this repo. - The new viewer is the "Updated Logs interface" feature preview, which is on by default on the platform. I added a short note for users who turned it off (legacy **Invocations** and **Logs** tabs). I did not verify the legacy view in detail. - The **Timeline** tab and **Attributes** sections only render when the related logs backend and metadata features are enabled, so some users may not see them. ## Review instructions 1. Open the preview of `/docs/guides/functions/logging`. 2. Check that no sentence claims invocation logs include a request or response body. 3. Compare the "Explore logs in the Dashboard" section against a function's **Logs** tab in the Dashboard. 4. Confirm the header lists under "What invocation logs contain" are correct. ## 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). (Not run; I followed the style guide manually. Prettier check passed with equivalent standalone options.) --- _Generated by [Claude Code](https://claude.ai/code/session_01M8V2QRDBurL1TZmpGGgjDK)_ Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Kalleby Santos <105971119+kallebysantos@users.noreply.github.com> |
||
|
|
9290edd4ff |
docs(observability): SQL query examples for request correlation and user activity (#50748)
Adds SQL query conventions and examples to the logs querying guide. **`advanced-log-filtering.mdx`** - New section: correlating requests by `request_id` (from `sb-request-id` header) and `trace_id` (from W3C `traceparent`). Includes a note on cache hits — if `cf_cache_status` is `HIT`, no downstream logs exist for that request. - New section: following a user's activity across services via `auth_logs` + `request_id` fan-out, and investigating Edge Function invocations using `execution_id` to join `function_edge_logs` and `function_logs`. **`log-field-reference.mdx`** - `traceparent` added to the captured request headers list. - Capture limits note: `request_id`, `trace_id`, and `span_id` may appear on any source but are not populated on every event. ## Review Pages to check in preview: - `/docs/guides/observability/advanced-log-filtering` - `/docs/guides/observability/log-field-reference` ## Checklist - [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 references [WORD_LIST](https://github.com/supabase/supabase/blob/master/apps/docs/WORD_LIST.md) and the docs [CONTRIBUTING](https://github.com/supabase/supabase/blob/master/apps/docs/CONTRIBUTING.md) guide --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|
|
5ca501cd24 |
chore(docs) - Remove inline Accordion component for machine readability -> details/summary instead (#53274)
## Problem Accordion components -- as currently constructed -- aren't machine readable b/c they require JS. Additionally, they aren't heavily used at all. ## Solution Removes accordion component from codebase + moves existing usage into `<details>` / `<summary>` components. Adds some default styling for the new HTML pattern so they look similar. Could also refactor accordion to auto-template out details/summary too. No strong pref here. ## Limits The sidebar navigation accordions use radix-ui directly and are unchanged. ## Preview links ### Before [Creating a client (before)](https://supabase.com/docs/guides/auth/server-side/creating-a-client#nextjs-utility-functions) https://github.com/user-attachments/assets/fd320358-7a35-46f8-b7b4-177b023e748e ### After [Creating a client (before)](https://docs-git-kody-devrel-850-remove-accordions-docs-mdx-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client#nextjs-utility-functions) https://github.com/user-attachments/assets/22049184-9157-46d2-a3a6-64ca2c991e24 --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
628557490e |
docs: fix grammar in RUM extension guide (#50291)
Tiny docs fix in the RUM extension guide: - `The does` → `This does` - `allows to order` → `allows ordering` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Corrected a grammatical typo in the `rum_anyarray_addon_ops` description. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: mrchatam <mrchatam@users.noreply.github.com> Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
38f9bac61f |
fix(docs): express ssr client cookie (#53179)
## Problem - the express server client in the ssr "creating a client" guide calls `serializeCookieHeader(name, value)` without `options` - the auth cookies then have no `path` and no `maxAge`, so the browser limits them to the request path and drops them when the browser closes ## Solution - adds the cookie `options` to `serializeCookieHeader` in the express `setAll`, so the auth cookies keep the settings from `@supabase/ssr` - changes the express sample to match the other server samples on the page <!-- ## 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 - found that issue while i ran the docs agent feedback evals ## Review instructions 1. visit [/docs/guides/auth/server-side/creating-a-client#express-create-clients](https://docs-git-antlio-fix-docs-express-cookie-options-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client#express-create-clients) and select the express tab 2. make sure that the preview `setAll` in `lib/supabase.js` reads `({ name, value, options })` and passes `options` to `serializeCookieHeader` ## 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) |
||
|
|
68deb2f329 |
docs(storage): explain CDN caching for authenticated private files (#53160)
Add an "Authenticated URLs and CDN caching" section to the Smart CDN page. Responses from the authenticated endpoint can be served from cache after an RLS change or sign-out, until the user's JWT expires. Document purging the CDN cache, lowering the access token expiry, and revocation options (server check, S3 API). ## Problem Questions related to authenticated endpoint caching ## Solution Clarify caching behaviour ## 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 `/review-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> |
||
|
|
bbe468ee0d |
docs: add recovery codes to the account MFA guide (#53159)
_Do not merge until the recovery codes feature flag is removed (or opened to all users)._ ## What Adds a short **Recovery codes** section to the [account MFA guide](https://supabase.com/docs/guides/platform/multi-factor-authentication) and removes the note that Supabase doesn't provide recovery codes. The new section covers: - What recovery codes are: 10 single-use codes, shown once when you enable MFA. - How to sign in with a recovery code from the two-factor authentication screen, including the temporary lock after 5 incorrect codes. - How to generate codes for an existing MFA setup, and how to regenerate them. - That removing your only authenticator app disables MFA, and disabling MFA deletes your recovery codes. Fixes PROD-719 ## Self-review | Check | Result | | --- | --- | | Prettier | Pass | | `pnpm build:guides-markdown` | Pass, page renders as expected in `public/markdown/guides/platform/multi-factor-authentication.md` | | Style guide critic pass | Resolved, except `02-elements.md#pair-dashboard-steps-with-a-terminal-option`: account recovery codes have no API or CLI path | | `test-the-docs` | Not applicable, no runnable snippets | ## Needs review - Draft until recovery codes are available to all accounts. - UI labels (**Unable to sign in?**, **Authenticate using a recovery code**, **Generate recovery codes**, **Regenerate**) match the current Studio source. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> |
||
|
|
701730e3eb |
chore(kb,www,docs) - Add in relevant cross-links between the Supabase Component Library and kb,www,docs (#53237)
## Problem After #53183 and #52567 have been addressed, we should strengthen the interconnections between the UI library and the rest of the Supabase ecosystem. ## Solution - Adds contextual links for `/library`, Auth / Realtime category pages, and specific Auth / Realtime components. Hits top-level product pages, docs, kb, and blogs. ## Preview links N/A, link changes are relatively atomic so easier to review without many preview links. --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
0daddc4551 |
feat(docs): agent feedback capabilities (#53115)
## Problem - an agent that finds a wrong docs page leading to use a different method gets no report - mcp server and the cli can send feedback, but no page tells agents to report docs problems ## Solution - adds a note for ai agents at the top of each guide's markdown version, so agents report wrong pages - adds an agent-only instructions page with a disabled nav entry, so agents learn how to write and send a report - adds a "report documentation problems" section to the ai tools guide, so users can approve, turn off or delete reports - changes the mcp guide to say that `submit_feedback` takes documentation feedback, so the tool list matches the new use - adds the instructions page to `llms.txt`, so agents that start from supabase.com find it Linear: DEPR-698 <!-- ## 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 the preview [/docs/guides/auth.md](https://docs-git-anthonylio-depr-698-explore-agent-feed-2bdb50-supabase.vercel.app/docs/guides/auth.md), and make sure that the page starts with the "Note for AI agents" blockquote 2. make sure that the note links to `agent-feedback.md`, tells the agent to read it before the final reply, and asks "Send this report to Supabase?" 3. open the preview [/docs/guides/ai-tools/agent-feedback.md](https://docs-git-anthonylio-depr-698-explore-agent-feed-2bdb50-supabase.vercel.app/docs/guides/ai-tools/agent-feedback.md), and make sure that the page has the five-line report template and no agent note 4. open the preview [/llms.txt](https://zone-www-dot-com-git-anthonylio-depr-698-explor-a825b7-supabase.vercel.app/llms.txt), and make sure that it lists "Report documentation problems" with the `.md` link ## 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) |
||
|
|
5a3e1fd871 |
docs(logs): document unified CLI logs DEBUG-267 (#53086)
## Problem The unified CLI logs commands need a public guide. The existing SQL guide also says the CLI cannot query hosted ClickHouse logs, which is only true for v2. ## Fix Add **Logs in the CLI** to the Observability navigation and overview cards. Cover local and remote queries, filters and time ranges, interactive versus JSON output, exports, SQL, command options, migration, and troubleshooting. Include screenshots of the explorer and full record details using demo local logs. Keep the v2 CLI reference unchanged and update links from the existing logs and SQL guides. Merge after the CLI version with unified logs is released. Tracks [DEBUG-267](https://linear.app/supabase/issue/DEBUG-267) and [DEBUG-268](https://linear.app/supabase/issue/DEBUG-268). ## How to test Open `/docs/guides/observability/cli-logs` in the preview. Check the section order, images, option tables, and links from Observability, Logs in Studio, and Query logs with SQL. Local examples were verified using the CLI PR build and retained log fixtures. Hosted examples were checked against the implementation but were not rerun against a live project for this docs change. ## Screenshots Explorer showing demo local logs:  Full selected record:  |
||
|
|
396358c7cb |
chore(docs,www) - added, deleted, redirected URLs (#53097)
## Problem added, deleted, redirected URLs + urls for new blog posts ## Preview links N/A --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
fcd79b69eb |
chore(docs): webhook secret leak documentation
Document the new events we recently shipped that fire when a credential is leaked belonging to a project/org. PR: https://github.com/supabase/supabase/pull/53000 Co-authored-by: Paweł Gulbinowicz <pawel.gulbinowicz@supabase.io> |