## Problem
relevant cross-links missing to KB articles.
## Solution
Claude pass with an attempt to inline these where possible. Some were a
new sentence, but spot check felt like they were mostly appropriate.
## Preview links
N/A b/c too many atomic changes to help that much.
---------
Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Found during my dogfooding project :)
## Problem
Three guides give conflicting guidance on how Postgres should
authenticate when it calls an Edge Function:
- **Securing Edge Functions:** calls from `pg_net` and cron jobs send
the secret key on `apikey`, with `auth: 'secret'` and `verify_jwt =
false`. The Dashboard agrees: the webhook and cron job forms only offer
**Add secret key**.
- **Scheduling Edge Functions:** the only example that stores a key in
Vault sends the publishable key. A request with only the publishable key
passes the `verify_jwt` check, so anyone who has that public key can
call the function.
- **Database Webhooks:** doesn't cover calling an Edge Function or
authenticating to it. Its SQL example writes headers inline, so a
webhook created in a migration puts the secret key in a committed file.
Resolves [DOCS-1458](https://linear.app/supabase/issue/DOCS-1458),
[FDBKIN-19992](https://linear.app/supabase/issue/FDBKIN-19992)
## Solution
All three pages now recommend the secret key for calls from Postgres.
- **Scheduling Edge Functions:** stores and sends the secret key,
explains why the publishable key isn't safe here, and links to the
function-side setup.
- **Database Webhooks:** a new Call an Edge Function section covers the
Supabase Dashboard flow and a migration. The migration reads the key
from Vault in a `security definer` trigger function. The section
explains that the definer is required, because the roles that insert
rows can't read Vault.
- **Securing Edge Functions:** the service-to-service section is now a
two-step setup. It shows how to disable the `verify_jwt` check in
`supabase/config.toml`, with a link to the Authorization headers guide,
and how to use `auth: 'secret'` in the function. It then links to
Database Webhooks and Scheduling Edge Functions.
- **`pg_net` queue:** Database Webhooks and Scheduling Edge Functions
show a caution that any role that can log in to the database can read
the secret key while the request waits, because `pg_net` writes the
decrypted key to `net.http_request_queue` until it sends the request.
Both pages include the caution from a new partial,
`_partials/pg_net_queued_key.mdx`, which links to the troubleshooting
article.
## Verification (`/test-the-docs`)
| Snippet / step | Class | Sandbox | Result | Notes |
| --- | --- | --- | --- | --- |
| Function with `auth: 'secret'` and `verify_jwt = false`, called with
the secret key on `apikey` | runnable-with-setup | Compose runner +
`supabase start` | pass | Returns `200` |
| Same function, called with the publishable key, then no key |
runnable-with-setup | Compose runner + `supabase start` | pass |
Rejected with `INVALID_API_KEY`, then `MISSING_CREDENTIALS` |
| Scheduling Edge Functions: Vault secrets, then `cron.schedule` |
runnable-with-setup | Compose runner + `supabase start` | pass | The
cron run succeeded, and the function returned `200` |
| Database Webhooks: Vault-based trigger function and trigger |
runnable-with-setup | Compose runner + `supabase start` | pass | Inserts
as `postgres` and as `authenticated` both reached the function with the
documented payload |
| Same trigger function as `security invoker`, insert as `authenticated`
| runnable-with-setup | Compose runner + `supabase start` | pass | Fails
with `permission denied for schema vault`, which confirms the page's
explanation |
| Database Webhooks: Dashboard steps | deferred | — | deferred | Needs a
hosted project. Labels confirmed in the Studio source. |
**Tier A path:** Vault secrets → `pg_cron` job → `pg_net` request → Edge
Function with `auth: 'secret'` returns `200`.
**Environment:** OrbStack; compose sandbox (`sandbox/run.sh`); fences
in-container only. Two deviations from the stock sandbox, neither
committed:
- The sandbox pins Supabase CLI v2.39.2, which predates `sb_secret_` and
`sb_publishable_` keys. The run used v2.121.0.
- The `dind` service doesn't mount `/work`, so local functions fail with
`failed to determine entrypoint`. The function file was copied into the
DinD filesystem.
`project_url` pointed at the local API gateway, because the database
container can't reach the runner's `127.0.0.1`.
## Preview links
- [Database
Webhooks](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/database/webhooks)
- [Scheduling Edge
Functions](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/functions/schedule-functions)
- [Securing Edge
Functions](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/functions/auth)
## Post-merge
> [!IMPORTANT]
> After this PR merges, post the following comment on
[FDBKIN-19992](https://linear.app/supabase/issue/FDBKIN-19992) and close
it:
>
> The "Missing required headers" error happens when the webhook doesn't
send an auth header to the Edge Function. Database Webhooks send only
the headers you configure. [Database Webhooks → Call an Edge
Function](https://supabase.com/docs/guides/database/webhooks#call-an-edge-function)
shows how to add the secret key, either in the Dashboard with **Add
secret key** or in a migration that reads the key from Vault. [Securing
Edge
Functions](https://supabase.com/docs/guides/functions/auth#service-to-service-calls)
covers the function side: disable `verify_jwt` and use `auth: 'secret'`.
## What kind of change does this PR introduce?
a11y bug fix on youtube embed
## What is the current behavior?
YouTube iframes across guide pages have no `title` attribute, so screen
readers announce them as an unnamed frame
## What is the new behavior?
- extracts a `YouTube.tsx` ui component
- adds `<YouTube id title />` + `title` as a required prop
## Test
1. visit `/docs/guides/ai/examples/openai`
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Documentation**
- Standardized embedded YouTube videos across guides with a consistent
video player.
- Added descriptive titles to improve accessibility and clarity.
- Preserved existing video content and playback behavior.
- Updated video embeds across AI, authentication, database, functions,
realtime, self-hosting, storage, and migration documentation.
- **New Features**
- Added privacy-enhanced YouTube playback for embedded documentation
videos.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.
YES
## Problem
The Docs E2E link checker found broken links throughout docs, starting
with `phone-login.mdx` pointing to `/docs/guides/cli/config` (404).
Old links like `/docs/guides/cli/config` still work on the live site
because `supabase.com` has redirects set up for them, but these links
break on the docs preview site, which is what the E2E check tests
against. These issues look clean on the live site, and I didn't catch
them in my first pass because I was testing production instead of the
preview.
The E2E check only tests the ~20 pages a given PR happens to touch, so
fixing the pages it flagged kept exposing more of the same problem one
page at a time as each fix pulled in a new file. To stop chasing this
incrementally, I cross-referenced every `/docs/guides/*` and
`/docs/reference/*` redirect source in `apps/www/lib/redirects.js`
against actual usage across all of `apps/docs`, and verified each
candidate against the live preview.
## Solution
Rather than updating the Docs E2E link checker, this PR resolves the
links. **Why:** we own these docs, so keeping the links clean without
redirects is keeping the house maintained. See [Broken Window
Theory](https://blog.codinghorror.com/the-broken-window-theory/).
Updated every link still using an old path to point straight at the
current page instead of relying on a redirect. This covers old links
like:
- `/docs/guides/cli/config` →
`/docs/guides/local-development/cli/config`
- `/docs/guides/cli/getting-started` →
`/docs/guides/local-development/cli/getting-started`
- `/docs/guides/cli/local-development` →
`/docs/guides/local-development/database-migrations`
- `/docs/guides/cli/managing-environments` →
`/docs/guides/deployment/managing-environments`
- `/docs/guides/cli/seeding-your-database` →
`/docs/guides/local-development/seeding-your-database`
- bare `/docs/guides/cli` → `/docs/guides/local-development`
- `/docs/guides/platform/compute-add-ons` →
`/docs/guides/platform/compute-and-disk`
- `/docs/guides/platform/shared-responsibility-model` →
`/docs/guides/deployment/shared-responsibility-model`
- `/docs/guides/database` → `/docs/guides/database/overview`
- `/docs/reference/javascript`, `/docs/reference/dart`,
`/docs/reference/kotlin`, `/docs/reference/python`,
`/docs/reference/csharp` → their `/introduction` pages (the redirect's
own destination, `/start`, turned out to be dead even on production — a
separate bug in `redirects.js` I didn't touch here)
- and about 35 more of the same pattern, listed in the commit messages
Also fixed a handful of dead heading anchors found along the way (links
that resolve to the right page but point at a `#section` that got
renamed or moved), including the original `#bigquery` anchor and a few
in `connecting-to-postgres.mdx` where content moved to its own dedicated
page.
Left alone on purpose:
- `content/guides/cli.mdx` — this page has no route in the docs app at
all (no `app/guides/cli/` directory), so it 404s even in production
before the `www` redirect ever fires. Fixing its internal link wouldn't
change that; it needs an actual routing/content decision, not a link
fix.
- A few candidates that already resolve fine as-is (`pg_partman`, bare
`/docs/reference/api`, bare `/docs/reference/cli`) — confirmed via curl,
left untouched.
## Manual testing
1. Confirmed every new link target actually exists by checking the
destination file/page and matching heading anchors.
2. Cross-referenced every `/docs/guides/*` and `/docs/reference/*`
redirect source in `apps/www/lib/redirects.js` against real usage in
`apps/docs`, and curl-verified each old path (404) and new path (200)
against the live PR preview before fixing it.
3. Ran the Docs E2E link checker locally against changed pages.
4. Spot-checked the original broken link from CI
(`/docs/guides/cli/config`) to confirm it now points to a working page.
Closes DOCS-1057
Contributes to DOCS-1052
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.
YES
## Problem
We have hundreds of MDX lint warnings in our docs going against style
best practices.
## Solution
Remove and replace in context the following:
- PostgreSQL. There was only one. There was concern about exceptions,
but I found none.
- Just
- Quickly
- Actually
### What changed
Edits follow the [Google developer documentation style
guide](https://developers.google.com/style): concise, direct, active
voice. The flagged words were removed when the sentence still read well,
or replaced when meaning needed to be preserved.
### Common patterns
| Flagged word | Approach | Example |
|---|---|---|
| **just** (filler) | Removed | "you just installed" → "you installed" |
| **just** (limiting) | **only** | "just one row" → "only one row" |
| **just like** | **like** / **the same as** | "function just like
regular users" → "function like regular users" |
| **not just** | **not only** | "not just errors" → "not only errors" |
| **quickly** (performance) | **efficiently** or removed | "find rows
quickly" → "find rows efficiently" |
| **quickly** (time) | **soon** / **rapidly** / removed | "expires too
quickly" → "expires too soon" |
| **actually** (filler) | Removed | "actually execute" → "execute"; "is
actually the most common" → "is the most common" |
## Tophatting
1. See the diff.
2. See that content continues to make sense in context.
3. Locally, `cd apps/docs` and run `pnpm run lint:mdx`.
4. Search for "just," "actually," "quickly", and "PostgreSQL" and see
there are 0 warnings.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Updated wording across quickstarts, guides, and troubleshooting
articles for grammar, clarity, and consistent step-by-step phrasing.
* Clarified key concepts including Row Level Security policy evaluation
across Supabase products, deferred foreign key constraint behavior, and
when `EXPLAIN ANALYZE` executes queries (and related side effects).
* Refined several troubleshooting instructions and added guidance to cap
log payload size to reduce billed Logs Ingest volume.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
* fix: rewrite relative URLs when syncing to GitHub discussion
Relative URLs back to supabse.com won't work in GitHub discussions, so
rewrite them back to absolute URLs starting with https://supabase.com
* fix: replace all supabase urls with relative urls
* chore: add linting for relative urls
* chore: bump linter version
* Prettier
---------
Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
Webhooks are not firing locally unless we use `host.docker.internal` instead of `localhost`
Multiple people were encountering this issue, and it was discussed here:
https://github.com/supabase/supabase/issues/13005
Thanks!