Commit Graph
18 Commits
Author SHA1 Message Date
Andrey A. 33b35d8bc1 fix(self-hosted): avoid Envoy DNS outage for late-starting services (#54197) 2026-11-27 13:57:59 +01:00
Mandar Joshi 3334709840 fix(self-hosted): stop cutting off Envoy responses after 30s (#51620) 2026-11-20 14:25:02 +01:00
Andrey A. 1b5d89f78a fix(self-hosted): turn off CORS on the Studio routes at the API gateway (#53546) 2026-11-18 10:51:51 +01:00
Andrey A. ec0c3f3762 fix(self-hosted): open the OAuth 2.1 server endpoints at the API gateway (#53542) 2026-11-18 10:51:03 +01:00
Andrey A. cf37022b6b fix(self-hosted): sandbox Storage, REST and Functions responses at the API gateway (#53466) 2026-11-17 12:07:23 +01:00
Andrey A. 5583c2bd6f fix(self-hosted): drop removed hosts from Envoy clusters right away (#52968) 2026-11-04 18:55:22 +00:00
Andrey A. 9dfece25cc fix(self-hosted): leave CORS on /functions/v1 to the function (#52709) 2026-11-04 12:35:08 +01:00
Inder Singh 31a74e8663 fix(self-hosted): align OAuth and OIDC discovery api-gw routes with the platform (#51493) 2026-10-14 15:47:45 +02:00
Luiz Felipe Machado 3fc8af387e feat(self-hosted): add function runtime errors (#50589) 2026-09-30 12:57:27 +02:00
Andrey A. c8b665caf2 feat(self-hosted): add api gateway logic for functions (#46810) 2026-09-30 11:14:47 +02:00
Etienne Stalmans 04ddc6bef8 chore: update cors for pg routes (#49136)
## 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 -->
2026-08-17 10:28:09 -07:00
Luiz Felipe Machado 9777f051d6 feat(self-hosted): restrict rest root anon (#45462) 2026-07-07 13:16:23 +02:00
Andrey A. e7abda8dce fix(self-hosted): change default api external url to contain /auth/v1 (#47640) 2026-07-07 12:28:47 +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
Luiz Felipe Machado 94ac6f3fa3 fix(self-hosted): reject access via internal jwt api keys when translation is enabled (#46023) 2026-05-26 17:03:13 +02:00
Luiz Felipe Machado 5fa012cfa9 docs(self-hosted): clarify envoy api gateway setup (#45238) 2026-04-29 09:33:53 +00:00
Luiz Felipe Machado 53060160aa fix(self-hosted): api key translation should depend on the sb_ keys present (#45195) 2026-04-24 12:17:50 +02:00
Luiz Felipe Machado e080513666 feat: add Envoy API gateway for self-hosted Docker Compose (#43838) 2026-04-22 11:20:32 +02:00