Commit Graph
22209 Commits
Author SHA1 Message Date
Joshen Lim 432869f525 Port POST project transfer from platform to v2 (#52000)
## Context

Just porting over POST project transfer from platform to v2
The other GET project transfer preview cannot be ported yet as the `v2`
endpoint drops the `members_exceeding_free_project_limit` property which
the UI depends on

## To test
- [ ] Verify that project transfers still work on the preview
2026-10-21 21:02:53 +08:00
Kody Jackson 8b3c47006e chore(Kb) - sitemap fix (#52044)
## Problem

KB sitemap referred to slashed entries, even though our convention is
unslashed entries.
(discovered by @nrichers in #52017)

## Solution

Configure the Astro project to [never support trailing
slashes](https://docs.astro.build/en/reference/configuration-reference/#trailingslash)
(fixes sitemap) + the [Vercel
config](https://vercel.com/docs/project-configuration/vercel-json#trailingslash)
to always redirect trailing slashes to their unslashed entities.

The vercel config here might be overkill... but doesn't hurt imo.

There's a weird bug in the Astro sitemap extension where the root entry
stays slashed `/kb/`, but everything else is now correct.

## Preview links


[sitemap](https://kb-git-kb-sitemap-fix-supabase.vercel.app/kb/sitemap-0.xml)

| slashed | unslashed |
| [homepage]() | [homepage]() |
|
[troubleshooting](https://kb-git-kb-sitemap-fix-supabase.vercel.app/kb/troubleshooting/error-invalid-byte-sequence-for-encoding-utf8-0x00-when-accessing-triggers-or-webhooks)
|
[troubleshooting](https://kb-git-kb-sitemap-fix-supabase.vercel.app/kb/troubleshooting/error-invalid-byte-sequence-for-encoding-utf8-0x00-when-accessing-triggers-or-webhooks/)
|
|
[guides](https://kb-git-kb-sitemap-fix-supabase.vercel.app/kb/guides/migrate-from-firebase-storage)
|
[guides](https://kb-git-kb-sitemap-fix-supabase.vercel.app/kb/guides/migrate-from-firebase-storage/)
|
2026-10-21 08:02:49 -05:00
Joshen Lim 6e2c59d850 Port private link endpoints from platform to v2 (#51996)
## Context

Just porting over AWS private link API from `platform` to `v2` -
verified that private link management still works locally

## To test
- [ ] Verify that you can create, read, and delete AWS private links in
project settings -> integrations
2026-10-21 21:00:41 +08:00
Kostas Botsas 6ea109c69c Clarify Supavisor SSL Enforcement (#51941)
## Problem

Adda docs note to clarify that SSL Enforcement enables TLS on
both legs of the Supavisor connection, as this is a common question.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-21 15:55:59 +03:00
Jordi Enric 13db84e410 fix(studio): classify panic logs as errors O11Y-2219 (#52073)
## Problem

Postgres PANIC logs are omitted when filtering Unified Logs to errors.
The ClickHouse query classifies them as success, and the BigQuery query
leaves their level unset, while service-health counts their numeric
severity as an error.

## Fix

Classify PANIC as an error in both Unified Logs query backends.

Related to O11Y-2219. This fixes the identified classification gap; it
does not establish the cause of the customer's original count
discrepancy.

## How to test

Open Unified Logs for a project with a Postgres PANIC event and select
the error level. The event should remain visible and be labelled as an
error with either query backend.

Local validation: all 85 existing query/filter tests pass. Full Studio
typecheck, formatting, and focused lint passed before the test-only
removal; production code is unchanged. No tests were added. Browser
verification with an actual PANIC event has not been performed.
2026-10-21 14:34:07 +02:00
Jeremias Menichelli 4645fe89e7 fix: Correct cors module import, move api to search folder (#52072)
## Problem

Vercel function logs are showing import errors

## Solution

Move files to the search folder under `api`, fix imports, align naming.

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

-->

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-21 14:28:55 +02:00
Drew McLellan fdf03de35f feat(studio): add multiple network restrictions at once (#52035)
## Problem

The Add restriction dialog (database settings > network restrictions)
only accepts one address range at a time, so adding several ranges means
repeating the dialog and a separate save for each. The `apply` endpoint
already accepts the full list, so this is a frontend limitation.

Linear: FE-3667

## Solution

The dialog now stages ranges before saving:

- The IP address and CIDR block size fields stay as they were. A new
"Add to list" button (or Enter) validates the entry, moves it to a "N
ranges to add" list, and clears the fields. Each range keeps its own
block size.
- Each staged range has a remove button.
- Duplicates (against existing restrictions and the staged list) now
show as inline errors instead of a toast.
- Save sends every staged range in a single apply request, appended to
the existing restrictions. An entry that was typed but not yet added is
included if it's valid. The allow-all and disallow-all case still
replaces the existing restriction.
- Cancel, Escape, and the backdrop ask for confirmation when there are
staged ranges or a typed entry.
- `AddRestrictionModal` is now a named export, and the draft reset uses
the form's `values` option instead of an effect.

I considered `SingleValueFieldArray` and `KeyValueFieldArray`, but each
range has two related values and the fields need labels and a narrow
size column, so a staged list fit better.

Copy changes: the title is now "Add IPv4 restrictions" (or IPv6), the
description mentions adding several ranges, the Save label is singular
or plural by count, and the success toast is "Restriction added" or
"Restrictions added".

<img width="556" height="514" alt="Screenshot 2026-10-20 at 16 41 13"
src="https://github.com/user-attachments/assets/b7952f9c-0deb-416b-8823-0de9f18a7650"
/>

<img width="550" height="646" alt="Screenshot 2026-10-21 at 11 32 25"
src="https://github.com/user-attachments/assets/3814117b-5447-4a28-b950-b8a96af54a75"
/>


## Review instructions

1. Open a project's database settings and go to Network Restrictions,
then choose Add restriction for IPv4.
2. Enter an address and a block size, then click "Add to list". The
entry moves to the list and the fields clear.
3. Add a second range with a different block size. Try a duplicate or a
private address and check the inline errors.
4. Type a third valid address without adding it, then click Save. All
three ranges should save in one request.
5. Stage a range and click Cancel. It should ask before discarding.
6. Repeat with IPv6, and with an allow-all or disallow-all restriction
in place.

Tests: `pnpm exec vitest run
components/interfaces/Settings/Database/NetworkRestrictions` from
`apps/studio`.
2026-10-21 12:39:09 +01:00
Ivan VasilovandClaude Sonnet 5.5 3383f7edbd fix(www): reject Next.js 15 router state headers in proxy (#52071)
## Problem

After upgrading `www` to Next.js 16, Sentry reports `The router state
header was sent but could not be parsed` (WWW-63) on RSC requests such
as `/blog?_rsc=…`. Next 15 clients (the `docs` zone, which is still on
Next 15 and served under `/docs`, plus tabs opened before the deploy)
send a `Next-Router-State-Tree` header whose fifth element is a boolean,
while Next 16 requires a number, so the renderer throws and returns a
500.

## Solution

`proxy.ts` now detects the Next 15-shaped router state header and
returns a cheap `400` (`no-store`) before it reaches the renderer, for
paths www serves itself. Paths rewritten to other zones (`/docs`,
`/dashboard`, `/kb`, …) are exempt, because the docs zone is Next 15 and
its own client navigations must pass through untouched. The Next 15
router falls back to a full page load on any non-RSC response, which is
the same outcome users get today after the 500, minus the error noise
and wasted renders. Unit tests cover the v15 shape, the v16 shape, a
missing header and a malformed header. The proper long-term fix is
upgrading `apps/docs` to Next 16, after which this guard can be removed.

## Review instructions

1. Run `pnpm --filter=www test proxy.test.ts` and confirm the new
`Next.js 15 router state tree` tests pass.
2. After deploy, confirm WWW-63 stops receiving new events.

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

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 13:30:08 +02:00
Joshen Lim d364c3a8e6 Joshenlim/fe 4674 expose auto region selection in dashboard (#52062)
## Context

API added a new option "auto" for the available regions endpoint, so the
changes in this PR is just for dashboard to render that in the region
selector for project creation if that option is available in the
response

<img width="452" height="306" alt="image"
src="https://github.com/user-attachments/assets/60a39bbb-b9f0-4677-a267-cd8b975371b1"
/>

- "Auto" option is prioritized and selected by default if its present in
the response
- Otherwise it'll fall back as per normal to the recommended general
region
- Recommended badges for other options are hidden if auto region is
present and recommended
- Unrelated but realised there was a gap if there's no general region
recommended where the region selection will be undefined by default
then. Opting to default to the first available general region in this
case

## To test

"Auto" option for region selection will be available on free
organizations, so we can test on the preview with free organizations
- [ ] Verify that project creation works as expected while auto option
is selected for free plan
- [ ] Verify that project creation works as expected for non-free plan
2026-10-21 19:28:19 +08:00
Alaister YoungandAlaister Young b8426f1510 [FE-4414] feat(www): serve InstantDB migration app at /migrate/instantdb (#51289)
Proxies `supabase.com/migrate/instantdb` to the InstantDB migration
app's Vercel deployment, so the tool lives on a Supabase-owned URL
instead of `instantdb-to-supabase.vercel.app`.

**Added:**
- Rewrites for `/migrate/instantdb` and `/migrate/instantdb/:path*` in
`apps/www/lib/rewrites.js`
- A `next.config.test.ts` assertion covering both rules

Unlike `/evals`, the destination keeps the `/migrate/instantdb` prefix.
The migration app is a Next.js app that'll run with `basePath:
'/migrate/instantdb'`, so it only answers under that prefix (its
`/_next` assets and `/api` routes included, which would otherwise
collide with www's).

**Depends on:** the migration app shipping with `basePath:
'/migrate/instantdb'`. Until then this route 404s. The app's
`/migrate/instantdb` path currently returns 404 because it serves from
the root.

## To test

- `cd apps/www && pnpm vitest run next.config.test.ts` passes
- Once the app is deployed with the basePath, on the www preview:
`/migrate/instantdb` loads the migration app, with no 404s for `/_next`
assets or `/api` calls in the network tab
- Existing rewrites (`/dashboard`, `/evals`, `/kb`) still work

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-10-21 12:57:48 +02:00
fffb1e23ca feat: implement profile permissions v2 api (#50966)
## Problem

Migrating Studio's permission checks from the old RLS json logic to
openfga backed permissions.

### New hooks and helpers

- `usePermissionsQueryV2` fetches the new profile openfga permisisons 
- `useAsyncCheckPermissionsV2` the replacement for the old check hook;
takes an FGA permission string (or a list)
- `FGA_PERMISSIONS` permission constants derived from
`@supabase/shared-types`. At the moment, the hook also accepts plain
strings for permissions not yet published in the package
- `useAsyncCheckUserContentPermissions` new hook for permission checks
on user content (SQL snippets, reports, log snippets). This wraps
``useAsyncCheckPermissionsV2` and adds existing content level rules on
top of the fga permission check

### Notes

- ~~Need api to support new permissions: project_operations_write,
billing_read/write, audit_logs_read~~ [DONE]
- ~~Still need to support: organization_config_read/write, auth hooks
and users permissions~~ [DONE]

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2026-10-21 06:54:16 -04:00
d78685a364 docs(blog): update branch config post title and og/thumb images (#52067)
## Problem

The blog post "How a new branch gets its config, migrations, and
functions" needs a new title and new og/thumbnail images.

## Solution

- Title: `Faster config, migrations and functions on branches`
- Added `og-v2.png` and `thumb-v2.png` (1200x630) and pointed
`imgSocial` / `imgThumb` at them. New file names bypass image and
link-preview caches that would otherwise keep serving the old images.
- The file name and URL slug are unchanged, so the existing link keeps
working. The old `og.png` and `thumb.png` are left in place.

## Preview links

| Site | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| WWW |
[/blog/how-a-new-branch-gets-its-config-migrations-and-functions](https://supabase.com/blog/how-a-new-branch-gets-its-config-migrations-and-functions)
| Copy the base URL from the Vercel bot comment | Faster config,
migrations and functions on branches |

## Review instructions

1. Open the live and preview links side-by-side.
2. Confirm the title on the post and blog index reads `Faster config,
migrations and functions on branches`.
3. Confirm the thumbnail on the blog index and the og image (view
source, `og:image`) are the new images.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)

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

Co-authored-by: Wendie Cheung <wendie@Wendies-MBP.localdomain>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 21:30:22 +11:00
Ivan VasilovandClaude Sonnet 5.5 ced4ff82a4 feat(www): upgrade to Next.js 16 (#52001)
## Problem

The marketing site (`apps/www`) is still on Next.js 15. Resolves
FE-4673.

## Solution

Upgrades `apps/www` to Next.js 16.3.6 (`next` now uses the workspace
catalog; `@next/mdx` and `@next/bundle-analyzer` are bumped to match).
Fixes for breaking changes: `middleware.ts` renamed to `proxy.ts`,
removed the `eslint` key from `next.config.mjs`, moved Sentry options
under `webpack`, and added `images.localPatterns` and
`images.qualities`. `dev` and `build:next` now run with `--webpack`,
because the MDX remark plugins have non-serializable options and
`esmExternals: 'loose'` is ignored by Turbopack.

## Review instructions

1. Run `pnpm --filter=www typecheck` and `pnpm --filter=www test`.
2. Run `pnpm dev:www` and open `/pricing` and `/blog/vector-buckets`;
both should render, including images.
3. Check the Vercel preview build. Locally, `next build` needed
`NODE_OPTIONS=--max-old-space-size=8192`, so confirm memory is
sufficient. `proxy.ts` now runs on the Node.js runtime instead of edge.

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

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 12:28:35 +02:00
Drew McLellan 6957daa3b7 feat(studio): add setting to skip the SQL editor unsaved-changes prompt (#52029)
## What

Adds an opt-out for the "Unsaved changes" dialog shown when closing SQL
editor tabs in manual-save mode. Resolves FE-4170.

- New **Confirm on discard** toggle in the SQL editor's More actions
menu (both toolbar layouts).
- New **Don't ask again** checkbox in the dialog itself. It turns the
same setting off when the user confirms the discard.
- `DiscardChangesConfirmationDialog` gains a `children` slot. The
description now renders as a `div` so block-level children are valid
HTML.
- `TabCloseConfirmation` gains an optional `optOut`, so any tab type can
offer a "don't ask again" checkbox. Only SQL tabs use it. The Explorer
tabs are unchanged.
- The Intellisense and Confirm on discard items now use
`DropdownMenuCheckboxItem`, so both settings announce their checked
state to screen readers. The check indicator is still shown on the right
via a local class override.

<img width="353" height="229" alt="Screenshot 2026-10-20 at 16 10 14"
src="https://github.com/user-attachments/assets/c6f67934-51ba-48dd-8aee-f279ae7eb486"
/>

<img width="432" height="207" alt="Screenshot 2026-10-20 at 16 10 02"
src="https://github.com/user-attachments/assets/d064dcb1-1097-4ac3-bbf0-6a47506820c1"
/>


## Behavior notes

- The setting is stored in `localStorage`
(`sql-editor-confirm-unsaved-changes`). It is device-local and global,
not per project. It defaults to on.
- With the prompt off, closing a tab still **discards** its unsaved
edits. It only skips the confirmation.
- It only applies in manual-save mode. In auto-save mode there is
nothing to discard, so the toggle is hidden.
- The browser's native `beforeunload` prompt, shown when closing or
reloading the browser tab with unsaved work, is unaffected. Browsers
don't allow customizing it.

## Testing

- New unit tests for the SQL tab close handler: it confirms by default,
skips the dialog when the setting is off, and the opt-out writes the
setting.
- `lint:ratchet` and `knip` pass.
- Manually checked the menu at both widths and the dialog.
2026-10-21 11:20:55 +01:00
Sreyas Udayavarman 4c70972229 Update blog post on Supabase storage updates (#52058)
Clarified the behavior of the new trigger for DELETE operations on
Storage schema tables, emphasizing that normal operations remain
unaffected.

Removed statements from blog post to avoid LLM from picking up
operations to bypass delete operation restriction.

## Problem

Customers are using the setting with direct DELETE FROM storage.objects
queries, which can create orphaned objects.

The post currently describes setting the variable to true for direct SQL
deletes, despite warning that these deletes are a common cause of
orphaned objects.

## Solution

Removed statements from blog post to avoid LLM from picking up
operations to bypass delete operation restriction.
2026-10-21 15:17:18 +05:30
Ali WaseemandJeremias Menichelli 20e304a377 feat(kb): add search ingestion and edge function (#51843)
## Problem

We need embeddings for Kb to run a search endpoint in the Content API
and future KB search.

## Solution

This PR adds KB search backed by its own Supabase table, ingested from
the KB markdown export, and aligns the KB and docs search ingest setups.

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

-->

## Test

1. Run the **KB Search Ingest** workflow, or locally run `pnpm --filter
kb search:ingest` with `SUPABASE_URL` and `SUPABASE_SERVICE_ROLE_KEY`
set in `apps/kb/.env.local`.
2. Query the endpoint and check that the results link to
`https://supabase.com/kb/troubleshooting/...`:
   ```
   curl '<kb-url>/kb/api/search?q=connect%20timeout&limit=5'
   ```

## 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: Jeremias Menichelli <jmenichelli@gmail.com>
2026-10-21 11:24:52 +02:00
Joshen Lim 3af897e6d6 Joshenlim/fe 4676 port log drains api endpoints from platform to v2 (#51995)
## Context

Just porting over log drains API from `platform` to `v2` - verified that
log drains management still works locally

## To test
- [ ] Staging preview: Verify that you can create, read, and delete -
there's no way to update log drains atm
- [ ] Local / Self-hosted: Verify that you can create, read, and delete
2026-10-21 17:07:58 +08:00
0922000133 docs(blog): add Matt Johnston as author on Supabase Middleware post (#52012)
Adds `matt_johnston` (already in `apps/www/lib/authors.json`) to the
`author` frontmatter of the Supabase Middleware launch post, after the
existing authors.

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

Co-authored-by: Wendie Cheung <wendie@Wendies-MBP.localdomain>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 19:10:56 +11:00
Rakesh PatelandRakesh Patel bc3f3c2168 chore(docs): Add Rakesh Patel to humans.txt (#52051)
## Problem

New hire adding my name to the humans.txt

## Solution

Add my name to the humans.txt file


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

Co-authored-by: Rakesh Patel <roc@patelr.us>
2026-10-21 09:51:48 +02:00
Kody Jackson e854b84ed4 docs - broken link in serverless drivers page (#52042)
## Problem

broken link
2026-10-20 16:06:34 -07:00
Kody Jackson b909d47efd chore(kb) - add in canonical URLs (and refer to them in JSON+LD) (#52017)
## Problem

Need canonical URLs. These are not an issue prior to launch b/c -- if a
page is tagged with a robots `noindex` -- google already drops it from
the index.

These intentionally always point to prod, helps avoid preview URLs
getting indexed as separate entities.

## Solution

Adds canonical URLs. Shares the canonical URLs with the JSON+LD
implementation, so simplifies that logic.

## Preview links


[Homepage](https://kb-git-kody-devrel-736-kb-canonical-links-supabase.vercel.app/kb)

```
<link rel="canonical" href="https://supabase.com/kb">
```

[Guides
page](https://kb-git-kody-devrel-736-kb-canonical-links-supabase.vercel.app/kb/guides/migrate-from-amazon-rds)

```
<link rel="canonical" href="https://supabase.com/kb/guides/migrate-from-amazon-rds">
```

[Troubleshooting
page](https://kb-git-kody-devrel-736-kb-canonical-links-supabase.vercel.app/kb/troubleshooting/42501--permission-denied-for-table-httprequestqueue-knozmq)

```
<link rel="canonical" href="https://supabase.com/kb/troubleshooting/42501--permission-denied-for-table-httprequestqueue-knozmq">
```
2026-10-20 15:29:32 -05:00
Anthony Lio d9faba5a2c feat(kb): design overhaul (#51565)
## Problem

knowledge base homepage was a list of topic cards with nothing to browse
by, and guide pages had no table of contents

## Solution

- adds grid drawn hero proposal
- adds featured guides and topic cards
- updates guide page layout 

| state | preview |
| -------|------|
| after | <img width="1504" height="757" alt="image"
src="https://github.com/user-attachments/assets/41492e87-f4ad-4dea-ad30-7dc3ca2882b0"
/> |

`variants`

homepage ships with a few design options behind query params, so we can
compare them on the preview before picking one, temporary and non
selected one will be removed


Param | Values | What it does
-- | -- | --
hero | grid (default), warp | grid draws the flat table grid _
warp bends the ASCII field into a funnel below the hero copy
featured | cover (default), book | cover shows the featured guides as
cards with an ascii cover _ book shows them as books
search | off (default), on | on adds a search button under the hero copy
that opens the guide search dialog. Cmd+K / Ctrl+K also opens it

<!--
## 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 kb preview at `/kb`
2. open a guide such as `/kb/guides/migrate-from-firebase-auth`

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-20 22:31:12 +03:00
Alexis Aguilar ae991bb19e docs: correct default privilege and function revoke guidance (#51960)
Issue found during my dogfooding project :)

## Problem

The docs on default privileges in `public` don't match what Postgres
grants or what the revoke statements do:

- **Default privileges:** Securing your API and the Row Level Security
guide say new tables grant `SELECT`, `INSERT`, `UPDATE`, and `DELETE`.
New tables grant every table privilege, which also includes `TRUNCATE`,
`REFERENCES`, `TRIGGER`, and, on Postgres 17, `MAINTAIN`.
- **Revoking them:** the statements in Revoke default privileges match
what the Dashboard runs. They remove the privileges the Data API uses,
and leave the other four on new tables and `UPDATE` on new sequences.
- **Functions:** `alter default privileges ... in schema public revoke
execute on functions from public` has no effect. Postgres grants
`EXECUTE` to `PUBLIC` through a global default, and a revoke limited to
one schema can't remove it ([Postgres
docs](https://www.postgresql.org/docs/current/sql-alterdefaultprivileges.html)).
New functions stay callable by `anon` and `authenticated` through the
Data API. Securing your API, Working with branches, and Database
functions each say they don't.
- **Dashboard label:** Working with branches refers to a **Default
privileges for new entities** setting. The Data API settings label it
**Automatically expose new tables**.

Resolves
[DOCS-1457](https://linear.app/supabase/issue/DOCS-1457/default-privilege-docs-miss-truncate-references-trigger-and-maintain).

## Solution

The pages describe what Postgres grants and what the Dashboard setting
leaves behind. The revoke procedure removes every default privilege on
new objects.

- **Securing your API:** Default privileges shows the defaults in a
table, and lists what turning off **Automatically expose new tables** in
the Data API settings leaves behind. Revoke default privileges revokes
every privilege on new tables, sequences, and functions, including the
`execute` grant to `PUBLIC`. A caution explains that this revoke also
restricts functions in other schemas, such as helper functions that RLS
policies call. A new Check your default privileges section has a query,
run in the SQL Editor or with `psql`, that lists what each Data API role
receives on new objects.
- **Row Level Security:** the grants table lists every privilege, which
matches its introduction.
- **Working with branches:** uses the current setting label, and says
what the revoke migration leaves, with `maintain` marked as Postgres 17
only.
- **Database functions:** revokes `EXECUTE` from `PUBLIC` without `in
schema`, and notes that the change applies to functions in every schema.

Each changed snippet was run in page order on a hosted project on
Postgres 17.11, inside a transaction that rolled back.

## Product issue

The Dashboard's **Automatically expose new tables** setting runs the
same function revoke
(`packages/pg-meta/src/sql/studio/database/privileges.ts`), so turning
it off leaves new functions callable.
[DAT-192](https://linear.app/supabase/issue/DAT-192) tracks it.

cc @supabase/data-api @avallete

## Preview links

- [Securing your
API](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/api/securing-your-api)
- [Row Level
Security](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/database/postgres/row-level-security)
- [Working with
branches](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/deployment/branching/working-with-branches)
- [Database
functions](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/database/functions)

## Additional context

- The Working with branches sentence about new functions on branches
follows from the Postgres default. It wasn't tested on a branch.
- Securing your API and the Row Level Security guide still describe
defaults "on existing projects". That wording changes when the new
default reaches every project, so this PR leaves it.
2026-10-20 11:52:57 -07:00
Kody Jackson a90fc6792d chore(www) - Update robots.txt (#52041)
## Problem

Given we already have `user-agent: *`, we really don't need those other
declarations in the file.

(this also cleans up the `Content-Signals` block, which technically
should exist one per UA block)

## Solution

Removes specific user agent lines

## Preview links


https://zone-www-dot-com-git-kodster28-patch-1-supabase.vercel.app/robots.txt
2026-10-20 13:29:30 -05:00
Charis e21b69c602 refactor(studio): migrate list_policies, list_reports, get_report, get_active_incidents, escalate_to_human, and resolve_support_conversation to tool contracts (#52015)
## Problem

Six assistant tools are still defined inline with `tool({...})`, unlike
the others that moved to the tool contract pattern.

## Solution

Migrate them to a contract file plus a `.server.ts` implementation,
registered in `TOOL_CONTRACTS`, removed from `TOOL_CATEGORY_MAP`, and
kept in the allowlist. The `*-tools.ts` modules remain as thin wrappers.
`ToolContext` gains an optional `baseUrl`, used by
`get_active_incidents`.

- `list_policies`, `list_reports`, `get_report`: `minOptInLevel:
'schema'`, output unchanged for the model at every level.
- `get_active_incidents`, `escalate_to_human`,
`resolve_support_conversation`: `minOptInLevel: null` (always
available), same as before.
- `needsApproval: false` for all.

Stored-shape changes for replayed outputs:

- Replayed outputs are now validated against the output schema and
dropped if invalid (previously unchecked).
- Zod strips unknown keys, so fields outside the schema no longer
replay.
- Enum-like fields use plain `z.string()` so new values don't break
replay.

Not migrated yet: `update_opt_in_level` (input schema is built per
request from the org's level), remote MCP tools, and self-hosted
fallback tools.
2026-10-20 14:18:27 -04:00
Dhruv f1a91ca9c0 Add Dhruv Sehgal to humans.txt (#52018)
Onboarding
2026-10-20 10:39:29 -07:00
Chase Cresgy d8d390fb5a Remove Mo Khan from humans.txt (#51945)
Off-boarding update
2026-10-20 10:38:03 -07:00
Jason Harley c39ac96ede chore(docs): add Jason Harley to humans.txt (#52037)
## Problem

Just joined Supabase and need to add my name to humans.txt as part of
onboarding

## Solution

Add my name to humans.txt, keep it ordered alphabetically


## Checklist

Check all before review:

- [X] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [X] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-20 10:37:30 -07:00
Eliot Daigneault-MestreandEliot 6b489d742c Add Eliot to humans.txt (#52032)
## Problem

I need to add my name to humans.txt as per my onboarding

## Solution

I added my name, and ran the /review-the-docs skill to verify the change

## 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: Eliot <eliot@Eliots-MacBook-Pro.local>
2026-10-20 10:37:06 -07:00
Miranda Limonczenko f5b00a5237 docs: use the standard run snippet for run-this-query steps (#51974)
## Problem

Many pages tell readers to run SQL in the SQL Editor only. An agent
can't use the Dashboard, so it has no way to run the query.
supabase/supabase#51973 adds a standard snippet that also offers `psql`.
Existing pages don't use it yet.

## Solution

- **Snippet swap:** each simple run-SQL instruction now uses the
standard snippet, placed before the SQL block. Where the old sentence
said what the SQL does, that part stays as its own sentence before the
snippet.


## Preview links

On each page, search for `over a direct connection`.

| Page | Live | Preview |
| --- | --- | --- |
| `ai/automatic-embeddings` |
[Live](https://supabase.com/docs/guides/ai/automatic-embeddings) |
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/ai/automatic-embeddings)
|
| `database/connecting-to-postgres/pooling-and-limits` |
[Live](https://supabase.com/docs/guides/database/connecting-to-postgres/pooling-and-limits)
|
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/connecting-to-postgres/pooling-and-limits)
|
| `database/extensions/pg_net` |
[Live](https://supabase.com/docs/guides/database/extensions/pg_net) |
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/extensions/pg_net)
|
| `database/postgres/dropping-all-tables-in-schema` |
[Live](https://supabase.com/docs/guides/database/postgres/dropping-all-tables-in-schema)
|
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/dropping-all-tables-in-schema)
|
| `database/postgres/first-row-in-group` |
[Live](https://supabase.com/docs/guides/database/postgres/first-row-in-group)
|
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/first-row-in-group)
|
| `database/postgres/row-level-security` |
[Live](https://supabase.com/docs/guides/database/postgres/row-level-security)
|
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/row-level-security)
|
| `database/postgres/which-version-of-postgres` |
[Live](https://supabase.com/docs/guides/database/postgres/which-version-of-postgres)
|
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/which-version-of-postgres)
|
| `deployment/managing-environments` |
[Live](https://supabase.com/docs/guides/deployment/managing-environments)
|
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/deployment/managing-environments)
|
| `getting-started/quickstarts/hono` |
[Live](https://supabase.com/docs/guides/getting-started/quickstarts/hono)
|
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/getting-started/quickstarts/hono)
|
| `getting-started/quickstarts/refine` |
[Live](https://supabase.com/docs/guides/getting-started/quickstarts/refine)
|
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/getting-started/quickstarts/refine)
|
| `getting-started/quickstarts/spring-boot` |
[Live](https://supabase.com/docs/guides/getting-started/quickstarts/spring-boot)
|
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/getting-started/quickstarts/spring-boot)
|
| `platform/database-size` |
[Live](https://supabase.com/docs/guides/platform/database-size) |
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/platform/database-size)
|
| `platform/postgres-connection-logging` |
[Live](https://supabase.com/docs/guides/platform/postgres-connection-logging)
|
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/platform/postgres-connection-logging)
|
| `platform/upgrading` |
[Live](https://supabase.com/docs/guides/platform/upgrading) |
[Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/platform/upgrading)
|

## Manual testing

1. Open [Which version of
Postgres](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/which-version-of-postgres).
The snippet appears before the query.
2. Click **Direct connection** in the snippet. It goes to the **Direct
connection** section of the connection guide.
3. Open [Row Level
Security](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/row-level-security).
The snippet comes before the SQL, and the migration option follows it.
2026-10-20 16:45:08 +00:00
Miranda Limonczenko 92866b9597 docs(style-guide): pair Dashboard steps with a terminal option (#51973)
Closes DOCS-1490

## Problem

Pages that ask readers to run SQL mostly point only to the SQL Editor,
and the wording differs from page to page. An agent can't use the
Dashboard, so a Dashboard-only instruction leaves it with no way to
finish the task.

## Solution

- **Terminal option rule:** for any change a reader makes in the
Dashboard, the page also gives a terminal path, such as `psql`, the
Supabase CLI, or the Management API.
- **Standard run snippet:** every "run the following SQL" step uses one
copy-paste snippet, placed before the SQL block, that names both the SQL
Editor and `psql`.

One file, 14 lines added. Both rules go under **Procedures** in
`02-elements.md`, which the write, edit, and review docs skills already
check.

**Not changed:** existing pages. supabase/supabase#51974 converts them,
stacked on this PR.

## Manual testing

1. In **Files changed**, open the rich diff of
`apps/docs/style-guide/02-elements.md`. The two new rules appear under
**Procedures**, before **Code blocks**.
2. Click the **tabs** link in the first rule. It goes to the **Tabs**
section.
2026-10-20 09:34:15 -07:00
Nara Kasbergen Kwon 40943e51a9 chore(docs): Add Nara to humans.txt (#52034) 2026-10-20 18:58:29 +03:00
AnaandAna 3d19f49479 docs(blog): add observability agent prompts post (#51978)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

- Adds the blog post "Operate with confidence: check production with
your coding agent" at
`apps/www/_blog/2026-10-20-operate-with-confidence-check-production-with-your-coding-agent.mdx`
- Adds the OG image, thumbnail, and four inline images under
`apps/www/public/images/blog/operate-with-confidence-check-production-with-your-coding-agent/`

## What is the current behavior?

N/A

## What is the new behavior?

- New post at
`/blog/operate-with-confidence-check-production-with-your-coding-agent`,
dated 2026-10-20
- Covers Agent prompts (Health, Security, Performance, Resources), the
steps to set up a scheduled check, `query_logs`, the updated `supabase`
agent skill, Health Check Advisors, and Database Connections
- Authors: `steven_eubank`, `saxon_fletcher`, `jordi`

## Additional context

Follow-up to the Supabase Select post
`2026-10-02-select-2026-operate-with-confidence.mdx`.
`apps/www/public/rss.xml` is not included because it is gitignored and
generated at build time.

---------

Co-authored-by: Ana <ana1337x@users.noreply.github.com>
2026-10-20 11:47:42 -04:00
Andrew ValleteauandClaude Opus 5.5 e42f4ec612 chore: remove pgMetaScopedIntrospection feature flag (#52019)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Cleanup: remove a fully rolled-out Studio feature flag. Resolves
CLI-2759. Supersedes #50260 and #47931 (rebuilt on current master).

## What is the new behavior?

Scoped introspection is the only path.

- Studio: delete `data/scoped-introspection.ts` and
`PG_META_SCOPED_INTROSPECTION_FLAG`; stop threading `scoped` through
table editor, rows/counts, privileges, enumerated types, table
definition, retrieve, prefetcher, `EntityListItem`, `SidePanelEditor`,
`EditHookPanel`, `DefaultLayout`.
- pg-meta: drop `scoped?: boolean` from public builders and delete the
frozen unscoped SQL. `tables.list` keeps its full-catalog `TABLES_SQL`
(never flag-gated).

## Test plan

- [x] pg-meta + Studio typecheck
- [x] pg-meta suite against Docker DB (521/521)
- [x] Studio vitest for touched areas
- [x] Open Table Editor, row counts, privileges, and enumerated types on
a project (dogfooded on the preview deploy)
- [ ] After merge, retire `pgMetaScopedIntrospection` in the flag
dashboard

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 17:40:13 +02:00
AnaandAna 973a34c1c0 feat(www): add observability feature pages (#51979)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

- Adds three feature entries to `apps/www/data/features.tsx`: Health
Check Advisors, Database Connections, and Agent Skills
- Adds one line each to the existing Security & Performance Advisor,
Reports & Metrics, and Logs & Analytics entries
- Updates one bullet and the stage on the existing MCP Server entry

## What is the current behavior?

supabase.com/features has no pages for Health Check Advisors, Database
Connections, or Agent Skills, and the MCP Server page shows Public Alpha
and does not name `query_logs`.

## What is the new behavior?

- New page `/features/health-check-advisors` (General Availability, not
available on self-hosted), placed after Security & Performance Advisor
- New page `/features/database-connections` (General Availability,
available on self-hosted), placed after Reports & Metrics
- New page `/features/agent-skills` (General Availability, available on
self-hosted), placed after Queues and before MCP Server
- Security & Performance Advisor: item 5 is now "Run on demand", and new
item 6 links to Health Check Advisors
- Reports & Metrics: new item 7 links to Database Connections
- Logs & Analytics: new item 9 covers `query_logs` and links to the
Query logs with SQL docs
- MCP Server: the logs bullet now names `query_logs` and `get_advisors`,
and the stage is General Availability

## Additional context

Copy matches the Features Page rows in Notion. Agent Skills sits before
MCP Server so it does not touch the lines #51819 changes; that PR's diff
still applies cleanly on top of this branch.

---------

Co-authored-by: Ana <ana1337x@users.noreply.github.com>
2026-10-20 11:30:03 -04:00
supabase-vercel-tedd[bot] 601c091d8f fix(studio): keep edit secret sheet footer visible with long values (#52014)
## Problem

In the Edge Function Edit secret sheet, a long secret value (for example
a multi-line private key) made the Value textarea grow without a limit.
On smaller screens this pushed the Cancel and Save buttons out of view,
so the secret couldn't be saved.

Fixes
[FE-4680](https://linear.app/supabase/issue/FE-4680/cannot-save-long-edge-function-secrets-on-smaller-screens).

## Solution

- Replace the hand-rolled auto-resize `Textarea` with the shared
`ExpandingTextArea`, the same component the Add new secrets form uses.
It grows with its content up to 320px, then scrolls inside itself.
- Make the sheet body the scroll area (`grow min-h-0 overflow-y-auto`),
so the footer with Cancel and Save stays visible on short windows.
- Move the show/hide (eye) toggle to `right-3 top-2` to match the add
form, and add right padding so it stays clear of the textarea's
scrollbar.
- Add a test that pastes a long multi-line value and checks that Save
becomes enabled.

## Review instructions

1. Open Edge Functions > Secrets and click Edit on any secret.
2. Paste a very long multi-line value into the Value field.
3. Confirm the field stops growing at about 320px and scrolls
internally.
4. Shrink the browser window height and confirm Cancel and Save remain
visible and Save is enabled.
5. Confirm the eye toggle doesn't overlap the textarea's scrollbar.

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-10-20 16:58:49 +02:00
Victor Farazdagi 72324ca0f7 docs: update Snowflake permissions and partial-update guidance (#51997)
## Problem

The Snowflake guide does not reflect the partial-update support and
automatic companion views introduced in
[supabase/etl#1110](https://github.com/supabase/etl/pull/1110). It also
omits the `CREATE VIEW` permission, which existing pipelines need before
upgrading to avoid startup failures.

## Solution

- Add `CREATE VIEW` to setup and upgrade instructions, including
ownership and consumer grants.
- Explain automatically maintained companion views, partial updates,
NULL semantics, and query options.
- Document existing-table upgrades, supported keys, schema changes,
history requirements, and resync.

## Review instructions

1. Open the Snowflake destination guide in the docs preview.
2. Check that setup and upgrade instructions clearly require `CREATE
VIEW` before starting the updated pipeline.
3. Review the companion-view examples and the distinction between
queries for complete and partial history.

## 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)
2026-10-20 16:57:58 +03:00
Matt Johnston 29878860a9 fix(compute): filter logs on the subservice attribute (#50562)
## Problem

Compute log rows are filtered on `log_attributes['source']`, the
deprecated twin of the top-level `subservice` the log writer now
publishes. FUNC-894 deletes the twin from the writer, which would leave
the per-instance log tabs and the Unified Logs `compute` type matching
nothing — silently, since a missing attribute key returns no rows rather
than an error.

## Fix

Read the stream from `log_attributes['subservice']` instead. Both keys
carry the same value on every row today, so this is a same-behaviour
switch that lets the twin be removed.

It stays a `log_attributes` lookup rather than a bare `subservice`
column: the unified logs mapping does not classify these rows, so
`source` is empty on a compute row and every key the backend publishes
lands in the attribute map. A bare `subservice` predicate fails the
whole query with `Field "subservice" does not exist`.

- `COMPUTE_LOG_SUBSERVICES` replaces `WORKER_LOG_SOURCES`; the values
keep their pre-rename `worker_*` spelling, which is still what the
backend publishes
- `STREAM_KEY` in `compute-instance-logs-query.ts` and the Unified Logs
condition used by the log-type, status, method, pathname, metadata and
level expressions both move to the new key
- row fixtures in the three utils test files carry `subservice` instead
of `source`, so they match the wire shape that survives FUNC-894

Supersedes #50219, which targets a `subservice` column and a `source =
'worker_logs'` mapping that do not exist yet; that shape becomes the
follow-up if the mapping ships.

Relates to [FE-4358](https://linear.app/supabase/issue/FE-4358).

## How to test

- Open a compute instance's Invocations, Logs, and Activity tabs — each
shows only its own stream, and message filtering still narrows within
it.
- In Unified Logs, include and then exclude the Compute log type; rows,
counts, and charts move together, and compute rows keep their metadata
while status, method, and pathname stay null.

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

- **Bug Fixes**
- Compute logs are now identified and filtered using subservice metadata
in unified logs and compute instance logs.
- Compute log classification and display now handle compute-specific
fields and severity consistently.
- Guest and ingress compute streams now use subservice metadata for more
consistent results across supported log views.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-20 15:57:04 +02:00
Monica Khoury d897e1462a test: add component tests for PlatformWebhooksPage (#52002)
## What
Adds component tests for `PlatformWebhooksPage` (follow-up to FE-3749),
covering: rendering the endpoint list, the empty state, create (and
request body shape), update, delete, regenerate-secret, send-test-event,
retry, and the rate-limit error path.

## Why
FE-3749's own scope explicitly calls out tests as a stacked follow-up
rather than blocking the original ship (already Done).

## Testing
All 9 tests pass locally, typecheck and lint clean.

## Note
Replaces #51614, which got accidentally closed (its branch was deleted
and recreated to fix fixture drift from #51800, which GitHub treats as
unrecoverable for reopening). Same branch name, now rebased onto current
master and updated for the delivery attribute shape changes from #51800
(error_code/error_message/event required, response_headers no longer
nullable).
2026-10-20 16:44:54 +03:00
Kody JacksonandClaude Haiku 5.5 8993001471 feat(kb) - add structured ld+json data to KB pages (#51498)
## Problem

Follow up to #51497 and #51496, but for KB.

Currently the KB has no [structured
metadata](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data)
about any of the pages, which can be important for LLM-indexing.

## Solution

Follow up to #51497 and #51496, but for KB.

Adds two types of structured data to every KB article:
- Breadcrumb
- TechArticle
(validation available at
[schema.org](https://validator.schema.org/#url=https%3A%2F%2Fkb-git-kody-devrel-698-kb-structured-data-supabase.vercel.app%2Fkb%2Fguides%2Fsample-guide))

Future work will likely add in an FAQ type.

## Preview links


https://kb-git-kody-devrel-698-kb-structured-data-supabase.vercel.app/kb/guides/sample-guide
<img width="1101" height="571" alt="image"
src="https://github.com/user-attachments/assets/dbd95f32-3aaa-4c2e-891b-ee31cbef34dd"
/>

https://validator.schema.org/#url=https%3A%2F%2Fkb-git-kody-devrel-698-kb-structured-data-supabase.vercel.app%2Fkb%2Fguides%2Fsample-guide

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-20 08:39:33 -05:00
Anthony Lio 2abcb83cf1 fix(docs): show the description of primitive request bodies (#52013)
## Problem


the management api reference drops the description of a request body
when the body schema is a primitive type (`string`, `boolean`, `number`
or `integer`) the page shows only the type name

## Solution

- adds `MDXRemoteBase` with `normalizeMarkdown` like the type
descriptions in the same file so code blocks in the description get the
docs code block styles

#51246 adds the new schema for this endpoint to the docs spec

| state | preview |
| -------|------|
| before | <img width="1023" height="702" alt="image"
src="https://github.com/user-attachments/assets/cf1d80e4-01be-433b-906f-887e7527325e"
/> |
| after | <img width="1023" height="702" alt="image"
src="https://github.com/user-attachments/assets/01dc034b-a956-4fd2-9b0e-fde111c66c2c"
/> |

<!--
## 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. run `git fetch origin gha/auto-update-mgmt-api-docs`
2. run `git checkout origin/gha/auto-update-mgmt-api-docs --
apps/docs/spec/transforms/api_v1_openapi_deparsed.json
apps/docs/spec/transforms/api_v2_openapi_deparsed.json`
3. open http://localhost:3001/docs/reference/api/v1-update-a-function.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-20 16:19:19 +03:00
supabase-supabase-autofixer[bot]andantlio 61d9b7304d feat: update mgmt api docs (#51246)
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: antlio <14966155+antlio@users.noreply.github.com>
2026-10-20 16:19:00 +03:00
Kody Jackson f15391efee fix(www, changelog) - add in canonical URLs for product, blogs, partners, pricing pages (#51859)
## Problem

Missing canonical tags on many `www` pages (blogs, changelog entries,
product pages, etc.).

Part of general AEO / SEO hygiene.

## Solution

Adds these in a similar pattern to `mdAlternates` (#48287)

<img width="984" height="381" alt="image"
src="https://github.com/user-attachments/assets/0a596f7f-b034-451f-9ea1-6804c5184388"
/>


## Preview links

Route type | Live | Preview
-- | -- | --
Home (app router, page-level canonical) | https://supabase.com/ |
https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/
Blog index (app router) | https://supabase.com/blog |
https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/blog
Blog post | https://supabase.com/blog/supabase-alpha-april-2020 |
https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/blog/supabase-alpha-april-2020
Blog tag | https://supabase.com/blog/tags/postgres |
https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/blog/tags/postgres
Blog author | https://supabase.com/blog/authors/paul_copplestone |
https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/blog/authors/paul_copplestone
Product page | https://supabase.com/edge-functions |
https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/edge-functions
Pricing | https://supabase.com/pricing |
https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/pricing
Features index (pages router, _app) | https://supabase.com/features |
https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/features
Feature sub-page | https://supabase.com/features/postgres-database |
https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/features/postgres-database
Page with its own NextSeo canonical (override case) |
https://supabase.com/state-of-startups-2025 |
https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/state-of-startups-2025
Legal page, no page-level SEO (pages router default) |
https://supabase.com/legal |
https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/legal
2026-10-20 08:01:38 -05:00
supabase-supabase-autofixer[bot]andgithub-actions[bot] e2cf5b7adc [bot] Decrease ESLint ratchet baselines (#51870)
Automated weekly decrease of ESLint ratchet baselines.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-10-20 12:22:03 +00:00
Ricardo Tavares 807fb3df16 chore(docs): Add Ricardo Tavares to humans.txt (#51998)
## Problem

Just joined Supabase and need to add my name to `humans.txt` as part of
onboarding

## Solution

Add my name to `humans.txt`, keep it ordered alphabetically

## Checklist

Check all before review:

- [X] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-20 11:18:05 +01:00
kemal.earthandJoshen Lim 4b5b2a3d71 feat(studio): multiselect for team member projects selector (#51948)
## Problem

In organization Team settings, admins could only assign one project at a
time to a team member with project-scoped access, both when sending an
invite and when managing an existing member's access. The platform API
(role_scoped_projects) already accepts an array of project refs, so this
was purely a UI constraint. Teams customers with larger orgs hit this
repeatedly, since granting access to several projects meant repeating
the picker one project at a time.

## Solution

Added a new shared component, elect, and used it in bothces that
previously used thonProjectSelector:

- Invite members: the project field changed from a scalar projectRef to
projectRefs: string[]; the invite payload now sends every selected
project. anage access: the one-at-a-is replaced by theulti-select, wired
into the list (add/remove updates thatlist; the per-row role dropdowns
and remove buttons are unchanged).

The multi-select reuses the existing debounced-search + infinite-scroll
project daer (same as the old single-ve the same), combined with the
generic ui-patterns/multi-select primitives for the checkable list and
removable trigger badges. It supports:
- Type-to-search against the paginated project list eselecting a project
eitherits badge on the trigger
- Projects the current user isn't permitted to remove (a role-removal
permission check) show as selected-but-locked, with an explanatory
tooltip
existing "All projects" toflows — the multi-select onlyrenders when that
toggle is off, and toggling it on/off behaves exactly as before.

Also fixed an unrelated pre-existing cosmetic bug noticed while testing:
the Managess sheet used bg-surface-2) instead of the sheetprimitive's
default opaque background, making it visibly see-through compared to
every other sheet in the app.
                                                        
## Review instructions
                                                      
1. Open Invite members, turn os if needed, toggle "Grant this role on
all projects" off, and confirm you can search and select several
projects, with each shown as a removable badge.
2. Send the invite and confirm applied to the new member'saccess.
3. Open Manage access on an existing member with project-scoped access —
confirm tcurrent projects are pre-se more projects via themulti-select,
remove one via its badge and another via the row's "X", and save.Confirm
the saved access ma
4. Toggle "Apply roles to all projects" on and off in Manage access and
confirm thexisting toggle behavior is
5. Confirm the Manage access sheet background is now fully opaque,
matching other sheets in the app.
6. pnpm --filter studio typecher studio test for the touchedfiles all
pass.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-10-20 10:44:08 +01:00
Riccardo Busetti 0670509381 feat(pipelines): Improve lag UI for Pipelines (#51863) 2026-10-20 08:48:24 +00:00
Pamela Chia 76f0585e80 fix(studio): limit project exit surveys (#51946)
I limited project deletion exit surveys to Pro and Team organizations.
Other plans use the compact deletion dialog, with the permanent-deletion
message consolidated into its warning and typed project-name
confirmation retained.

## To test

Tested on the updated Studio PR preview:

- [x] Open project deletion for a Free org, expect the
permanent-deletion text and documentation link together inside the
warning, no separate deletion paragraph, and no survey fields.
- [x] Open project deletion for a Pro org, expect the existing warning,
reason selector, and feedback field.
- [x] In Free and Pro dialogs, enter an incorrect project name and press
Enter, expect “Value entered does not match”. Enter the exact name,
expect the error to clear, then close without submitting.

Not exercised:

- [ ] Open project deletion for a Team org, expect the survey fields.
- [ ] Open project deletion for Enterprise and Platform orgs, expect
compact confirmation without survey fields. These plans are unavailable
in the staging account.

## Linear

- fixes FE-4634
2026-10-20 08:33:45 +00:00
Rory Hunter c0a4b6a2c7 Add Rory Hunter to humans.txt (#51991) 2026-10-20 09:18:29 +01:00
Anthony Lio 7eff6c3642 fix(studio): layout extra height overscroll in usage page (#51915)
## Problem

on `/org/[slug]/usage` the page scrolls past the end of the content and
shows a blank area caused by an absolute element without ancestor

| state | preview |
| -------|------|
| before | <img width="1718" height="927" alt="image"
src="https://github.com/user-attachments/assets/d852486a-76a3-423e-96cb-cbf3ac637306"
/> |

## Solution

- adds `relative` to the scroll container `<main>` in
`OrganizationLayout`

<!--
## 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. visit `/org/[slug]/usage`
2. [prod] scroll to the bottom then keep scrolling
3. [preview link] scroll to the bottom then keep scrolling, it should
not be possible

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-20 10:26:16 +03:00