Skip to content

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

requested changes

varonixfc39c7d338e0
diff --git a/backend/src/services/app-connection/app-connection-fns.ts b/backend/src/services/app-connection/app-connection-fns.ts
index fdc2bf859d..c8bf1e7600 100644
--- a/backend/src/services/app-connection/app-connection-fns.ts
+++ b/backend/src/services/app-connection/app-connection-fns.ts
@@ -15,6 +15,7 @@ import { TLicenseServiceFactory } from "@app/ee/services/license/license-service
import { SECRET_ROTATION_CONNECTION_MAP } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-maps";
import { SECRET_SCANNING_DATA_SOURCE_CONNECTION_MAP } from "@app/ee/services/secret-scanning-v2/secret-scanning-v2-maps";
import { TKeyStoreFactory } from "@app/keystore/keystore";
+import { getConfig } from "@app/lib/config/env";
import { crypto } from "@app/lib/crypto/cryptography";
import { BadRequestError } from "@app/lib/errors";
import { APP_CONNECTION_NAME_MAP, APP_CONNECTION_PLAN_MAP } from "@app/services/app-connection/app-connection-maps";
@@ -310,7 +311,6 @@ import {
} from "./windmill";
import { getWinRMConnectionListItem, validateWinRMConnectionCredentials, WinRMConnectionMethod } from "./winrm";
import { getZabbixConnectionListItem, validateZabbixConnectionCredentials, ZabbixConnectionMethod } from "./zabbix";
-import { getConfig } from "@app/lib/config/env";
const SECRET_SYNC_APP_CONNECTION_MAP = Object.fromEntries(
Object.entries(SECRET_SYNC_CONNECTION_MAP).map(([key, value]) => [value, key])
diff --git a/backend/src/services/app-connection/stripe/stripe-connection-fns.test.ts b/backend/src/services/app-connection/stripe/stripe-connection-fns.test.ts
index 01cc296aa9..642a336569 100644
--- a/backend/src/services/app-connection/stripe/stripe-connection-fns.test.ts
+++ b/backend/src/services/app-connection/stripe/stripe-connection-fns.test.ts
@@ -8,7 +8,10 @@ const { postMock, decryptMock, encryptMock } = vi.hoisted(() => ({
}));
vi.mock("@app/lib/config/env", () => ({
- getConfig: () => ({ INF_APP_CONNECTION_STRIPE_SECRET_KEY: "sk_test_app" })
+ getConfig: () => ({
+ INF_APP_CONNECTION_STRIPE_SECRET_KEY: "sk_test_app",
+ WHITELISTED_STRIPE_APP_CONNECTION_ORG_IDS: ["org-id"]
+ })
}));
vi.mock("@app/lib/config/request", () => ({
request: { post: postMock, get: vi.fn() }