From 773b388f251fd17f7a25d88e9a9d6edb022a2e80 Mon Sep 17 00:00:00 2001 From: Etienne Stalmans Date: Fri, 14 Aug 2026 11:37:38 +0200 Subject: [PATCH] chore(docs): correct api for temporary access (#48741) ## 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? Docs update ## Summary by CodeRabbit * **Documentation** * Updated temporary access guidance to require SSL-enforced incoming connections. * Updated Management API examples to use the `/jit-access` endpoint for checking, enabling, and disabling temporary access. --- .../content/guides/platform/temporary-access.mdx | 12 +++++++++--- supa-mdx-lint/Rule003Spelling.toml | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/docs/content/guides/platform/temporary-access.mdx b/apps/docs/content/guides/platform/temporary-access.mdx index 2862e3bdcba..0c9eec50002 100644 --- a/apps/docs/content/guides/platform/temporary-access.mdx +++ b/apps/docs/content/guides/platform/temporary-access.mdx @@ -9,6 +9,12 @@ Enabling temporary access only applies to connections to Postgres and Supavisor +[Enforce SSL](/docs/guides/platform/ssl-enforcement) on incoming connections must be enabled before temporary access can be used. + + + + + Projects need to be at least on Postgres 17.6.1.081 (or higher) to enable temporary access. You can find the Postgres version of your project on the [General Settings](/dashboard/project/_/settings/general) page. If your project is on an older version, you will need to [upgrade](/docs/guides/platform/upgrading) to use this feature. @@ -27,11 +33,11 @@ export SUPABASE_MANAGEMENT_API_TOKEN="your-access-token" export PROJECT_REF="your-project-ref" # Get current temporary access status -curl -X GET "https://api.supabase.com/v1/projects/$PROJECT_REF/database/jit-access" \ +curl -X GET "https://api.supabase.com/v1/projects/$PROJECT_REF/jit-access" \ -H "Authorization: Bearer $SUPABASE_MANAGEMENT_API_TOKEN" # Enable temporary access -curl -X PUT "https://api.supabase.com/v1/projects/$PROJECT_REF/database/jit-access" \ +curl -X PUT "https://api.supabase.com/v1/projects/$PROJECT_REF/jit-access" \ -H "Authorization: Bearer $SUPABASE_MANAGEMENT_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ @@ -39,7 +45,7 @@ curl -X PUT "https://api.supabase.com/v1/projects/$PROJECT_REF/database/jit-acce }' # Disable temporary access -curl -X PUT "https://api.supabase.com/v1/projects/$PROJECT_REF/database/jit-access" \ +curl -X PUT "https://api.supabase.com/v1/projects/$PROJECT_REF/jit-access" \ -H "Authorization: Bearer $SUPABASE_MANAGEMENT_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ diff --git a/supa-mdx-lint/Rule003Spelling.toml b/supa-mdx-lint/Rule003Spelling.toml index 6bd06da8c4b..b1c3750cf61 100644 --- a/supa-mdx-lint/Rule003Spelling.toml +++ b/supa-mdx-lint/Rule003Spelling.toml @@ -217,7 +217,7 @@ allow_list = [ "Datadog", "Deadpool", "Dependabot", - "DepthFirst" + "DepthFirst", "DDoS", "Deno", "Dependabot",