Commit Graph

19 Commits

Author SHA1 Message Date
Inder Singh
768cf11b9c feat(self-hosted): add pgbouncer override (#49052) 2026-08-20 11:21:54 +02:00
Katerina Skroumpelou
9ef9f1b8c1 feat(self-host): use @supabase/server in functions template and docs (#48996)
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>
2026-08-14 12:00:11 +03:00
Andrey A.
5a8eecf509 feat(self-hosted): envoy is the default api gateway (#48153) 2026-08-11 11:55:26 +02:00
Andrey A.
a8a0a66853 fix(self-hosted): avoid overwriting update.sh (#48690) 2026-08-04 21:56:44 +02:00
Andrey A.
9e73d556d0 feat(self-hosted): add update script (#47851) 2026-08-03 17:05:11 +02:00
Andrey A.
18bad2e61c chore(self-hosted): remove em-dashes (#48498) 2026-07-30 17:20:22 +00:00
Andrey A.
3e02ce74b8 fix(self-hosted): pin rustfs to beta.11 and fix s3 tests (#48500) 2026-07-30 19:09:02 +02:00
Luiz Felipe Machado
9777f051d6 feat(self-hosted): restrict rest root anon (#45462) 2026-07-07 13:16:23 +02:00
Andrey A.
46de6d4485 chore(self-hosted): add tests for supabase vault when upgrading to pg17 (#47237) 2026-07-01 15:29:40 +02:00
Andrey A.
6cf174b925 feat(self-hosted): change the default db version to postgres 17 (#46981) 2026-06-17 15:28:20 +02:00
Andrey A.
098157eb90 fix(self-hosted): block access to tenants and openapi realtime api (#46856) 2026-06-12 11:48:58 +02:00
Andrey A.
30d32dd22c chore(self-hosted): add test for tus (#46731) 2026-06-08 14:49:16 +02:00
Andrey A.
f5c49e89c5 chore(self-hosted): expand smoke tests (#46722) 2026-06-08 12:23:36 +02:00
Luiz Felipe Machado
aa691c1ee2 fix(self-hsoted): handle optional services and overrides in test-container-logs (#46099) 2026-05-26 16:41:07 +02:00
Andrey A.
72525c66de chore(self-hosted): standardize on override vs overlay for compose in docs and configs (#45627) 2026-05-06 13:40:26 +02:00
Andrey A.
e3626b2d0c chore(self-hosted): update images 2026-04-08 (#44632) 2026-04-08 16:34:22 +02:00
Andrey A.
d7a9ded4b0 add pg17 upgrade configuration for self-hosted supabase (#44147) 2026-04-07 16:44:03 +02:00
Andrey A.
34321a0811 fix(self-hosted): improve s3 backend tests 2026-03-16 14:15:04 +01:00
Andrey A.
949f98b73a add various tests for self-hosted 2026-03-16 12:00:25 +01:00