Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
A few tweaks
x03220519cb2201077a
diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.tsindex 59734583aa..657729b32b 100644--- a/backend/src/lib/api-docs/constants.ts+++ b/backend/src/lib/api-docs/constants.ts@@ -2199,6 +2199,7 @@ export const AppConnections = {audience: "The unique identifier of the target API you want to access."},SQL_CONNECTION: {+ gatewayId: "The ID of the gateway to use when performing database requests.",host: "The hostname of the database server.",port: "The port number of the database.",database: "The name of the database to connect to.",diff --git a/backend/src/services/app-connection/shared/sql/sql-connection-schemas.ts b/backend/src/services/app-connection/shared/sql/sql-connection-schemas.tsindex bfaf6f2bce..8fea2c1fbb 100644--- a/backend/src/services/app-connection/shared/sql/sql-connection-schemas.ts+++ b/backend/src/services/app-connection/shared/sql/sql-connection-schemas.ts@@ -3,7 +3,11 @@ import { z } from "zod";import { AppConnections } from "@app/lib/api-docs";export const BaseSqlUsernameAndPasswordConnectionSchema = z.object({- gatewayId: z.string().optional(),+ gatewayId: z+ .union([z.string().uuid(), z.literal("")])+ .transform((value) => value || null)+ .nullish()+ .describe(AppConnections.CREDENTIALS.SQL_CONNECTION.gatewayId),host: z.string().trim().min(1, "Host required").describe(AppConnections.CREDENTIALS.SQL_CONNECTION.host),port: z.coerce.number().describe(AppConnections.CREDENTIALS.SQL_CONNECTION.port),database: z.string().trim().min(1, "Database required").describe(AppConnections.CREDENTIALS.SQL_CONNECTION.database),diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MsSqlConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MsSqlConnectionForm.tsxindex 721ff30d4d..63ec9f781e 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MsSqlConnectionForm.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MsSqlConnectionForm.tsx@@ -152,7 +152,7 @@ export const MsSqlConnectionForm = ({ appConnection, onSubmit }: Props) => {<div><SelectisDisabled={!isAllowed}- value={value}+ value={value as string}onValueChange={onChange}className="w-full border border-mineshaft-500"dropdownContainerClassName="max-w-none"diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MySqlConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MySqlConnectionForm.tsxindex 686dc7ff6e..a6a647acca 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MySqlConnectionForm.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/MySqlConnectionForm.tsx@@ -149,7 +149,7 @@ export const MySqlConnectionForm = ({ appConnection, onSubmit }: Props) => {<div><SelectisDisabled={!isAllowed}- value={value}+ value={value as string}onValueChange={onChange}className="w-full border border-mineshaft-500"dropdownContainerClassName="max-w-none"diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/OracleDBConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/OracleDBConnectionForm.tsxindex 85c63eef83..f455ea547f 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/OracleDBConnectionForm.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/OracleDBConnectionForm.tsx@@ -149,7 +149,7 @@ export const OracleDBConnectionForm = ({ appConnection, onSubmit }: Props) => {<div><SelectisDisabled={!isAllowed}- value={value}+ value={value as string}onValueChange={onChange}className="w-full border border-mineshaft-500"dropdownContainerClassName="max-w-none"diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/PostgresConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/PostgresConnectionForm.tsxindex 6789181079..1551ce2548 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/PostgresConnectionForm.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/PostgresConnectionForm.tsx@@ -149,7 +149,7 @@ export const PostgresConnectionForm = ({ appConnection, onSubmit }: Props) => {<div><SelectisDisabled={!isAllowed}- value={value}+ value={value as string}onValueChange={onChange}className="w-full border border-mineshaft-500"dropdownContainerClassName="max-w-none"diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/sql-connection-schemas.ts b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/sql-connection-schemas.tsindex a2d387567f..c025a18f4a 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/sql-connection-schemas.ts+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/sql-connection-schemas.ts@@ -1,7 +1,7 @@import { z } from "zod";export const BaseSqlUsernameAndPasswordConnectionSchema = z.object({- gatewayId: z.string().optional(),+ gatewayId: z.string().nullable().optional(),host: z.string().trim().min(1, "Host required"),port: z.coerce.number().default(5432),database: z.string().trim().min(1, "Database required").default("default"),