From 8a1adbbd1479f45ffe943039966c798f0239b4b1 Mon Sep 17 00:00:00 2001 From: "Andrey A." <56412611+aantti@users.noreply.github.com> Date: Fri, 4 Sep 2026 18:34:17 +0200 Subject: [PATCH 1/2] docs(self-hosted): use opaque api keys in self-hosted how-to guides (#50000) --- .../guides/self-hosting/self-hosted-envoy.mdx | 2 +- .../guides/self-hosting/self-hosted-oauth.mdx | 6 +-- .../self-hosting/self-hosted-saml-sso.mdx | 39 +++++++------------ 3 files changed, 19 insertions(+), 28 deletions(-) diff --git a/apps/docs/content/guides/self-hosting/self-hosted-envoy.mdx b/apps/docs/content/guides/self-hosting/self-hosted-envoy.mdx index f4369c1fd3d47..627a95010d3b3 100644 --- a/apps/docs/content/guides/self-hosting/self-hosted-envoy.mdx +++ b/apps/docs/content/guides/self-hosting/self-hosted-envoy.mdx @@ -19,7 +19,7 @@ Envoy is registered as the `api-gw` service and also exposes `envoy` and `kong` Confirm the gateway is routing requests and enforcing API keys: ```sh -curl -i -H "apikey: your-service-role-key" http:///rest/v1/ +curl -i -H "apikey: your-supabase-secret-key" http:///rest/v1/ ``` A `200 OK` response from PostgREST confirms the gateway is up. A `401 Unauthorized` without the `apikey` header confirms enforcement is active. diff --git a/apps/docs/content/guides/self-hosting/self-hosted-oauth.mdx b/apps/docs/content/guides/self-hosting/self-hosted-oauth.mdx index 66e4872deb9c6..210e04635cf9e 100644 --- a/apps/docs/content/guides/self-hosting/self-hosted-oauth.mdx +++ b/apps/docs/content/guides/self-hosting/self-hosted-oauth.mdx @@ -99,7 +99,7 @@ sh run.sh recreate auth Check that the provider is enabled: ```sh -curl -H 'apikey: your-anon-key' https:///auth/v1/settings +curl -H 'apikey: your-supabase-publishable-key' https:///auth/v1/settings ``` The response should include your provider under `external`: @@ -350,9 +350,9 @@ You can test OAuth with the following minimal HTML page: