## Problem
[supabase/supabase#52102](https://github.com/supabase/supabase/pull/52102)
renames *social login* to *social sign-in* in the docs, so every sign-in
method follows the same pattern: social sign-in, phone sign-in,
anonymous sign-in, and passwordless email sign-in. The marketing site,
the Dashboard, the UI library docs, the knowledge base, and the Docker
configuration still say "social login". Keeping one name per feature
across every surface matters: readers and AI agents moving between the
Dashboard, the docs, and the marketing site see the same term, and
search finds one name.
Part of [DOCS-1459](https://linear.app/supabase/issue/DOCS-1459).
## Solution
"Social login" is "social sign-in" in visible text on:
- **Marketing site:** the Auth product page, including an icon grid's
`aria-label`, the home page's frameworks section, the social sign-in
feature page's title, subtitle, and description, the Markdown versions
of the Auth and home pages, and the Supabase vs Firebase comparison.
- **Dashboard:** the command menu entry for Auth providers, "Auth:
Providers (Social Sign-in, SSO)".
- **UI library docs:** the link to the docs on six social auth block
pages, and one sentence on the React Router page.
- **Knowledge base:** the link text in the Auth0 migration guide.
- **Docker configuration:** the comments in `docker-compose.yml` and
`.env.example`.
Intentionally unchanged:
- **URLs, code names, and file names:** `/features/social-login`, links
to `/docs/guides/auth/social-login/...`, `handleSocialLogin` in the UI
library blocks, and image files such as `social-login.png`. A separate
PR moves the URLs to `social-sign-in` with redirects.
- **Dated and quoted content:** blog posts, an event page, a customer
story, and a quoted user tweet.
## Review notes
- **Dashboard search:** the command menu's `value` is also its search
text, so typing "social login" no longer matches the Auth providers
entry. "Social", "providers", and "SSO" still match.
- **UI library block names:** the blocks are named `social-auth` (for
example, `social-auth-nextjs`), and the name is part of their install
commands. Renaming a block breaks those commands, so that's a decision
for the UI library's owners.
## Preview links
- [Auth product
page](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/auth)
- [Home
page](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/)
- [Social sign-in feature
page](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/features/social-login)
- [Supabase vs
Firebase](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/alternatives/supabase-vs-firebase)
- [UI library: Social auth
(Next.js)](https://ui-library-git-alexisa-docs-1459-surfaces-supabase.vercel.app/ui/docs/nextjs/social-auth)
- [Knowledge base: Migrate from
Auth0](https://kb-git-alexisa-docs-1459-surfaces-supabase.vercel.app/kb/guides/migrate-from-auth0)
## 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?
Feature (self-hosted Edge Functions)
## What is the current behavior?
The self-hosted Edge Functions router
(`docker/volumes/functions/main/index.ts`) doesn't tell a function which
slug a request resolved to. As a result, `@supabase/server`'s
`withOAuthProtectedResource` can't derive its canonical resource URL and
falls back to reconstructing it from the request path against the
internal `api-gw` origin, so the advertised OAuth Protected Resource is
/wrong for self-hosted deployments.
## What is the new behavior?
`main/index.ts` now injects `SUPABASE_FUNCTION_SLUG: service_name` per
request (after the `Deno.env.toObject()` snapshot, so nothing in the
container env can shadow it).
Combined with the operator's `SUPABASE_PUBLIC_URL`, the advertised
resource is the correct external
`{SUPABASE_PUBLIC_URL}/functions/v1/{slug}`, not the internal
`http://api-gw:8000`.
Verified on the docker stack: the slug is injected per-function, the
resource origin resolves to `SUPABASE_PUBLIC_URL`, and the `401`
`www-authenticate` carries the right `resource_metadata`.
## Additional context
Fixes AI-1128
Companion to `@supabase/server` [PR
#117](https://github.com/supabase/server/pull/117) and the [CLI slug
injection](https://github.com/supabase/cli/pull/6345)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Edge workers now receive the correct function slug in their runtime
environment, improving per-function request handling.
<!-- 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
## What kind of change does this PR introduce?
Bug fix - config hardening
## What is the current behavior?
CORS is applied at the global level in a permissive mode
## What is the new behavior?
Self-hosted envoy config should apply CORS to the `/pg` routes. These
should only be called from the studio dashboard (when called via a
browser).
uses `SUPABASE_PUBLIC_URL`, which should mean this isn't a breaking
change.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Security & Access**
* Added stricter CORS controls for the `/pg/` route.
* Requests are limited to the configured public URL and localhost
origins.
* Standard HTTP methods and headers are supported, with preflight
responses cached for one hour.
* **Documentation**
* Updated self-hosting guidance to describe the `/pg/` route’s CORS
policy.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Updates the self-host Edge Functions template to use `@supabase/server`,
matching the CLI's `supabase functions new` templates (part of SDK-1150,
follows up on #45635 which exposed `SUPABASE_JWKS` to the functions
container). The `hello` example function now wraps its handler in
`withSupabase({ auth: 'none' })` and resolves the package through a
per-function `deno.json` import map, which the runtime auto-discovers,
so no dispatcher changes are needed. The self-hosted functions guide is
updated to match: the create-a-function snippet, a `ctx.supabaseAdmin`
example replacing the manual esm.sh `createClient` wiring, and a note
that `auth: 'user'` requires `SUPABASE_JWKS`. Verified on
`supabase/edge-runtime:v1.74.0` with the compose environment variables:
`curl /functions/v1/hello` returns the same response body as before, so
existing docs and troubleshooting pages stay accurate.
The `docker/.gitignore` change: `volumes/functions/**` ignores
self-hosters' own functions, but it also hid the new `deno.json`, which
must ship with the repo for the `hello` import to resolve. The allowlist
entries follow the existing `main/index.ts` pattern.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Edge Functions now support authenticated invocation with publishable
or secret API keys.
* Function handlers can access authenticated and administrative Supabase
clients through the request context.
* Added automatic environment configuration and JWT verification
support.
* **Documentation**
* Updated the self-hosting guide with the new function setup and
authentication workflow.
* Improved local function examples for supported access patterns and
privileged operations.
* **Tests**
* Updated self-hosted smoke tests to validate publishable-key function
access.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Kalleby Santos <kalleby_santos@hotmail.com>
Co-authored-by: Kalleby Santos <105971119+kallebysantos@users.noreply.github.com>