fix: update rate limit descriptions (#22828)

* fix: update rate limit descriptions

* fix: add link to access control guide
This commit is contained in:
Kang Ming authored and GitHub committed 2024-04-17 12:10:35 +00:00
1 parent 8ad3a33104
commit 9c6b33bbf9
2 files changed
+28 -13

No files matched your search

@@ -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_>
@@ -278,7 +278,8 @@ const RateLimits = () => {
<FormSectionLabel
description={
<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 = () => {
<FormSectionLabel
description={
<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>
}
>