From 9c6b33bbf9596ba459bee74c5b92d8d470001e16 Mon Sep 17 00:00:00 2001
From: Kang Ming
Date: Wed, 17 Apr 2024 19:10:35 +0700
Subject: [PATCH] fix: update rate limit descriptions (#22828)
* fix: update rate limit descriptions
* fix: add link to access control guide
---
.../BasicAuthSettingsForm.tsx | 34 +++++++++++++------
.../interfaces/Auth/RateLimits/RateLimits.tsx | 7 ++--
2 files changed, 28 insertions(+), 13 deletions(-)
diff --git a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx
index 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{' '}
authenticated role when signing in
-
- As a result, anonymous users will be subjected to RLS policies that
- apply to the public and{' '}
- authenticated roles. We strongly advise{' '}
-
+
+ As a result, anonymous users will be subjected to RLS policies that
+ apply to the public and{' '}
+ authenticated roles. We strongly
+ advise{' '}
+
+ reviewing your RLS policies
+ {' '}
+ to ensure that access to your data is restricted where required.
+
+ }
>
- reviewing your RLS policies
- {' '}
- to ensure that access to your data is restricted where required.
+
+ View access control docs
+
+
diff --git a/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx b/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx
index 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 = () => {
- 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.
Number of OTP/Magic link verifications that can be made in a 5 minute
- interval
+ interval per IP address.
}
>
@@ -349,7 +350,7 @@ const RateLimits = () => {
- 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.
}
>