mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
bot/decrease-eslint-ratchet-baselines
8754
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2d50251127 |
docs: fix serverless typo in connection pooling diagrams (#53418)
## Problem The light and dark connection pooling diagrams spell “serverless” as “severless” in both client labels. ## Solution Correct all four labels to “SERVERLESS” in the two existing PNG assets. Preserve the original lettering, colors, layout, and 1851 × 907 dimensions. ## Self-review Visually checked both images and compared decoded pixels against the originals. All changed pixels are confined to the client labels; the rest of each diagram is unchanged. `git diff --check` passes. No code or documentation references changed, so build and unit tests were not run. Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
5c26d14813 |
docs(realtime): use public.rooms_users consistently in authorization examples (#53624)
## Problem The Realtime Authorization guide creates `public.rooms_users`, but two paragraphs call it `public.room_users`, and the six example policies on `realtime.messages` use the bare name `rooms_users`. Someone copying from the page sees two table names and has to guess which one is right. ## Solution - Fix the name in the two paragraphs (`room_users` to `rooms_users`). - Write `public.rooms_users` in the six example policies, the same name the `create table` at the top of the page uses. Qualifying the table is also one of the first things suggested when debugging a private-channel policy in supabase/realtime#1111, so the examples now match that advice. Docs only, no behavior change. This PR was prepared with AI assistance and reviewed before opening. Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
f1e56e127f |
fix(docs): broadcast Realtime DELETE events to the record topic (#53579)
Closes #53584 ## Problem Two Realtime guides attach `realtime.broadcast_changes` triggers that fire on `DELETE`: - `apps/docs/content/guides/realtime/broadcast.mdx` — `your_table_changes`, used by a trigger declared `AFTER INSERT OR UPDATE OR DELETE` - `apps/docs/content/guides/realtime/getting_started.mdx` — `broadcast_message_changes`, used by a trigger declared `AFTER INSERT OR UPDATE OR DELETE` Both build the broadcast topic from the new row only: ```sql 'topic:' || NEW.id::text 'room:' || NEW.room_id::text || ':messages' ``` On `DELETE`, `NEW` is `NULL`, so the concatenation produces a `NULL` topic. `realtime.broadcast_changes` passes that to `realtime.send`, which inserts into `realtime.messages`. In `supabase/realtime`, `realtime.messages.topic` is `text not null`, and `realtime.send` wraps its insert in an exception handler that downgrades the failure to a warning: ```sql EXCEPTION WHEN OTHERS THEN RAISE WARNING 'WarnSendingBroadcastMessage: %', SQLERRM; ``` So the trigger succeeds, logs only a warning, and no `DELETE` message reaches subscribers. The sibling guide already handles this correctly: `subscribing-to-database-changes.mdx` uses `coalesce(NEW.id, OLD.id)`. ## Fix Use `coalesce(NEW.id, OLD.id)` in `broadcast.mdx` and `coalesce(NEW.room_id, OLD.room_id)` in `getting_started.mdx`, matching `subscribing-to-database-changes.mdx` so all three guides teach the same pattern. The `realtime.send` example in `getting_started.mdx` is unchanged because its trigger is `AFTER INSERT` only, where `NEW` is always present. One caveat: `coalesce` falls back to `OLD` whenever `NEW` is null, including an `UPDATE` that clears a nullable `room_id`. That broadcasts to the former room, where the `CASE` form would emit a null topic and send nothing. The example reads as if a message always belongs to a room; for a schema where `room_id` can be cleared, use `CASE WHEN TG_OP = 'DELETE' THEN OLD.room_id ELSE NEW.room_id END`. ## Verification I tested the exact edited SQL blocks against `supabase/postgres:17.6.1.143`, using the real `realtime.broadcast_changes` and `realtime.send` definitions from `supabase/realtime` and a `realtime.messages` table that keeps the production `topic text not null` constraint. Before the fix, running `INSERT`, `UPDATE`, then `DELETE` on the `getting_started.mdx` snippet: ```text WARNING: WarnSendingBroadcastMessage: syntax error at or near "NULL" event | topic | op --------+-----------------+-------- INSERT | room:7:messages | INSERT UPDATE | room:7:messages | UPDATE (2 rows) ``` After the fix, running insert, update body, update `room_id` to `NULL`, move to room 9, then delete: ```text event | topic | op | new_room | old_room --------+-----------------+--------+----------+---------- INSERT | room:7:messages | INSERT | 7 | UPDATE | room:7:messages | UPDATE | 7 | 7 UPDATE | room:7:messages | UPDATE | | 7 UPDATE | room:9:messages | UPDATE | 9 | DELETE | room:9:messages | DELETE | | 9 (5 rows) ``` The `room_id` to `NULL` update follows the caveat above; `INSERT`, a normal `UPDATE`, a room move, and `DELETE` all use the expected topic. The `broadcast.mdx` snippet produces `INSERT`/`UPDATE`/`DELETE` messages with `topic:<id>`. Prettier passes on both files. ## Authorship and review This PR is written by me. AI assisted with drafting and with setting up the test harness, but I reviewed and audited every change myself and I stand behind it. ## 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: Nik Richers <nrichers@gmail.com> |
||
|
|
a74afc61cd |
docs(hypopg): fix function names in the functions list (#53514)
## Problem Three entries in the [HypoPG functions list](https://supabase.com/docs/guides/database/extensions/hypopg#functions) name functions that don't exist, so copying them fails with `function ... does not exist`: - `hypo_create_index(text)` is `hypopg_create_index(text)` (the example on the same page already uses it) - `hypopg_get_index_def(oid)` is `hypopg_get_indexdef(oid)` - `hypopg_get_relation_size(oid)` is `hypopg_relation_size(oid)` Source: [`hypopg--1.4.5.sql`](https://github.com/HypoPG/hypopg/blob/REL1_STABLE/hypopg--1.4.5.sql) and the upstream [usage docs](https://hypopg.readthedocs.io/en/rel1_stable/usage.html#manipulate-hypothetical-indexes). ## Solution Use the real function names. ## Review instructions 1. Compare the list with the `CREATE FUNCTION` statements in the linked `hypopg--1.4.5.sql`. ## 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) Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
9964968b53 |
docs(auth): explain that supabase-js refreshes the session automatically (#53698)
## Problem The User sessions guide explains what refreshing the session means, but not who does it. Readers building browser apps can't tell whether they need to write their own refresh logic for when the access token expires. Related to [FDBKIN-12783](https://linear.app/supabase/issue/FDBKIN-12783/provide-clear-documentation-and-examples-for-jwt-refresh-in-react) Closes [DOCS-1718](https://linear.app/supabase/issue/DOCS-1718/explain-that-supabase-js-refreshes-the-session-automatically-in-the) ## Solution The "What is a session?" section of `/guides/auth/sessions` now says, right after the refreshing-the-session sentence, that `supabase-js` refreshes the session on its own (`autoRefreshToken` defaults to `true`), so a browser app needs no refresh code. It notes that auto refresh pauses while the tab is hidden and checks the session again when the tab is visible. It shows a minimal `onAuthStateChange` listener for the `TOKEN_REFRESHED` event and points to `refreshSession()` for a forced refresh. Timing is described qualitatively, so the text stays true if the client's intervals change. ## Checks The facts come from `@supabase/auth-js` 2.117.3: the default `autoRefreshToken: true` in `GoTrueClient.ts`, the visibility handling in `_onVisibilityChanged`, and the tick and expiry-margin constants in `lib/constants.ts`. The code block on the page, with its hidden setup above `// ---cut---`, passes `tsc --strict` against `@supabase/supabase-js` 2.117.3. Also ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'` and Prettier on the changed file, and all passed. The reference link slugs `auth-onauthstatechange` and `auth-refreshsession` come from `apps/docs/spec/common-client-libs-sections.json`. A second reader reviewed the change against the style guide. ### How to verify 1. On the preview, `/docs/guides/auth/sessions` shows the new paragraphs under "What is a session?", directly after "This process is called refreshing the session." 2. The note says `supabase-js` refreshes the session automatically with `autoRefreshToken` defaulting to `true`, says auto refresh pauses while the tab is hidden, and names `TOKEN_REFRESHED` and `refreshSession()`. 3. The code block shows only the `onAuthStateChange` listener; the client setup is hidden. 4. The `onAuthStateChange` and `refreshSession()` links open their JavaScript reference entries. ## 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> |
||
|
|
5fb0be08b1 |
docs: say where to reset the database password in the connection guide (#53697)
## Problem Step 4 of "Get your connection string" in the Postgres connection guide tells readers to put their database password in the connection string. It doesn't say that the dashboard stops showing the password after the project is created, or how to get a new one. Related to [FDBKIN-4770](https://linear.app/supabase/issue/FDBKIN-4770/improve-documentation-and-navigation-for-finding-the-database-password) Closes [DOCS-1717](https://linear.app/supabase/issue/DOCS-1717/say-where-to-reset-the-database-password-in-the-connection-guide) ## Solution A new paragraph, indented under step 4 of `/guides/database/connecting-to-postgres`, says that the dashboard doesn't show the database password after you create the project. It points readers to the **Reset database password** option in the Connect dialog and to the Database Settings section (`#database-password`), and warns that a reset breaks existing connections that use the old password. The wording matches the quickstart connection-string partial and the dashboard's own copy. Step 4's own text, including the percent-encoding guidance, is unchanged, and no other section changes. ## Checks I ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm turbo run lint --filter='[origin/master]'`, and Prettier on the changed file. All of them pass. I checked the facts against the Studio code: the `database-password` section and its copy in `ResetDbPassword.tsx`, and the **Reset database password** button in the Connect sheet's connection step. The `docs` tests were skipped because they need Docker. On the preview, step 4 of "Get your connection string" should: - keep its original text, with a second paragraph that stays inside step 4 - say in that paragraph that the Supabase Dashboard doesn't show the database password after you create the project - name **Reset database password** and say that a reset breaks existing connections - link Database Settings to the dashboard's database settings page, at `#database-password` ## 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> |
||
|
|
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> |
||
|
|
edcfad5bae |
Add Jack Secord to list of contributors (#53750)
## Problem Adding Jack Secord (new hire) to humans.txt ## 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) |
||
|
|
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> |
||
|
|
584b9588d9 |
docs: route JavaScript v2 reference contributors correctly (#51219)
## Problem The docs contributor guide presents the JavaScript v2 YAML file as the library-specific authoring example. JavaScript v2 uses the TypeDoc reference pipeline, so that example sends contributors to a file the active generator skips. Fixes #51208. ## Solution Explain the JavaScript v2 TypeDoc workflow and link to its reference-pipeline README. Identify SDK source comments, tracked `config.json` and partials, downloaded TypeDoc JSON, and generated reference output as separate parts of the workflow. Keep the legacy YAML guidance and change its example to the Python SDK, which still uses that pipeline. ## Review instructions 1. Read the Reference structure section in `apps/docs/CONTRIBUTING.md`. 2. Confirm that JavaScript v2 points to `apps/docs/spec/reference/README.md` and its tracked authoring paths. 3. Confirm that the legacy section no longer points contributors to `supabase_js_v2.yml`. ## Self-review - This is a docs-tooling change limited to contributor instructions. - The linked README, JavaScript v2 configuration file, and partials directory exist in the repository. - No generated files were edited. - The change does not add runnable documentation snippets, so the Docker-based docs sandbox is not applicable. ## Validation - `pnpm exec prettier --config prettier.config.mjs --check apps/docs/CONTRIBUTING.md` passed. - `pnpm --filter docs lint:ratchet` passed. - `git diff --check` passed. ## Checklist - [x] Read the repository contribution instructions. - [x] Read the docs authoring and review instructions. - [x] Checked the docs terminology list. - [x] Linked the related issue with `Fixes #51208`. --------- 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) | ||
|
|
8f73c10ce1 |
feat(studio): sample browser-translation DOM errors in Sentry (#53600)
## Problem Browser translation (e.g. Chrome Translate) and some extensions rewrite DOM text nodes, which makes React throw `insertBefore` / `removeChild` errors. We drop all of these via `ignoreErrors`, so we have no signal on how often they still happen after the dynamic-text ESLint rule (#52949). Linear: [FE-5008](https://linear.app/supabase/issue/FE-5008/sample-sentry-events-for-browser-translation-crashes-instead-of), from the investigation in [FE-5013](https://linear.app/supabase/issue/FE-5013/investigate-how-we-currently-hide-browser-translation-insertremove). ## Solution Stop ignoring these errors in Studio and send a 5% sample, tagged so they are easy to find in Sentry. - Move the insert/remove node messages from `BROWSER_NOISE_IGNORE_ERRORS` into a new `BROWSER_TRANSLATION_DOM_ERRORS` list in `packages/common/sentry.ts`. `docs` and `www` add it to `ignoreErrors`, so their behavior is unchanged. - In Studio's `beforeSend`, tag matching events with `browser_translation`, `page_translated` and `sample_rate`. The existing `shouldDropForSampleRate` applies the rate. - `page_translated` is best effort: it checks for the `translated-ltr` / `translated-rtl` class on `<html>` and Google Translate `<font>` wrappers. Firefox and Edge are less reliable, so `false` is not proof. - `filterSentryEvent` skips its 1% non-crash sampling for tagged events. Without this the rates would multiply and 5% would really be 0.05%. - The generic `parentNode` / `removeChild` null reads stay ignored. They have many unrelated causes, so tagging them as translation would mislead. Not in this PR: - The `text content does not match` and hydration ignores. They are related symptoms and should be a follow-up. - The user-facing fallback in `InsertBeforeRemoveChildErrorHandler`. ## Review instructions 1. Check that `docs` and `www` still ignore the five DOM messages, via `BROWSER_TRANSLATION_DOM_ERRORS` in their `instrumentation-client.ts`. 2. Run `pnpm exec vitest run lib/sentry-client-options.test.ts` from `apps/studio`, and `pnpm exec vitest run sentry.test.ts` from `packages/common`. 3. After merge, filter Sentry for `browser_translation:true` on the production Studio project and compare `page_translated` true against false. ## Before merging Sentry also has server-side inbound filters on the production Studio project. Someone with project access should confirm the `error-message` filter doesn't match these messages. If it does, the sampled events will be dropped on arrival. ## 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 (not applicable) |
||
|
|
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>
|
||
|
|
f9fd4a2a9f |
feat(www,docs,kb): show Do Not Sell or Share footer link to US visitors (#53490)
## Problem US visitors need a "Do Not Sell or Share My Personal Information" footer link, and no site reads the visitor's country ([GROWTH-1369](https://linear.app/supabase/issue/GROWTH-1369)). ## Solution - The www proxy copies the `x-vercel-ip-country` header into a `_sb_country` cookie, which the footers read client-side. Docs and kb route through www, so that covers all three. - US visitors and unknown countries see the opt-out label. Everyone else keeps "Privacy Settings". Both open the same modal. - The link sits on each footer's copyright line, and the label stays hidden until the cookie is read. - Out of scope: GPC ([GROWTH-1373](https://linear.app/supabase/issue/GROWTH-1373)) and modal copy ([GROWTH-1370](https://linear.app/supabase/issue/GROWTH-1370)). - Tests cover US, non-US, unknown countries, and the cookie write. Screenshots used a hand-set cookie. **www** | | Before | US | DE | |---|---|---|---| | 375px | <img src="https://github.com/user-attachments/assets/1bd8bcb8-6692-4fe9-90a0-5343b0364053" width="200"> | <img src="https://github.com/user-attachments/assets/0514a0bd-ad1c-4773-b889-de941f5466b5" width="200"> | <img src="https://github.com/user-attachments/assets/328ca1b4-9698-492e-8045-a15d884108f2" width="200"> | | 1440px | <img src="https://github.com/user-attachments/assets/3cb3e7d7-62ab-4d34-841c-23d50d7d1cd5" width="300"> | <img src="https://github.com/user-attachments/assets/caf75b29-7286-404a-b1ea-7dfa5022912c" width="300"> | <img src="https://github.com/user-attachments/assets/2c067209-39cd-4ad8-9987-4f8763d70660" width="300"> | **docs** | | Before | US | DE | |---|---|---|---| | 375px | <img src="https://github.com/user-attachments/assets/37248b4a-436b-4d2d-b2d3-3966117abf9e" width="200"> | <img src="https://github.com/user-attachments/assets/0b109a0d-7618-46f8-ade0-8ba17e390b56" width="200"> | <img src="https://github.com/user-attachments/assets/0047b2b8-7047-40df-8d9c-09f51e538fa4" width="200"> | | 1440px | <img src="https://github.com/user-attachments/assets/0a7d6a65-e964-43dc-911e-0ea033cb1e91" width="300"> | <img src="https://github.com/user-attachments/assets/27922348-661c-4246-b3fc-44ac054bd084" width="300"> | <img src="https://github.com/user-attachments/assets/30afb171-1023-43ff-b77e-89f341128377" width="300"> | **kb** | | Before | US | DE | |---|---|---|---| | 375px | <img src="https://github.com/user-attachments/assets/cd4fb8d1-8827-4b1a-8d13-c2a5d4f97378" width="200"> | <img src="https://github.com/user-attachments/assets/2706ae24-3df8-4149-9a51-75abb0456734" width="200"> | <img src="https://github.com/user-attachments/assets/7afb8731-b487-4e48-ae83-a3a6bde36bee" width="200"> | | 1440px | <img src="https://github.com/user-attachments/assets/3b2bdc17-fee7-4ec0-bd24-d35a0367a6ca" width="300"> | <img src="https://github.com/user-attachments/assets/479b03e6-6890-4714-bbbb-ab122f46e786" width="300"> | <img src="https://github.com/user-attachments/assets/252f4e0f-5bcc-4b43-aeda-784df9f000ca" width="300"> | ## Review instructions 1. From a US IP, click the footer link on the www preview. The modal opens. 2. From a non-US IP, see "Privacy Settings". ## 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) --------- Co-authored-by: Danny White <3104761+dnywh@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> |
||
|
|
81d5e239e2 |
docs(style-guide): add how-to guide template (#53648)
Closes DOCS-1608 ## Problem We do not have a template for the most common and important type of content we have: the procedure. ## Solution This PR introduces our first template: the how-to. This also includes the scaffolding needed for all other templates, including a template-selection table and wiring into our docs-writing skills. ## Preview links The style guide isn't served by the docs site, so the table links the changed files on `master` and on this branch instead. | Site | Live | Preview | Search for | | ---- | ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- | | Docs | [03-page-structure.md](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/03-page-structure.md) | [03-page-structure.md](https://github.com/supabase/supabase/blob/docs/how-to-template/apps/docs/style-guide/03-page-structure.md) | `Choose a template` | | Docs | Not on `master` | [templates/how-to-guide.md](https://github.com/supabase/supabase/blob/docs/how-to-template/apps/docs/style-guide/templates/how-to-guide.md) | `How-to guide template` | ## Review instructions 1. Open `templates/how-to-guide.md` from the preview link and confirm it's 80 lines or fewer and makes sense without other files. 2. Follow the new links in `03-page-structure.md`, the style-guide README, and the three skills, and confirm each resolves. 3. Run `pnpm test:prettier` and confirm it passes. ## 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) |
||
|
|
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> |
||
|
|
6c8c25b4da |
fix(docs): show CLI flag defaults in the reference (#53647)
Show default values from the CLI spec on global and command flag rows. For example, readers can see which format `--output-format` uses when omitted. Skip empty defaults and omit `Default: false` for opt-in switches such as `--debug`. Only render a parameter type when one is supplied. This removes the contradictory `no type` label beside CLI flags such as `--network-id <string>` while preserving type labels in the API reference and self-hosting guides. This changes the renderer only. The generated CLI spec is published separately. |
||
|
|
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> |
||
|
|
27578cdfb5 |
fix(telemetry): send search query shape instead of raw text (#53500)
Search telemetry sent whatever people typed, and search boxes are a place where people paste credentials and personal data. I replace the raw text with a description of it. #53336 added the raw `query` to `kb_search_submitted`; docs search and the command menu already sent it. **Changed:** - **I send a description of the search term**: `kb_search_submitted`, `docs_search_v2_search_submitted`, `docs_search_v2_result_clicked` and `command_menu_search_submitted` now send `queryLength` and `queryWordCount`, measured after trimming and collapsing repeated whitespace. - **Text only for keywords**: the term itself (`query`, `value`, and `search_query` on `command_menu_command_clicked`) is sent only when it is up to 4 letters-only parts of at most 16 letters each, 40 characters in total. Keys, tokens, emails, IDs, project refs and connection strings never match. Over the last 30 days that shape covers about 96% of command menu searches, 88% of docs searches and 73% of KB searches, so term-level analysis such as no-result queries keeps most of its data. - **I removed `keywords` from the auth users search event**: `auth_users_search_submitted` no longer carries it. Those terms identify customers' end users, and I confirmed nothing downstream reads them. - **The `keywords` URL parameter is redacted wherever telemetry copies a URL**: the Auth users page keeps the search term in its URL, so I replace the value with `keywords=redacted` in the page URL, query string and referrer we send, and in the posthog-js `before_send` hook for the URL properties the SDK fills in on its own (`$session_entry_url`, `$initial_current_url`, `$referrer`, `$initial_referrer`). The URL in the browser is unchanged. **Note:** a letters-only name or passphrase still matches the keyword shape, and longer questions lose their text. I opened this in place of #53435, which removed `query` from the KB event only. ## To test Tested on the PR previews (docs, kb, studio-staging), reading the request bodies sent to `/platform/telemetry/event`: - [x] Docs: open search and type `auth`, expect `docs_search_v2_search_submitted` with `query: "auth"`, `queryLength: 4` and `queryWordCount: 1`. Observed exactly that, with `hasResults: true`. - [x] Docs: type `person@example.com`, expect the same event with `queryLength: 18` and no `query`. Observed, and no telemetry body in that step contained the address. - [x] KB: search `how do I reset my database password`, expect `kb_search_submitted` with `queryLength: 35`, `queryWordCount: 7` and no `query`. Observed. - [x] KB: search `storage policies` with two spaces, expect `kb_search_submitted` with `query: "storage policies"` and `queryLength: 16`. Observed, with `queryWordCount: 2`. - [x] Studio: open the command menu and type `abcdefghijklmnopqrst`, expect `command_menu_search_submitted` with no `value`, then type `auth` and expect `value: "auth"`. Observed both, with `queryLength` 20 and 4. - [x] Studio: on Auth > Users, search `person@example.com`, expect `auth_users_search_submitted` with no `keywords`. Observed: `trigger`, `sort_column`, `sort_order`, `providers` and `filter_column` only. - [x] Studio: with `?keywords=person%40example.com` in the Auth > Users URL, reload, then trigger an event on the page, expect `page_url` and `ph.search` in the request body to carry `keywords=redacted` and the address bar to keep the real term. Observed on all three events from that page, and the address bar kept the term. - [x] Studio: from that URL, do a full page load to another project page and trigger an event, expect `ph.referrer` to carry `keywords=redacted` while `document.referrer` keeps the real term. Observed on all three events from the new page. - [x] Studio: after that session, query the staging analytics project for events from the preview host, expect no property value to carry the address or anything but `keywords=redacted`. Observed: none of the events in the test window carried the address, and the SDK's own `$set`, `$pageview` and `$pageleave` events arrived with `keywords=redacted` in `$current_url`, `$referrer` and `$initial_current_url`. The session started on a page without the parameter, so `$session_entry_url` was not exercised here; the unit test on the `before_send` hook covers it. ## Linear - fixes GROWTH-1501 |
||
|
|
7f4c69f149 |
chore: update cli reference doc (#53463)
Updates the CLI reference from the supabase/cli release workflow. Generated by `scripts/generate-docs-spec.ts` in supabase/cli — edit the command tree or the content under `apps/cli/docs/` there rather than this file. New commands also need an entry in `apps/docs/spec/common-cli-sections.json` — without one a command's page is silently dropped from the docs site. Sections fixes can be committed directly onto this branch — later releases add commits on top instead of rewriting it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
2679dc3916 |
chore: Moar test fixes (#53610)
## 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) |
||
|
|
a4588620fe | chore: Update route.smoke.test.ts (#53603) | ||
|
|
bd52aac36a |
test: Update titles on smoke tests for crawlers (#53599)
## Problem After unblocking smoke tests, discovered some out of date assertions. ## Solution Fix assertions. <!-- ## 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 _Pray for smoke tests Gods._ ## 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) |
||
|
|
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) | ||
|
|
6dde7610f1 |
docs: remove CLI example response blocks (#53557)
## Summary Remove the Response heading and sample-output code block from CLI reference examples. Keep the example tabs, invocation code blocks, and existing two-column layout unchanged. Companion to https://github.com/supabase/cli/pull/7677, which removes sample responses from the generated CLI reference. The generated YAML is not included in this change. |
||
|
|
f78870c053 |
chore: Add Fallon Petty to humans.txt (#53565)
## 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) |
||
|
|
d9f2eb48de |
docs(cli): correct secure_password_change and add require_current_password (#53249)
## Problem The CLI config reference describes `auth.email.secure_password_change` as a setting that requires the user's current password. Auth maps it to `GOTRUE_SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION`, which asks a user to reauthenticate when their session is more than 24 hours old. Requiring the current password is a separate setting. The CLI added a key for that setting, `auth.email.require_current_password`, in supabase/cli#7458, and the config reference doesn't list it. Resolves [FDBKIN-46120](https://linear.app/supabase/issue/FDBKIN-46120) and [FDBKIN-46121](https://linear.app/supabase/issue/FDBKIN-46121), from supabase/supabase#52546 and supabase/supabase#52547. [CLI-1921](https://linear.app/supabase/issue/CLI-1921) tracks the CLI change. ## Solution - `auth.email.secure_password_change` describes reauthentication: the 24-hour session window and the nonce that `reauthenticate()` sends. It points to `require_current_password` for the other behavior. - `auth.email.require_current_password` is a new entry. A user sends their current password as `current_password`, and a password recovery flow skips the check. - Both entries link to their section of the password security guide, in place of the generic Auth server reference. The behavior comes from `internal/api/user.go` in supabase/auth: reauthentication applies when `session.CreatedAt` is more than 24 hours old, and the current-password check is skipped when `session.IsRecovery()`. ## Preview links | Site | Live | Preview | Search for | | -- | -- | -- | -- | | Docs | [/docs/guides/local-development/cli/config](https://supabase.com/docs/guides/local-development/cli/config#auth.email.secure_password_change) | [/docs/guides/local-development/cli/config](https://docs-git-alexisa-fdbkin-46120-supabase.vercel.app/docs/guides/local-development/cli/config#auth.email.require_current_password) | `require_current_password` | |