Skip to content

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

Revert "chore: stripe whitelisting"

varonixdbf005ccea5b
diff --git a/backend/src/lib/config/env.ts b/backend/src/lib/config/env.ts
index cbdf41e139..a68193b527 100644
--- a/backend/src/lib/config/env.ts
+++ b/backend/src/lib/config/env.ts
@@ -687,10 +687,7 @@ const envSchema = z
GO_SIDECAR_SPAWN_ENABLED: zodStrBool.default("false"),
/* INTERNAL ----------------------------------------------------------------------------- */
- INTERNAL_REGION: zpStr(z.enum(["us", "eu"]).optional()),
-
- /* Temporary Stripe Whitelisting ----------------------------------------------------------------------------- */
- WHITELISTED_STRIPE_APP_CONNECTION_ORG_IDS: zpStr(z.string().optional())
+ INTERNAL_REGION: zpStr(z.enum(["us", "eu"]).optional())
})
.refine(
(data) => Boolean(data.REDIS_URL) || Boolean(data.REDIS_SENTINEL_HOSTS) || Boolean(data.REDIS_CLUSTER_HOSTS),
@@ -793,10 +790,7 @@ const envSchema = z
data.INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_SECRET || data.INF_APP_CONNECTION_AZURE_CLIENT_SECRET,
INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_ID: data.INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_ID || data.CLIENT_ID_HEROKU,
INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET:
- data.INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET || data.CLIENT_SECRET_HEROKU,
- WHITELISTED_STRIPE_APP_CONNECTION_ORG_IDS: data.WHITELISTED_STRIPE_APP_CONNECTION_ORG_IDS?.split(",").map((id) =>
- id.trim()
- )
+ data.INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET || data.CLIENT_SECRET_HEROKU
}));
export type TEnvConfig = Readonly<z.infer<typeof envSchema>>;
diff --git a/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts b/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts
index 6b5240a643..3ba62f659a 100644
--- a/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts
+++ b/backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts
@@ -472,10 +472,7 @@ export const registerAppConnectionRouter = async (server: FastifyZodProvider) =>
},
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN, AuthMode.OAUTH]),
handler: (req) => {
- const appConnectionOptions = server.services.appConnection.listAppConnectionOptions(
- req.permission.orgId,
- req.query.projectType
- );
+ const appConnectionOptions = server.services.appConnection.listAppConnectionOptions(req.query.projectType);
return { appConnectionOptions };
}
});
diff --git a/backend/src/services/app-connection/app-connection-fns.ts b/backend/src/services/app-connection/app-connection-fns.ts
index fdc2bf859d..c7fb7ff12e 100644
--- a/backend/src/services/app-connection/app-connection-fns.ts
+++ b/backend/src/services/app-connection/app-connection-fns.ts
@@ -310,7 +310,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])
@@ -350,7 +349,7 @@ const PKI_APP_CONNECTIONS = [
AppConnection.MicrosoftIntune
];
-export const listAppConnectionOptions = (orgId: string, projectType?: ProjectType) => {
+export const listAppConnectionOptions = (projectType?: ProjectType) => {
return [
getAwsConnectionListItem(),
getGitHubConnectionListItem(),
@@ -440,12 +439,6 @@ export const listAppConnectionOptions = (orgId: string, projectType?: ProjectTyp
getStripeConnectionListItem()
]
.filter((option) => {
- if (option.app == AppConnection.Stripe) {
- if (!getConfig().WHITELISTED_STRIPE_APP_CONNECTION_ORG_IDS?.includes(orgId)) {
- return false;
- }
- }
-
switch (projectType) {
case ProjectType.SecretManager:
return (
diff --git a/backend/src/services/app-connection/stripe/stripe-connection-fns.ts b/backend/src/services/app-connection/stripe/stripe-connection-fns.ts
index 576ab86d1f..37e35e6c3b 100644
--- a/backend/src/services/app-connection/stripe/stripe-connection-fns.ts
+++ b/backend/src/services/app-connection/stripe/stripe-connection-fns.ts
@@ -133,10 +133,6 @@ const assertCanManageApiKeys = async (accountId: string) => {
};
export const validateStripeConnectionCredentials = async (config: TStripeConnectionConfig) => {
- if (!getConfig().WHITELISTED_STRIPE_APP_CONNECTION_ORG_IDS?.includes(config.orgId)) {
- throw new BadRequestError({ message: `Your organization does not support Stripe app connections yet.` });
- }
-
const credentials = await exchangeStripeOAuthCode(config.credentials.code);
await assertCanManageApiKeys(credentials.accountId);