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
fix: minor improvements
Daniel Hougaardf1d8b525b9df
diff --git a/backend/src/lib/config/env.ts b/backend/src/lib/config/env.tsindex a034a7b136..1af9c3d109 100644--- a/backend/src/lib/config/env.ts+++ b/backend/src/lib/config/env.ts@@ -391,6 +391,9 @@ const envSchema = z})),+ /* OracleDB ----------------------------------------------------------------------------- */+ TNS_ADMIN: zpStr(z.string().optional()),+/* INTERNAL ----------------------------------------------------------------------------- */INTERNAL_REGION: zpStr(z.enum(["us", "eu"]).optional())})diff --git a/backend/src/services/app-connection/shared/sql/sql-connection-fns.ts b/backend/src/services/app-connection/shared/sql/sql-connection-fns.tsindex 0c852bdcd5..14c4043dd9 100644--- a/backend/src/services/app-connection/shared/sql/sql-connection-fns.ts+++ b/backend/src/services/app-connection/shared/sql/sql-connection-fns.ts@@ -9,6 +9,7 @@ import {TSqlCredentialsRotationGeneratedCredentials,TSqlCredentialsRotationWithConnection} from "@app/ee/services/secret-rotation-v2/shared/sql-credentials/sql-credentials-rotation-types";+import { getConfig } from "@app/lib/config/env";import { BadRequestError, DatabaseError } from "@app/lib/errors";import { GatewayProxyProtocol, withGatewayProxy } from "@app/lib/gateway";import { withGatewayV2Proxy } from "@app/lib/gateway-v2/gateway-v2";@@ -83,7 +84,9 @@ const getConnectionConfig = ({// if TNS_ADMIN is set and the directory exists, we assume it's a wallet connection for OracleDBconst isOracleWalletConnection = (app: AppConnection): boolean => {- return app === AppConnection.OracleDB && !!process.env.TNS_ADMIN && fs.existsSync(process.env.TNS_ADMIN);+ const { TNS_ADMIN } = getConfig();++ return app === AppConnection.OracleDB && !!TNS_ADMIN && fs.existsSync(TNS_ADMIN);};const getOracleWalletKnexClient = (@@ -100,7 +103,7 @@ const getOracleWalletKnexClient = (}}return knex({- client: "oracledb",+ client: SQL_CONNECTION_CLIENT_MAP[AppConnection.OracleDB],connection: {user: credentials.username,password: credentials.password,