mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
fix(studio): clarify default privileges toggle covers tables (#45458)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated UI labels and descriptions across the Data API settings to clarify that default privileges apply to new tables only (removed references to functions). <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
1 parent
4a702c4429
commit
e61853c59c
4 files changed
+8
-9
No files matched your search
@@ -99,11 +99,10 @@ export const SecurityOptions = ({ form, layout = 'horizontal' }: SecurityOptions
|
||||
<FormLabel
|
||||
className={cn('text-sm text-foreground', !dataApi && 'text-foreground-muted')}
|
||||
>
|
||||
Automatically expose new tables and functions
|
||||
Automatically expose new tables
|
||||
</FormLabel>
|
||||
<FormDescription className="text-foreground-lighter">
|
||||
Grants privileges to Data API roles by default, exposing new tables and
|
||||
functions.
|
||||
Grants privileges to Data API roles by default, exposing new tables.
|
||||
<br />
|
||||
<strong className="font-medium text-foreground-light">
|
||||
We recommend disabling this to control access manually.
|
||||
|
||||
@@ -393,8 +393,8 @@ export const PostgrestConfig = () => {
|
||||
<FormItem>
|
||||
<FormItemLayout
|
||||
layout="flex-row-reverse"
|
||||
label="Automatically expose new tables and functions"
|
||||
description="Grants privileges to Data API roles by default, exposing new tables and functions. We recommend disabling this to control access manually."
|
||||
label="Automatically expose new tables"
|
||||
description="Grants privileges to Data API roles by default, exposing new tables. We recommend disabling this to control access manually."
|
||||
>
|
||||
<FormControl>
|
||||
<div>
|
||||
|
||||
@@ -5,7 +5,7 @@ import { IS_TEST_ENV } from '@/lib/constants'
|
||||
import { useTrack } from '@/lib/telemetry/track'
|
||||
|
||||
/**
|
||||
* Controls the default state of the "Automatically expose new tables and functions"
|
||||
* Controls the default state of the "Automatically expose new tables"
|
||||
* checkbox at project creation. When the flag is on, the checkbox defaults
|
||||
* to unchecked (i.e. revoke SQL runs). When off/absent, the checkbox defaults
|
||||
* to checked (current behaviour — default grants remain).
|
||||
|
||||
@@ -356,11 +356,11 @@ const CreateProject = () => {
|
||||
htmlFor="dataApiDefaultPrivileges"
|
||||
className="text-sm text-foreground-light flex items-center space-x-2 leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
||||
>
|
||||
Automatically expose new tables and functions
|
||||
Automatically expose new tables
|
||||
</label>
|
||||
<p className="text-sm text-foreground-muted">
|
||||
Grants privileges to Data API roles by default, exposing new tables and functions. We
|
||||
recommend disabling this to control access manually.
|
||||
Grants privileges to Data API roles by default, exposing new tables. We recommend
|
||||
disabling this to control access manually.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user