mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
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 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
1 parent
9ef9f1b8c1
commit
773b388f25
2 files changed
+10
-4
No files matched your search
@@ -9,6 +9,12 @@ Enabling temporary access only applies to connections to Postgres and Supavisor
|
||||
|
||||
<Admonition type="note">
|
||||
|
||||
[Enforce SSL](/docs/guides/platform/ssl-enforcement) on incoming connections must be enabled before temporary access can be used.
|
||||
|
||||
</Admonition>
|
||||
|
||||
<Admonition type="note">
|
||||
|
||||
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.
|
||||
|
||||
</Admonition>
|
||||
@@ -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 '{
|
||||
|
||||
@@ -217,7 +217,7 @@ allow_list = [
|
||||
"Datadog",
|
||||
"Deadpool",
|
||||
"Dependabot",
|
||||
"DepthFirst"
|
||||
"DepthFirst",
|
||||
"DDoS",
|
||||
"Deno",
|
||||
"Dependabot",
|
||||
|
||||
Reference in new issue
Block a user