Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

improvements: address coderabbit

Scott Wilsonb0b255461dea
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MsSqlConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MsSqlConnectionForm.tsx
index fecac3d3e7..f7d48744d0 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MsSqlConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MsSqlConnectionForm.tsx
@@ -96,7 +96,7 @@ export const MsSqlConnectionForm = ({ appConnection, onSubmit }: Props) => {
render={({ field: { value, onChange }, fieldState: { error } }) => (
<FormControl
tooltipText={`The method you would like to use to connect with ${
- APP_CONNECTION_MAP[AppConnection.Postgres].name
+ APP_CONNECTION_MAP[AppConnection.MsSql].name
}. This field cannot be changed after creation.`}
errorText={error?.message}
isError={Boolean(error?.message)}
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/SqlConnectionFields.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/SqlConnectionFields.tsx
index 66ea546ec9..1ad4efeb83 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/SqlConnectionFields.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/SqlConnectionFields.tsx
@@ -133,7 +133,7 @@ export const SqlConnectionFields = ({
<FormControl isError={Boolean(error?.message)} errorText={error?.message}>
<Switch
className="bg-mineshaft-400/50 shadow-inner data-[state=checked]:bg-green/80"
- id="platform-managed"
+ id="ssl-enabled"
thumbClassName="bg-mineshaft-800"
isChecked={value}
onCheckedChange={onChange}
@@ -144,7 +144,6 @@ export const SqlConnectionFields = ({
</FormControl>
)}
/>
-
<Controller
name="credentials.sslCertificate"
control={control}
@@ -175,7 +174,7 @@ export const SqlConnectionFields = ({
>
<Switch
className="bg-mineshaft-400/50 shadow-inner data-[state=checked]:bg-green/80"
- id="platform-managed"
+ id="ssl-reject-unauthorized"
thumbClassName="bg-mineshaft-800"
isChecked={sslEnabled ? value : false}
onCheckedChange={onChange}
@@ -187,8 +186,8 @@ export const SqlConnectionFields = ({
className="max-w-md"
content={
<p>
- If enabled, Infisical will only connect to servers that have valid,
- trusted SSL certificates.
+ If enabled, Infisical will only connect to the server if it has a valid,
+ trusted SSL certificate.
</p>
}
>