The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: update rate limit descriptions (#22828)
Kang Ming9c6b33bbf959
diff --git a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsxindex 23d01a45de6..f9a44561ca4 100644--- a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx+++ b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx@@ -34,6 +34,7 @@ import { IS_PLATFORM } from 'lib/constants'import Link from 'next/link'import { WarningIcon } from 'ui-patterns/Icons/StatusIcons'import FormField from '../AuthProvidersForm/FormField'+import { ExternalLink } from 'lucide-react'// Use a const string to represent no chars option. Represented as empty string on the backend side.const NO_REQUIRED_CHARACTERS = 'NO_REQUIRED_CHARS'@@ -233,17 +234,30 @@ const BasicAuthSettingsForm = () => {Anonymous users will use the{' '}<code className="text-xs">authenticated</code> role when signing in</AlertTitle_Shadcn_>- <AlertDescription_Shadcn_>- As a result, anonymous users will be subjected to RLS policies that- apply to the <code className="text-xs">public</code> and{' '}- <code className="text-xs">authenticated</code> roles. We strongly advise{' '}- <Link- href={`/project/${projectRef}/auth/policies`}- className="text-foreground underline"+ <AlertDescription_Shadcn_ className="flex flex-col gap-y-3">+ <p>+ As a result, anonymous users will be subjected to RLS policies that+ apply to the <code className="text-xs">public</code> and{' '}+ <code className="text-xs">authenticated</code> roles. We strongly+ advise{' '}+ <Link+ href={`/project/${projectRef}/auth/policies`}+ className="text-foreground underline"+ >+ reviewing your RLS policies+ </Link>{' '}+ to ensure that access to your data is restricted where required.+ </p>+ <Button+ asChild+ type="default"+ className="w-min"+ icon={<ExternalLink size={14} />}>- reviewing your RLS policies- </Link>{' '}- to ensure that access to your data is restricted where required.+ <Link href="/docs/guides/auth/auth-anonymous#access-control">+ View access control docs+ </Link>+ </Button></AlertDescription_Shadcn_></div></Alert_Shadcn_>diff --git a/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx b/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsxindex 8f5691937e3..fa189b7e79a 100644--- a/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx+++ b/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx@@ -278,7 +278,8 @@ const RateLimits = () => {<FormSectionLabeldescription={<p className="text-foreground-light text-sm">- Number of sessions that can be refreshed in a 5 minute interval+ Number of sessions that can be refreshed in a 5 minute interval per IP+ address.</p>}>@@ -315,7 +316,7 @@ const RateLimits = () => {description={<p className="text-foreground-light text-sm">Number of OTP/Magic link verifications that can be made in a 5 minute- interval+ interval per IP address.</p>}>@@ -349,7 +350,7 @@ const RateLimits = () => {<FormSectionLabeldescription={<p className="text-foreground-light text-sm">- Number of anonymous sign-ins that can be made per hour+ Number of anonymous sign-ins that can be made per hour per IP address.</p>}>