mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
create-pull-request/patch
40517
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
bef73a722c |
feat(studio): gate storage, cron, and realtime key consumers on grants (#52728)
Part 4 of 4 in a stack for [FE-4694](https://linear.app/supabase/issue/FE-4694/pilot-split-api-keys-queries-and-add-first-refinement-reveal-variant). Based on #52727. ## Stack 1. #52723 Reveal refinement and split api-keys queries 2. #52724 API keys settings UI and command menu 3. #52727 Database and edge functions consumers that reveal secret keys 4. 👉 Storage, cron, and Realtime consumers; remove the transitional reveal path ## Changes Moves the remaining consumers that need secret keys onto the `reveal` grant with `revealedApiKeysQueryOptions`, replacing their V2 permission checks: - Analytics bucket configuration details and the update catalog token dialog - The Iceberg wrapper create mutation. Its V2 check only covered `api_gateway_keys_secret_read`, which didn't match the endpoint's requirement. Without keys it used to save a placeholder as the vault token; it now throws unless the grant is granted, and returns the grant so callers can explain why. The bucket create form disables Create and the missing-wrapper callout disables "Install wrapper", both showing `ApiKeysAccessNote`. The `storage_config_write` check is unchanged. - Cron job HTTP headers (edge function variant) `RealtimeTokensPopover` only reads the anon and publishable keys, so it moves to the plain grant and `apiKeysQueryOptions` instead of requesting revealed keys. With no `reveal: true` callers left, the transitional `useAPIKeysQuery` / `useAPIKeys` hooks drop their reveal path and only mint a plain grant. They remain for the publishable-only consumers until FE-4731. ## Testing - `iceberg-wrapper-create-mutation.platform.test.tsx`: `mutateAsync` throws without the reveal grant and makes no credentials request; the granted case exposes the grant. - `BucketCallouts.platform.test.tsx`: "Install wrapper" is enabled when granted, and disabled with the note when denied or with an error when the permission check fails. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
82671cbb65 |
feat(studio): gate database and functions reveal consumers on grants (#52727)
Part 3 of 4 in a stack for [FE-4694](https://linear.app/supabase/issue/FE-4694/pilot-split-api-keys-queries-and-add-first-refinement-reveal-variant). Based on #52724. ## Stack 1. #52723 Reveal refinement and split api-keys queries 2. #52724 API keys settings UI and command menu 3. 👉 Database and edge functions consumers that reveal secret keys 4. #52728 Storage, cron, and Realtime consumers; remove the transitional reveal path ## Changes Moves the database and edge functions consumers that need secret keys off the V2 permission checks and onto `useGrant('GET /v1/projects/{ref}/api-keys', scope, { variant: 'reveal' })` with `revealedApiKeysQueryOptions`: - Database webhooks (`Database/Hooks/HTTPHeaders`, `FormContents`) - Replication destination form (Analytics Bucket catalog token prefill) - Edge function tester sheet Adds `components/ui/ApiKeysAccessNote`, a small inline note shown when the reveal grant is denied, and an `AlertError` when the permission check fails. It doesn't block the rest of the form: users without secret-key access can still fill in headers or the catalog token manually, where before the keys were silently missing. ## Testing - Adds `HTTPHeaders.platform.test.tsx` covering granted (requests keys with `reveal=true`, no note), denied (note shown, form still usable, no request), and permission-check error. - Removes the partial V2 permissions mock from the DestinationForm test, which no longer needs it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
7b37c789ed |
fix(telemetry): skip sign-in pages and send cookie write time (#52697)
This fixes two gaps in the first-referrer cookie. It skipped only `accounts.google.com` and GitHub OAuth returns, so coming back from a regional Google account page, YouTube's account page, Sign in with ChatGPT (`auth.openai.com`) or Sign in with Apple stamped the write-once cookie with the login page. It also stored its write time without ever sending it, so there was no way to tell an old first-touch source from a fresh one in the data. **Changed:** - **Sign-in pages are never a source**: I extended `isOAuthRedirectReferrer` to also match Google's regional account hosts (`accounts.google.com.br`, `accounts.google.co.uk` and so on), `accounts.youtube.com`, `auth.openai.com` and `appleid.apple.com`. That one function decides cookie stamping, skips a cookie that already holds one of these hosts, and swaps such a live referrer for the cookie's referrer. Unit tests cover the host list, including a lookalike domain; `packages/common` tests run locally only until #51774 adds them to CI. - **Cookie write time on the pageview**: I added `first_touch_timestamp` (ISO 8601) to the pageview that consumes the cookie. A cookie without a valid `ts` sends no timestamp. Parsing previously defaulted it to the current time. The kb telemetry test now asserts the property, so CI covers it. **Note:** a pageview returning from these sign-in pages with a cookie now reports the cookie's referrer, as `accounts.google.com` returns already do, so `auth.openai.com` no longer shows up as `$referrer` on those pageviews. ## To test The preview never sets the cookie (not even for a `https://www.google.com/` referrer), so the cookie checks run against supabase.com. - [x] Before, on supabase.com today: `curl -sI https://supabase.com/ -H 'Referer: https://auth.openai.com/'` returns `Set-Cookie: _sb_first_referrer=...` holding `auth.openai.com`. Same for `https://accounts.google.com.br/`. - [ ] After deploy: the same two requests return no `_sb_first_referrer` cookie, and the control `-H 'Referer: https://www.google.com/'` still sets one. - [ ] After deploy, in PostHog: a dashboard `$pageview` with `first_referrer_cookie_consumed = true` carries `first_touch_timestamp`. ## Linear - part of GROWTH-1433 |
||
|
|
7bc32a82fd |
feat(studio): gate api keys settings UI on api-keys grants (#52724)
Part 2 of 4 in a stack for [FE-4694](https://linear.app/supabase/issue/FE-4694/pilot-split-api-keys-queries-and-add-first-refinement-reveal-variant). Based on #52723. ## Stack 1. #52723 Reveal refinement and split api-keys queries 2. 👉 #52724 API keys settings UI and command menu 3. #52727 Database and edge functions consumers that reveal secret keys 4. #52728 Storage, cron, and Realtime consumers; remove the transitional reveal path ## Changes Moves the API keys settings UI off the V2 permission checks and onto `useGrant('GET /v1/projects/{ref}/api-keys')` with the new query options: - `PublishableAPIKeys`, `SecretAPIKeys`, `Project/APIKeys`, and the api-keys settings page use a plain grant. They never requested revealed keys; individual secrets still come from the per-key endpoint. - The command menu's API keys commands use the `reveal` grant, since they copy secret key values. - Each consumer renders loading, denied (`NoPermission`), permission-check error (`AlertError`), and the existing data states. `Project/APIKeys` now shows `NoPermission` when denied instead of a skeleton that never resolved. ## Testing - Migrates `PublishableAPIKeys.test.tsx`, `CommandMenu/ApiKeys.test.tsx`, and the api-keys settings page test to MSW and `customRender`, without mocking the data module or the V2 permissions hook. - Adds `PublishableAPIKeys.platform.test.tsx` and `CommandMenu/ApiKeys.platform.test.tsx` for granted, denied, and error states. The denied test waits for the denied grant before asserting that no api-keys request was made. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
676ea140ef |
refactor(studio): align OAuth role validation failure types with the API (#52532)
## Problem
The scoped OAuth consent screen is still mock-backed, and its types for
`role_validation_failed` responses don't match what the platform API
will return. The API reports only the role level (`owner`,
`administrator`, `developer`, `read-only` or `no-access`) in each
failure, not the full role object, and project failures carry no `name`.
## Solution
- `OAuthScopeValidationResult` uses `{ name: 'owner' | 'administrator' |
'developer' | 'read-only' | 'no-access' }` for `role` in all three
`scope_target` variants, and project failures drop `name`.
- The mock approval and preflight responses build that shape from the
mock org roles.
- `types.test.ts` fixtures follow the new shape.
The consent screen only reads `ref` from project failures, so there is
no UI change.
The types are hand-written until the API change that introduces this
shape lands and `api-types` is regenerated.
Verification: `vitest run data/oauth-apps
components/interfaces/Organization/OAuthApps` (115 passed). `tsc
--noEmit` reports one error in `packages/ui-patterns`, which also occurs
without this change.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
|
||
|
|
d727bb0081 |
feat(studio): add reveal refinement for api-keys and split queries (#52723)
Part 1 of 4 in a stack for [FE-4694](https://linear.app/supabase/issue/FE-4694/pilot-split-api-keys-queries-and-add-first-refinement-reveal-variant). Later PRs migrate the api-keys consumers onto grants. ## Stack 1. 👉 Reveal refinement and split api-keys queries 2. #52724 API keys settings UI and command menu 3. #52727 Database and edge functions consumers that reveal secret keys 4. #52728 Storage, cron, and Realtime consumers; remove the transitional reveal path ## Changes - Adds a `reveal` variant for `GET /v1/projects/{ref}/api-keys` in `lib/fga-refinements.ts`. It requires `api_gateway_keys_secret_read` on top of the base annotation, and owns the `reveal` query param: the fetch wrapper sets it to `'true'` for a reveal grant and `'false'` otherwise (including `unguarded`), so passing `reveal` by hand is a type error. - Splits the query into `apiKeysQueryOptions` (plain grant) and `revealedApiKeysQueryOptions` (reveal grant). Both use `skipToken` without a grant, and the grant stays out of the query key. - `useAPIKeysQuery` and `useAPIKeys` stay as deprecated transitional hooks that mint the matching grant with `useGrant`. They can't use `unguarded.migrating`: with `reveal` owned by the wrapper, that would silently return unrevealed keys to consumers that need secrets. - Marks the variant type parameter `const` in `getGrant`, `useGrant`, `ensureGrant`, and `testGrant`. Adding a second refinement with variants widened inference of the branch variants to a union. - Adds `tests/lib/project-grant-mocks.ts` for component tests that need `useGrant` to resolve, and updates tests that partially mocked the V2 permissions hook. ## Testing Adds the type and runtime tests deferred from FE-4689 to `data/guarded-fetch.test.ts`: type equality with the raw client for plain and reveal grants, `reveal` rejected as a caller-supplied param, a reveal grant rejected on an endpoint without that variant, brand invariance, `guardMethod` setting `reveal` from the grant, and `assertGrant` throwing on an unknown variant. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
85c811b1af |
content(kb) - vector db listicle (#52716)
## Context vector db listicle ## Preview links https://kb-git-kody-devrel-808-vector-db-listicle-supabase.vercel.app/kb/guides/best-vector-database-providers --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
04e72cae1a |
feat(telemetry): track clicks on GitHub example links (#52947)
Docs, www and Studio link to the repo's `examples/` folder from many pages, but we don't record those clicks. PostHog autocapture is off, so we can't tell which examples people open or which pages send them there. **Changed:** - **New `example_link_clicked` event**: I added one capture-phase click listener in `PageTelemetry`. It sends the event when the clicked anchor points at `github.com/supabase/supabase/(tree|blob)/<ref>/examples/<path>`, with `examplePath` set to the path after `examples/`. The source page comes from the event's existing page URL. I put it in `PageTelemetry` so it covers docs, www and Studio without changing individual links, and it sits behind the existing `enabled` and consent gates. - **Survives same-tab navigation**: I added the event to `KEEPALIVE_ACTIONS`, since docs MDX links open GitHub in the same tab. **Note:** middle-clicks and the `window.open` items in the code sample "View source" dropdown aren't counted, so the numbers are a lower bound. ## To test Accept the cookie banner first: the event only sends after consent. Watch the network tab for `POST .../platform/telemetry/event`. Tested on the PR preview: - [x] On `/docs/guides/getting-started/tutorials/with-nextjs`, click "full example on GitHub", expect one request with `action: example_link_clicked` and `custom_properties.examplePath: user-management/nextjs-user-management` (one request, 201, `pathname` set to the docs page) - [x] On `/blog/self-host-maps-storage-protomaps`, click "Find the code", expect one request with `examplePath: storage/protomaps` (201) - [x] On a Studio project's Edge Functions page, click the examples link, expect one request with `examplePath: edge-functions/supabase/functions` (201) - [x] Click a GitHub link outside `examples/` (the GitHub button in the www nav), expect no `example_link_clicked` request (only `homepage_github_button_clicked` fired) - [x] Added: plain same-tab click on the docs link, expect the event to arrive even though the page navigates to GitHub (ingested in staging PostHog about one second after the click) ## Linear - fixes GROWTH-1441 |
||
|
|
c1da930c40 |
chore(www) - crosslink + footer for dbarena.com (#52732)
## Problem dbarena.com launch, but not tied into other relevant areas of blog or www ecosystem. ## Solution Adds to the footer + some relevant cross-links from older blog posts. ## Preview links TBD |
||
|
|
5deb2de888 |
chore(www) - strengthen cross-links to /database + add 'free' to page description and content (#52731)
## Problem Not ranking quite as highly in traditional SEO for generic, unbranded queries like `free database`. Similar in vibes to #50667. ## Solution - Explicitly adds `free` to the positioning on the main database page - Cross links where applicable from various blogs. Predominantly older posts, as those aren't typically visited by end users. ## Preview links TBD |
||
|
|
c801888628 |
chore(www) - add auth cross links to earlier blog posts (#52734)
## Problem Missing cross-links to auth in many earlier blog posts. ## Solution adds some + fixed a few `ui.supabase.com` links while I was in there. ## Preview links N/A, changes are largely atomic so previews not helpful. |
||
|
|
885124771f |
chore: Restore hash on kb pages, reverse redirects to permanent paths (#52788)
## Problem In our initial launch of `kb`, a script mistakenly removed the hash in the end of troubleshooting guides. This pattern removal was wrong, since it didn't delete several non-matching hashes, plus created discrepancies between our troubleshooting database table. ## Solution Because we launched already, we need to make sure people with the old hash-less URLs can still access the content by manually listing these mistakes in redirects at kb level. We will remove the pattern matching from docs redirects and special redirects since they are not needed anymore thanks to this. From now on, URLs hashes will stay as the default URL behavior. Adapting the project to hash-less URLs would be more complicated and dangerous: - We would need to manually run migrations on database tables - Update the HEX AI script generating these hashes to actually stop or follow a stricter pattern - We would still run onto a potential issue by the reg ex match failing for certain pages <!-- ## 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 Test docs redirects working correctly: - Go to https://docs-git-jeremiasmenichelli-docs-1577-fix-redir-24a637-supabase.vercel.app/docs/guides/troubleshooting/42501--permission-denied-for-table-httprequestqueue-KnozmQ it should lead to https://docs-git-jeremiasmenichelli-docs-1577-fix-redir-24a637-supabase.vercel.app/kb/troubleshooting/42501--permission-denied-for-table-httprequestqueue-KnozmQ - This would lead to a 404 because each preview has different base URL. _Sadly, cross-site redirects cannot be tested in preview environments._ You can test kb redirects: - Go to a guide without its hash, for example https://kb-git-jeremiasmenichelli-docs-1577-fix-redirec-963704-supabase.vercel.app/kb/troubleshooting/42501--permission-denied-for-table-httprequestqueue, it should lead to https://kb-git-jeremiasmenichelli-docs-1577-fix-redirec-963704-supabase.vercel.app/kb/troubleshooting/42501--permission-denied-for-table-httprequestqueue-KnozmQ ## 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) |
||
|
|
706dba62f9 |
fix(studio): attribute storage policies to every bucket they reference (#52692)
## Problem
Studio's storage policy parser (\`extractBucketNameFromDefinition\`)
returned only the first quoted string near \`bucket_id\` and ignored the
operator. As a result:
- Policies covering several buckets (\`bucket_id in ('a', 'b')\`) were
listed and counted under the first bucket only.
- Negated policies (\`bucket_id <> 'a'\`) were attributed to the
excluded bucket.
- \`DeleteBucketModal\` could delete a negated or shared policy that
still protects other buckets.
Fixes FE-3993, supabase/supabase#48164.
Before:
<img width="884" height="444" alt="Screenshot 2026-11-03 at 10 46 08"
src="https://github.com/user-attachments/assets/fc6e4842-b07f-40be-8057-b94f4034e4eb"
/>
After (same data):
<img width="891" height="515" alt="Screenshot 2026-11-03 at 10 46 21"
src="https://github.com/user-attachments/assets/47248b30-a309-4774-8349-05260ad02111"
/>
## Solution
- Replace the parser with \`extractBucketNamesFromDefinition\`, which
returns every bucket referenced via \`=\`, \`= ANY (ARRAY[...])\` and
\`OR\`, and returns none for negated conditions (those fall into
Ungrouped).
- Add \`getPolicyBucketNames\`, which combines \`definition\` and
\`check\`, and use it in the Policies page grouping,
\`useBucketPolicyCount\`, and \`DeleteBucketModal\` so they agree.
- A policy is now listed under each bucket it covers.
- Bucket deletion only removes policies whose sole target is the deleted
bucket. Shared and negated policies are left in place. This is the
conservative choice: an unparsed policy is left behind, never deleted.
- Added unit tests for the parser shapes, negation, \`check\`-only
policies, and grouping.
|
||
|
|
9dfece25cc | fix(self-hosted): leave CORS on /functions/v1 to the function (#52709) | ||
|
|
fc78c1be53 | fix(self-hosted): add CORS headers to Edge Functions router errors (#52710) | ||
|
|
4a04bb1fc9 |
chore(deps): bump nuxt to 4.6.3 to resolve audit advisory (#52714)
## Problem `pnpm audit` reports a moderate advisory for `nuxt` (patched in `>=4.6.2`). The lockfile resolves `nuxt` to 4.5.2 for `blocks/vue`. ## Solution - Ran `pnpm tsx scripts/fix-audit-vulnerability.ts nuxt --json`. It resolved `nuxt` from 4.5.2 to 4.6.3 without a permanent override (`pnpm-lock.yaml` only). The other lockfile changes are the transitive re-resolutions that come with the nuxt upgrade. - nuxt 4.6 types `useRequestEvent()` through `ServerTypes`, which `@nuxt/nitro-server` augments inside a Nuxt app. `blocks/vue` is not a Nuxt app, so the call resolved to the generic `RequestEvent`, and `@supabase/vue-blocks` failed typecheck where it passes that value to `createSupabaseServerClient(event: H3Event | undefined)`. The nuxtjs `is-authenticated` middleware now casts the event to h3's `H3Event`. Under Nitro that is its runtime type, so the block works the same in user apps. - Regenerated `apps/ui-library/public/r/supabase-client-nuxtjs.json` with `pnpm build:registry`. ## Review instructions 1. `pnpm install --frozen-lockfile` succeeds. 2. `pnpm audit --json` lists no advisory for `nuxt`. 3. `pnpm turbo run typecheck --filter='...[origin/master]'` passes (17/17 tasks, including `@supabase/vue-blocks`). 4. `pnpm turbo run lint --filter='[origin/master]'` passes. 5. On the UI library preview, the Supabase client for Nuxt.js block shows the updated `is-authenticated.ts` middleware with the `H3Event` cast. Verification: ran all of the commands above, plus Prettier on the changed files. The first studio typecheck run was killed for running out of memory (exit 137). Rerun with turbo concurrency 1, it passed. ## Checklist - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) [FE-4886](https://linear.app/supabase/issue/FE-4886/bump-a-single-vulnerable-dependency) --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
b5d9f22f14 |
fix(studio): handle unknown upgrade warning types (#52775)
Fixes a page crash on Project Settings > General. The upgrade
eligibility API now returns a warning type
(`collation_reindex_required`) that Studio doesn't handle, so
`getWarningLink` returned `undefined` and `<Link href={undefined}>`
threw in `resolveHref`, taking the page down via the global error
boundary.
**Changed:**
- Added `default` cases to the warning title, description, and link
helpers in `UpgradeWarnings.tsx`. Unknown warning types now show generic
copy and link to the specific upgrade notes section of the docs, rather
than being hidden or crashing.
**Added:**
- `UpgradeWarnings.test.tsx`, covering a known warning type and an
unknown one. The unknown case failed with `href` undefined before this
change.
**Not in this PR:**
- Dedicated copy for `collation_reindex_required`. That needs
regenerated `api-types` and an upgrade guide section, which doesn't
exist yet.
- Open tabs on old bundles keep crashing until they reload, since this
fix only reaches new bundles.
## To test
- Open Project Settings > General on a project whose
`/upgrade/eligibility` response includes `collation_reindex_required`.
The page should load and show "Review the upgrade notes before
upgrading".
- Check that "Read upgrade notes" goes to the specific upgrade notes
section of the upgrading guide.
- Check that a known warning type, such as `ltree_reindex_required`,
still shows its own copy and link.
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
|
||
|
|
4a9b2b6860 |
chore(docs): Add Adam to humans.txt (#52754)
## Problem My onboarding instructions asked me to add myself to humans.txt. ## Solution I added myself to humans.txt. ## Review instructions Verify that "Adam Howard" appears alphabetically in the list of humans ## 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) |
||
|
|
30833db87e |
chore: Refactor sync troubleshooting scripts after data reconciliation (#52713)
## Problem
We solved manually some `troubleshooting_entries` table missing data and
mismatches.
- **Rows without slugs.** Some `troubleshooting_entries` rows had no
slug, so no guide could match them and the guides looked "new".
- **Duplicate discussions.** A guide that didn't match its row got a
fresh GitHub discussion, leaving the original behind (sometimes with
extras).
- **Slug mismatch.** The fetch stripped the hash suffix from file names
while the table keeps it, so those guides never matched their rows.
- **Overlapping runs.** The workflow had no concurrency control, so two
runs could both create a discussion for the same guide, and `upsert`
silently overwrote the first run's row.
- **Missing checksums.** Rows without a checksum counted as "changed"
and were re-pushed to GitHub on every run.
- **Weak dry run.** `--dry-run` only printed slugs, so it was hard to
see what a run would actually do.
- **Fragile lookup and duplicated code.** Rows were fetched with every
slug in the URL (`.in('slug', …)`), and both scripts carried their own
copy of the guide reader and checksum.
## Solution
After those steps we applied successfully to the database, we revamp our
existing sync scripts to allow dry runs to make sure the changes we
apply are going to generate the correct impact.
A new improvement to prevent bulk discussion errors on GitHub API.
<!--
## 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
_Sadly, we need to merge, and pray..._
## 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)
|
||
|
|
134a5baf72 |
docs: add Alpar Torok to humans.txt (#52693)
## Problem Add Alpar Torok to the Supabase team list in `apps/docs/public/humans.txt`. ## Solution Insert the name in alphabetical order between Allan S and Amir Issaei. ## Review instructions 1. Open `apps/docs/public/humans.txt`. 2. Confirm `Alpar Torok` appears once, between Allan S and Amir Issaei. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md). - [x] This change does not add or edit a docs topic. ## Self-review - Verified the one-line diff and ran `git diff --check`. - No build or tests were run for this static text entry. |
||
|
|
2182a9100f |
fix(docs): nav first paint (#52679)
## Problem - the docs nav experiment from #52191 hides the top bar links and the sidebar nav until the feature flags load - the flags load after auth, posthog and configcat, so each visitor waits up to 1s after hydration ## Solution - changes the docs nav to show the server links on first paint, so most visitors do not wait for the flags - adds a cache of the experiment value from the last visit, so a returning visitor gets their variant at hydration - adds a head script that hides the nav only for visitors cached on option-1, so the control menu does not flash - fixes the nav swap when the posthog request fails, because the nav keeps the cached variant - fixes the stale option-1 cache after the flag is deleted, because the cache saves `false` when posthog returns no flag - changes the experiment exposure to wait for loaded flags, so a stale cached variant is never recorded <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open [/docs/guides/auth](https://docs-git-antlio-fix-docs-nav-first-paint-supabase.vercel.app/docs/guides/auth) on desktop and reload the page 2. make sure that the top bar links and the sidebar nav show on first paint 3. open [/docs/guides/auth?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-nav-first-paint-supabase.vercel.app/docs/guides/auth?docs-ia-mvp-v1=option-1) and make sure that the top bar shows "Develop and deploy" and "Run and manage" 4. at a mobile width, open the menu and make sure that the menu sections show 5. run `pnpm --filter docs exec vitest run features/IaNav` and make sure that all 18 tests pass ## 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) |
||
|
|
2b55f7db9a |
Joshenlim/fe 4719 cmd k support searching for policies (#52678)
## Context Continue to build off from [here](https://github.com/supabase/supabase/pull/52205) to make Cmd+K resource-aware so finding and inspecting anything in a project doesn't depend on knowing where it lives in the dashboard. Specifically looking into database entities for now - end state would be that you could search for a table name for example, and Cmd K will pull up everything related to that table for you to skim (e.g Policies, Functions, Triggers, etc). Changes in this PR sets up searching for RLS policies. <img width="609" height="525" alt="image" src="https://github.com/user-attachments/assets/212a430a-314d-48c4-a27c-2f9bb06e8457" /> Policies are matched on, in priority, its name and the target table. ## Performance checking Just ran a check with Claude just to make sure that the added SQL doesn't cause any performance degradation on the database. Plan guard passes at 12,000 tables, under its 500ms budget. Also benchmarked locally with a 3-character query matching every policy, results look good so should be alright: | Catalog | Worst-case search | No-match baseline | |---|---|---| | 36k policies | ~52–64ms | ~16ms | | 120k policies | ~118–134ms | ~63ms | ## To test - [x] Search a table name: Tables first, then its policies, under Policies - [x] Search a policy name: it appears under Policies and opens the editor panel in database/policies - [x] Policy outside `public`: schema filter switches and the policy opens |
||
|
|
0b9e8bdea4 |
Joshenlim/fe 4882 make the new integrations UI the default (#52683)
## Context Makes the one-click integrations feature preview the new default + cleans up all the old integrations code that's no longer used with this change ## To test - [ ] Verify that the project integrations page is using the new UI |
||
|
|
2801dfc83f |
chore(studio)Update overview of Stripe Sync Engine (#52622)
The Sync Engine description was requested to be updated by the Stripe team, to help direct users to their one-click solution, whilst calling out the differences between the Sync Engine and Stripe Data Pipeline ## Problem Users may not get all of the functioanlity they need today via the Stripe-owned Sync Engine ## Solution Updated the description to help users make a choice <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions Provide a clear numbered procedure that the PR reviewer can walk through. 1. For example, `Open the live and preview links side-by-side.` 2. For example, `See the issue is fixed.` ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [n/a] ~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: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
607dc2bfde |
Chore/cleanup dead code in project branch selector (#52691)
## Context
Just some housekeeping here while going through the repo, realised that
there's dead code in `ProjectBranchSwitcher`
## Changes involved:
- `ProjectBranchSelector` is only rendered by `MobileNavigationBar`,
which `DefaultLayout` only mounts when `useBreakpoint('md')` is true.
The selector's own `isMobile` check used the same breakpoint, so its
desktop `Popover` branch could never run.
- The name `ProjectBranchSelector` is also misleading since the sheet
switches more than just the project's branch + it's mobile-only, so
opting to rename it to `MobileProjectSwitcher` instead
- Also fix org rows in the sheet being tighter than project rows.
`compactPadding` was inverted, so the embedded list got `p-0.5` on the
item and lost the default `px-2 py-1.5`
- Align buttons in `ProjectBranchSelector` across all tabs + use outline
variant for secondary action
| Previous | Updated |
|---|---|
| <img width="352" height="174" alt="image"
src="https://github.com/user-attachments/assets/24cb2985-b568-4bc1-8f53-ab3914ef0804"
/> | <img width="351" height="161" alt="image"
src="https://github.com/user-attachments/assets/e6e9b0e9-c075-4235-93ca-80c5d070c287"
/> |
| <img width="336" height="248" alt="image"
src="https://github.com/user-attachments/assets/4071b73f-f741-4598-ba01-8dc7bb6ba57a"
/> | <img width="335" height="313" alt="image"
src="https://github.com/user-attachments/assets/2bea398d-ebe9-4641-9bfe-c4a7b6b10c51"
/> |
If you meant a different table, tell me what the two columns should be.
For example, file and change, or before and after behaviour.
|
||
|
|
42bf16cdce |
fix(www): skip proxy for Studio assets and API requests (#52743)
Stops the www proxy from running on Studio's non-document traffic. Each chunk, server function and API request under `/dashboard` currently invokes it, and a cold Studio load preloads a few hundred chunks through this path. **Changed:** - The proxy matcher now skips `/dashboard/_vercel/`, `/dashboard/_serverFn/` and `/dashboard/api/` - Studio documents still match, so direct `/dashboard` landings keep getting the `_sb_first_referrer` cookie and the paid-traffic refresh **Added:** - Matcher tests using Next's `unstable_doesMiddlewareMatch`. The three skip cases fail against the old matcher A quick single-region TTFB probe on production showed a www static file that goes through the proxy about 15ms slower than one that skips it. Rerun that comparison on this preview if you want a before/after. ## To test On the www preview, replacing `<chunk>` with a real chunk path from the page source: - `curl -sI -H 'Referer: https://www.google.com/' <preview>/dashboard/_vercel/immutable/<chunk>`: 200 with no `set-cookie: _sb_first_referrer` - `curl -sI -H 'Referer: https://www.google.com/' <preview>/dashboard/sign-in`: still has `set-cookie: _sb_first_referrer` - Load `/dashboard` in a browser and check Studio renders with no failed chunk or API requests - `curl -sI -H 'Accept: text/markdown' <preview>/pricing`: markdown negotiation on www pages is unchanged Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
b215b66008 |
chore(www): update header image for Explorer and Notebooks blog post (#52738)
## Problem The Explorer and Notebooks launch post is using an outdated header image. A new one was added to the launch doc. ## Solution Replace `thumb.png` for the post with the new header image. The OG image already matches the latest version, so it is unchanged. ## Preview links | Site | Live | | ---- | ---- | | WWW | [/blog/explorer-and-notebooks-investigations-your-team-can-rerun](https://supabase.com/blog/explorer-and-notebooks-investigations-your-team-can-rerun) | ## Review instructions 1. Open the live post and the Vercel preview side by side. 2. Confirm the blog card thumbnail and header show the new image. ## 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) |
||
|
|
6891fc4cc6 |
docs: cross-link RLS and signing keys to the pages readers look for (#52670)
## I have read the CONTRIBUTING.md file. YES ## What kind of change does this PR introduce? **Docs fix: three missing or buried cross-links.** Readers who need Securing your API, custom claims and role-based access control, or the API key migration guide land on Row Level Security or Signing keys and stop there, because those pages do not point clearly to the page they need. This PR adds a tip near the top of Row Level Security, one link in its `auth.jwt()` section, and two links on Signing keys. It changes links and one sentence each, nothing else. Closes DOCS-1572. ## What is the current behavior? - Linear item: Cross-link RLS and signing keys to the pages readers are looking for - The IA scoring v2 comparison on the live site (2026-11-01) found three findability tasks that fail under both the production nav and Option 1. A nav change does not fix them. | Agent lands on | Should reach | Runs that miss (production / Option 1) | | --- | --- | --- | | Row Level Security | Custom claims and RBAC | 9 / 9 of 10 | | Row Level Security | Securing your API | 10 / 10 of 10 | | Signing keys | Migrating to new API keys | 9 / 9 of 10 | - Row Level Security already links to Securing your API in passing and in its related list, but not where a reader decides to stay or leave. ## What is the new behavior? | File | Change | | --- | --- | | `guides/database/postgres/row-level-security.mdx` | Tip after the opening admonition, with "refer to": Securing your API for what the Data API exposes, Custom claims and RBAC for role-based policies. One more RBAC link in the `auth.jwt()` section. | | `guides/auth/signing-keys.mdx` | Link to Migrating to new API keys in the intro and in the step that tells readers to switch to publishable and secret keys. | ## Additional context - Worktree: `~/GitHub/supabase/supabase-worktrees/nikrichers/docs-1572-cross-link-rls-and-signing-keys-to-the-pages-readers-are` - The `<Admonition type="tip">` matches the admonition syntax already on the page. | Check | Result | | --- | --- | | Target pages exist | Pass, all three | | Prettier, stand-in check on both files | Pass | | Repo `pnpm run format` | Not run locally: `pnpm install` needs Node 22.23.4 or later. CI runs it. | ### Before & After | Page | Before (production) | After (preview) | | --- | --- | --- | | Row Level Security | [production](https://supabase.com/docs/guides/database/postgres/row-level-security) | [preview](https://docs-git-nikrichers-docs-1572-cross-link-rls-an-d0b526-supabase.vercel.app/docs/guides/database/postgres/row-level-security) | | Signing keys | [production](https://supabase.com/docs/guides/auth/signing-keys) | [preview](https://docs-git-nikrichers-docs-1572-cross-link-rls-an-d0b526-supabase.vercel.app/docs/guides/auth/signing-keys) | Both preview pages return 200 and contain the new links. ### Test plan - [ ] Row Level Security shows the tip near the top, and both links open the right pages. - [ ] The `auth.jwt()` section links to Custom claims and RBAC. - [ ] Signing keys links to Migrating to new API keys in the intro and in the switch step. - [ ] After merge: rerun the three affected IA scoring tasks on production, 10 runs each. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
d5229133fa |
docs: add Lucie Zhao to humans.txt (#52726)
Adds my name to `apps/docs/public/humans.txt` as part of onboarding. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
1d50816f47 |
docs: enforce duplicate ID a11y rules and fix duplicates (#52720)
Closes DOCS-1573 ## Problem Recently, @antlio surfaced that our side nav was visually breaking. This is caused by a duplicate-id issue. The docs E2E axe scan reports duplicate `id` attributes as a warning only, so pages with duplicate IDs ship. A full scan of production guides found duplicate IDs on 25 of 586 pages. **Causes:** - **Repeated headings:** a page uses the same heading text twice, for example `#### Example` under two sections. Each heading slugs to the same ID. - **Pricing partials:** three usage pages put `## Pricing` directly above a shared partial that starts with its own Pricing heading. - **Components:** Mermaid diagrams hardcode SVG marker and node IDs. The Apple secret generator renders `id="undefined-optional"` on each field label. Each "Build it" listing on the Supabase way page renders `#build-it`. ## Solution - **Enforce the rules:** add `duplicate-id`, `duplicate-id-active`, and `duplicate-id-aria` to `ENFORCED_RULES`. - **Repeated headings:** give each later duplicate a `[#parent-section-heading]` anchor. The first occurrence keeps its ID. - **Pricing headings:** remove the page heading above the three partials that start with `## Pricing`. The PITR partial starts with `### Pricing`, so it gets `[#pitr-pricing]` and the page keeps its H2. - **Mermaid:** prefix the SVG IDs of each diagram with `useId()`. - **Apple secret generator:** give each field an ID. The label now also points at its input. - **Content listings:** add an optional `headingAnchor` to listing groups, and set it on the repeated "Build it" groups. - **pg_net:** the `http_delete` signature had `[#post-signature]`, copied from `http_post`. It is now `[#delete-signature]`. **Cross-references:** no link in the repo targets a changed ID. Each first occurrence keeps its ID, so existing links resolve to the same heading as before. **Not changed:** the www suite and `packages/ui-patterns`. All fixes stay in `apps/docs`. **Verification:** - Against production, `/docs/guides/platform/manage-your-usage/log-drains` fails the @a11y test with `duplicate-id`. - Against a local docs server, the @a11y test passes on all 28 changed or affected pages. **Unverified:** a full-site run with `A11Y_ENFORCE_ALL=1`. Run it against the preview before merge. ## Review instructions 1. From `e2e/docs`, run the a11y test against production. See it fail with `duplicate-id`: ```bash DOCS_E2E_PAGE_PATHS=/docs/guides/platform/manage-your-usage/log-drains PLAYWRIGHT_BASE_URL=https://supabase.com pnpm exec playwright test --grep @a11y ``` 2. Run the same command with `PLAYWRIGHT_BASE_URL` set to the docs preview URL from the Vercel bot comment. See it pass. 3. On the preview, open `/docs/guides/platform/manage-your-usage/log-drains`. In the table of contents, select **Pricing** under **Log Drain Events**. See the page scroll to the second Pricing section. 4. On the preview, open `/docs/guides/integrations/partner-integration-guide`. See both sequence diagrams render with arrowheads. ## 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) |
||
|
|
cdba349de9 |
fix(www): reword offboarding benefit on enterprise-managed authorization feature page (#52718)
## 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? - Copy update to benefit 4 of the Enterprise-Managed Authorization for MCP entry in `apps/www/data/features.tsx` - Copy update to the second "When to use it" bullet of the same entry ## What is the current behavior? Benefit 4 and the second "When to use it" bullet both say removing a member in one place cuts off their access everywhere. ## What is the new behavior? - Benefit 4 is now "Revoke in one place" - Revoking Claude under Authorized apps cuts off the whole organization - Offboarding one member means removing them from the Supabase organization and from whichever issues their access (identity provider or Claude organization), matching the docs and the Claude-issued launch post - The second "When to use it" bullet no longer ends with "so that offboarding an employee removes their access everywhere" ## Additional context N/A --------- Co-authored-by: Ana <ana1337x@users.noreply.github.com> |
||
|
|
6bd5cf1b2b |
blog: add Claude-issued enterprise-managed auth for MCP post (#52635)
## Problem Enterprise-managed auth for the Supabase MCP server launched in August with the identity provider issuing each member's ID-JAG and Okta was the only identity provider that supported the MCP Enterprise-Managed Authorization extension. Organizations on other identity providers couldn't use it. Claude can now issue the identity assertion itself which removes that dependency and we need a launch post for it. ## Solution Adds the blog post `2026-11-03-claude-issued-enterprise-managed-auth-for-mcp.mdx`. ## 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) --------- Co-authored-by: Ana <ana1337x@users.noreply.github.com> |
||
|
|
1e26878d7f |
docs: correct gp3 disk throughput price in Compute and Disk guide (#52715)
## Problem The disk types table in the Compute and Disk guide listed gp3 throughput over-usage as $0.95 per MB/s. The Disk Throughput usage page lists $0.095 per MB/s per month ($0.00013 per MB/s-Hr), so the two pages disagreed. ## Solution Change the gp3 throughput price in the table on `guides/platform/compute-and-disk.mdx` from `0.95` to `0.095`. The other table rows only changed whitespace, because Prettier realigned the table columns. Checks run: `pnpm turbo run lint --filter='[origin/master]'` and Prettier `--check` on the changed file. ## Review instructions 1. Open `/docs/guides/platform/compute-and-disk#disk-types` on the docs preview. 2. In the disk types table, the gp3 **Pricing** cell reads "Throughput: 125 MB/s included, then $0.095 per MB/s". 3. The other values in the table (disk $0.125 per GB, IOPS $0.024 per IOPS, io2 disk $0.195 per GB, io2 IOPS $0.119 per IOPS) are unchanged. ## 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) [FE-4887](https://linear.app/supabase/issue/FE-4887/correct-gp3-throughput-pricing-in-compute-and-disk-docs) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
5eb873aad0 |
feat(www): add enterprise-managed auth for mcp feature page (#51819)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? - New feature page entry in `apps/www/data/features.tsx` ## What is the current behavior? There is no feature page for Enterprise-Managed Authorization for MCP, and `/features/enterprise-managed-auth-for-mcp` returns 404. ## What is the new behavior? - Adds an Enterprise-Managed Authorization for MCP entry at `/features/enterprise-managed-auth-for-mcp`, placed after the MCP Server entry - Body covers key benefits, when to use it, how it works (identity provider or Claude-issued), and get started - Stage: General Availability. Available on self-hosted: No. Product: Platform - `docsUrl` points to `/docs/guides/platform/sso/enterprise-mcp-authorization` - `blogUrl` points to `/blog/claude-issued-enterprise-managed-auth-for-mcp`, which renders the "Read Blog Post" button - Hero image uses the Claude-issued blog post's OG image at `/images/blog/2026-11-03-claude-issued-enterprise-managed-auth-for-mcp/og.png` ## Additional context Merge after #52021 (docs page) and #52635 (blog post). The docs URL, blog URL, and hero image come from those PRs. --------- Co-authored-by: Ana <ana1337x@users.noreply.github.com> Co-authored-by: Wen Bo Xie <wenbox323@gmail.com> |
||
|
|
5a1e59eb2e |
docs: add Claude as ID-JAG issuer for MCP Enterprise-Managed Auth (#52021)
## Problem Anthropic now lets Claude issue the ID-JAG for enterprise-managed MCP auth when a customer's identity provider can't. No Supabase code change is needed: the platform already validates ID-JAGs against whichever issuer URL the organization configures. The page called the feature "enterprise-managed authentication." It implements the MCP spec's Enterprise-Managed Authorization extension and is built on an RFC 7523 authorization grant. Authentication stays with the IdP. The Studio field description had the same wrong word. ## Solution **New section, "Using Claude as the ID-JAG issuer."** Covers the Claude-side steps (Organization settings > Connectors > Supabase > Managed authorization > Set up, copy the Issuer URL, leave Tenant ID empty), the Supabase-side step (same ID-JAG Issuer field), and the connection test. Two constraints were verified against our platform code: one issuer per SSO provider so the Claude URL replaces the IdP URL and members need an SSO identity in Supabase. The third, that a Claude-issued ID-JAG attests Claude-org membership rather than an IdP session, comes from Anthropic's partner guide. **Rename to "enterprise-managed authorization."** Page title, headings, body, SSO guide section, nav label (title case, matching sibling entries), and the Studio description. The slug moves to `enterprise-mcp-authorization` with a permanent redirect from the old path in `apps/www/lib/redirects.js`. The Studio "Learn more" link and the two published blog posts that linked the page point at the new slug directly. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: Ana <30495040+ana1337x@users.noreply.github.com> Co-authored-by: Ana <ana1337x@users.noreply.github.com> |
||
|
|
e6e5c56264 |
docs(pgvector): fix duplicate heading and code block formatting (#48440)
## 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? Docs update — small structural and formatting fixes to `apps/docs/content/guides/database/extensions/pgvector.mdx`. ## What is the current behavior? **Duplicate `## Usage` heading.** The guide has `## Usage` at two places — once above "Enable the extension", and again above "Create a table to store vectors". Anchor IDs are generated from heading text, so both render as `#usage`. The table of contents shows two identical "Usage" entries, and clicking the second one scrolls to the first section. **Untagged code fence.** The iterative-search example uses a bare ``` fence, so it gets no syntax highlighting, unlike every other block on the page. Its SQL is also uppercase, while the rest of the guide (and the docs style guide) uses lowercase keywords. **Stray leading space** before `-- Example: enable the "vector" extension.` inside the enable-extension SQL block. **Typo:** the prose says "Transformer.js"; the library is Transformers.js (the code comment two lines below already spells it correctly). ## What is the new behavior? - Second `## Usage` renamed to `## Storing vectors`, which describes the two subsections it introduces ("Create a table to store vectors" and "Storing a vector / embedding"). The TOC now has unique entries and unique anchors. - Iterative-search fence tagged ` ```sql ` and its keywords lowercased. - Stray leading space removed. - "Transformer.js" → "Transformers.js". Content-only; no components, navigation, or generated output touched. ## Additional context Before renaming the heading I checked for anything linking to the old anchor: ``` grep -rn "#usage" apps/docs/content ``` No in-page or cross-file link targets `pgvector#usage` — the hits are unrelated pages and external URLs — so the rename doesn't break any links. Verified locally against the repo's own tooling: - `supa-mdx-lint` with `supa-mdx-lint.config.toml` → no errors or warnings (the new heading is sentence case, per `Rule001HeadingCase`). - Prettier 3.8.1 with `prettier.config.mjs` and `prettier-plugin-sql-cst` → already formatted, including the newly tagged `sql` block. One thing I deliberately left alone: the JS sample still imports `@xenova/transformers`, which has since been superseded by `@huggingface/transformers`. That's a behavioral change rather than a formatting one, so it felt out of scope here — happy to open a separate PR if you'd like it updated. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
8a1950965f |
add Adrian Johnson to humans.txt (#52708)
## Problem Add myself to humans.txt ## Solution Added name in alphabetical order <!-- ## 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) |
||
|
|
07dbe3ce1d |
fix(studio): use raw object count as storage pagination offset (#52706)
## Problem Studio Storage hides `.emptyFolderPlaceholder` objects after listing a folder, but `fetchMoreFolderContents` calculated the next page offset from the number of visible items. When a page includes the placeholder, the API returns 200 objects but Studio keeps 199, so the next request uses offset 199 instead of 200 and the last file of the previous page appears twice. The duplicates compound with every further page. Fixes FE-4843. Closes #52607. Before: <img width="521" height="458" alt="Screenshot 2026-11-03 at 14 51 09" src="https://github.com/user-attachments/assets/1ed20ded-08c6-4c56-92d7-5c97ef82cd00" /> After: <img width="532" height="460" alt="Screenshot 2026-11-03 at 14 53 58" src="https://github.com/user-attachments/assets/64891f27-7fa0-44cb-8076-39b405df0ee4" /> ## Solution Each storage column now records `hiddenItemsCount`, the number of API objects hidden from the visible list (the placeholder). `fetchMoreFolderContents` offsets the next page by `items.length + hiddenItemsCount`. Because the offset is still derived from `items.length`, local edits to a column (creating a folder, uploads, deletes, renames) keep it in step with the server, as they did before. Added tests to `state/storage-explorer.test.ts`: a folder with a placeholder plus 300 files lists each file exactly once and requests offsets 0 and 200, and a folder without a placeholder still pages at 0, 200, 400. Reverting the offset line makes the placeholder test fail. ## Review instructions 1. In a bucket, create a `docs` folder and, using the Storage API, upload a zero-byte `docs/.emptyFolderPlaceholder` plus files `file-000.txt` through `file-299.txt`. 2. Open `docs` in Studio and sort by Name ascending. 3. Scroll to load further pages and check the list requests in the network tab: offsets should be 0 and 200, and no file should appear twice. 4. Run `pnpm --filter studio exec vitest run state/storage-explorer.test.ts`. ## 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) |
||
|
|
df742bdb3b |
refactor(studio): rename ResponseError to StudioError (#52707)
## What
Moves the `ResponseError` class (`types/base.ts`) and the classified
error classes (`types/api-errors.ts`) into
`lib/errors/studio-errors.ts`, and renames `ResponseError` to
`StudioError`.
## Why
Studio's error classification is being expanded to cover errors that
don't come from API responses (thrown network failures, aborted
requests, unexpected client errors). The API-specific name and location
no longer fit. Landing the rename on its own keeps the follow-up PR,
which introduces the classified error model, small and reviewable.
## Notes for reviewers
- Mechanical change, no behavior change. Most of the diff is a one-line
import change per file plus import re-sorting by Prettier.
- Files that only use the type now use `import type { StudioError }`.
- `ResponseError` is no longer re-exported from `@/types`; there are no
compatibility shims at the old paths.
- Unrelated identifiers like `QueryResponseError` and
`parseResponseErrors` are unchanged.
|
||
|
|
98b845a195 |
Add Yann Braga to humans.txt (#52703)
## Problem Adding myself to humans.txt, as a new hire 🎉 ## 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. ## 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) |
||
|
|
ca6f972adb |
chore(codeowners): route legal reviews to frontend FE-4883 (#52688)
## Problem Legal-only website changes request marketing review because they inherit the `/apps/www/` code-owner rule. ## Fix Assign legal content, page entry points, document assets, and dedicated legal components and helpers to `@supabase/frontend`. Keep marketing ownership for the rest of the website. Closes https://linear.app/supabase/issue/FE-4883/route-legal-document-code-owner-reviews-to-frontend ## How to test - Confirm the legal overrides follow the broad website rule and name only `@supabase/frontend`. - Confirm ordinary website and blog paths still resolve to marketing. - `git diff --check` passes. Prettier with `--ignore-unknown` passes; CODEOWNERS has no supported Prettier parser. - Runtime tests, typechecking, and browser QA do not apply to this ownership-only configuration change. |
||
|
|
53e2c4f1d1 |
[FE-4809] fix(studio): group HA topology by shardRef (#52545)
Update HA topology grouping for the Multigres JSON field rename from `shardKey` to `shardRef`, so separate shards retain their own primaries and replicas. **Changed:** - Normalize pooler responses to `shardRef`, falling back to legacy `shardKey` and preferring `shardRef` when both exist. - Use `shardRef` in the topology selector and shard grouping. **Added:** - Regression coverage from response parsing through diagram node/edge generation for new, legacy, mixed, and conflicting key formats, plus omitted shard identity fields. Addresses https://linear.app/supabase/issue/FE-4809/update-studio-ha-topology-grouping-to-use-shardref ## To test - Open Settings → Infrastructure on a multi-shard HA project returning `shardRef`. Confirm one group per shard, each primary shown as Primary Database, and replicas connected only to their own shard's primary. - Check the same topology on Database → Pipelines. - Confirm legacy `shardKey` responses still render correctly and single-shard projects remain unchanged. ## Validation - Passed: 33 targeted utility tests, ESLint on all changed files, Studio TypeScript check, and diff whitespace checks. - Local browser: login and non-HA infrastructure passed. HA grouping remains unverified because local poolers/gateways endpoints returned 404; browser response mocking was blocked by cross-origin/CORS limitations. - Upstream multigres/multigres#1608 merged October 29; deployment of the renamed field remains unconfirmed. Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> |
||
|
|
4233c11b66 | docs(self-hosted): explain Functions memory budgets and idle cleanup (#51958) | ||
|
|
042a7fad25 | docs(self-hosted): explain main worker error references (#51811) | ||
|
|
b6f68a8459 | feat(self-hosted): reclaim idle function workers under memory pressure (#51957) | ||
|
|
68cebcd676 | fix(self-hosted): handle unhandled rejections and request handler errors (#51353) | ||
|
|
7614e8204a |
content(kb) - faq about local development (#52558)
I _think_ this is the correct framing here for an initial FAQ, but would appreciate confirmation. Goal is to target a broader query than just SQLite (original request from @4L3k51 was `Can I use local Supabase instead of SQLite for development?`), but include a SQLite mention in there to emphasize the point. Might be too light though. |
||
|
|
9b7cbd1803 |
feat(studio): migrate branches to FGA grants with production/development variants (#52331)
## Problem Branch actions in Studio were guarded by hand-written permission checks (`useAsyncCheckPermissionsV2(FGA_PERMISSIONS.PROJECT.BRANCHING_*)`, plus one legacy `useAsyncCheckPermissions` in `Branch.Commands.tsx`) that weren't tied to the endpoints they protect. Every branches request in `data/branches` was marked `unguarded.migrating`. This is the pilot migration for endpoint-bound FGA grants. Resolves [FE-4693](https://linear.app/supabase/issue/FE-4693/pilot-migrate-branches-to-grants-8-endpoints-createbranchmodal). ## Solution ### Data layer * `data/branches` has no `unguarded.migrating` left (was 10). * The list, detail, and diff queries are now `branchesQueryOptions`, `branchQueryOptions`, and `branchDiffQueryOptions`. They take a grant, use `skipToken` without one, and keep the grant out of the query key. * Mutations take the grant in their variables. The merge mutation also takes `diffGrant`, because it reads the diff before merging. ### Production and development variants The backend doesn't treat development and production branching permissions as interchangeable: * Actions on a single branch (`/v1/branches/{branch_id_or_ref}` and its diff, merge, push, reset, and restore) need the production permission for the default branch and the development permission for preview branches. * Creating a default branch or a branch with data needs production create. To model this, `lib/fga-refinements.ts` gets its first entries: * The 8 single-branch endpoints have `production` and `development` variants. A new `variantRequired` flag makes the fetch wrapper reject a grant without a variant, at compile time and in `assertGrant`. * `POST /v1/projects/{ref}/branches` has a `production` variant. `assertGrant` requires it when the body sets `is_default` or `with_data`. * `useBranchGrant(endpoint, { projectRef, isDefault })` picks the variant from the branch's `is_default`. It stays `loading` until the branch is known. * `GrantForVariants<M, P>` types a grant for any of an endpoint's variants. ### UI * The old checks are replaced with grants in `CreateBranchButton`, `CreateBranchModal`, `Overview`, `DeleteBranchPanel`, `DeleteBranchModal`, the branches and merge-requests pages, and `Branch.Commands.tsx`. * Grants are evaluated against the parent project, where branch permissions live. The scope is passed explicitly, because `/v1/branches/*` paths don't include the project. * Pages that are mainly about branches show `NoPermission` when the grant is denied and `AlertError` when the permission check fails. Action buttons are disabled with a tooltip. Places that use the branch list incidentally (nav, project home, usage) treat a denied grant as "no branches" instead of loading forever. * "Include data" in `CreateBranchModal` is disabled without production create. It previously failed after submitting. * `OutOfDateNotice`'s "Update branch" is disabled without the push grant. It previously did nothing. * The GitHub integration form blocks saving without the production-branch grant. Previously the connection was saved while the branch request failed, and a repo change deleted the old connection first. ### Where the old checks differed from the backend * **Too strict:** the branches and merge-requests pages required development read, and the create button required development create. The backend accepts development or production for both. * **Wrong for the default branch:** single-branch actions always checked development permissions, or production write for the main branch menu, regardless of which branch was targeted. * **Missing:** reset and "Switch to persistent" in `Overview` had no check. * **Legacy check:** `Branch.Commands.tsx` used the legacy `CREATE preview_branches` check. `BranchingPITRNotice` is unchanged: its check guards a subscription update, not a branches request. ### Other changes * The two new query options use an `eslint-disable` for `@tanstack/query/exhaustive-deps`, because grants stay out of query keys. A separate PR upgrades the plugin and allowlists `grant`, after which these can be removed. * `upsertMigration` in the merge mutation still uses `unguarded.migrating`. It belongs to the database-migrations domain. ## Testing * New component tests for `CreateBranchButton`, `DeleteBranchPanel`, the branches page, and `GitHubIntegrationConnectionForm` cover granted, denied, and error states. * New `useBranchGrant` tests: default vs. preview branch, and loading until the branch is known. * `guarded-fetch.test.ts` covers required variants (types and runtime) and the production variant for default and data branches. * Shared fixtures are in `tests/lib/branch-test-utils.ts`. * Studio typecheck passes, affected suites pass, the ESLint ratchet is stable, and knip is clean. |
||
|
|
29638836ab |
content(kb) - auth providers with supabase listicle (#52563)
Carry through of #51759 (with feedback applied), apologies on the delay + re-PR here. --------- Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> |
||
|
|
83ccea9d87 |
feat(dash) - allow indexing of sign-up and sign-in pages (#52650)
## Problem Large search volume hitting the following terms that don't have a good user click path: - `supabase login` (~200K clicks per 3 months), `Supabase dashboard` (~30K clicks per 3 months). There's no user click path here :( <img width="1905" height="3560" alt="image" src="https://github.com/user-attachments/assets/7aafc9e5-dd20-459b-b2bb-4044ec4158f5" /> - `sign up for Supabase` (~2,800 clicks last 3 months). Also no user click path here :( <img width="1905" height="3966" alt="image" src="https://github.com/user-attachments/assets/d7ed4f45-acaf-4b48-a63a-c62abf2221fb" /> ## Solution 3 things: - Allows indexing of `sign up` and `sign in` pages - Adds some metadata to help with navigation. - Adds 2 dash pages to the www sitemap ## Preview links - [www sitemap](https://zone-www-dot-28buthwge-supabase.vercel.app/sitemap_www.xml) <img width="869" height="182" alt="image" src="https://github.com/user-attachments/assets/3ba31a99-2cfa-4db4-80f4-cd5f41603f9c" /> - [sign up page](https://studio-staging-m4ylh7sp9-supabase.vercel.app/dashboard/sign-up) <img width="1531" height="828" alt="image" src="https://github.com/user-attachments/assets/73e6dad3-9653-4db7-a035-c8b9827cf3f9" /> - [sign in page](https://studio-staging-m4ylh7sp9-supabase.vercel.app/dashboard/sign-in) <img width="1531" height="828" alt="image" src="https://github.com/user-attachments/assets/c4d56a22-c0ab-49b5-a6ed-8b835aa4d52e" /> |