Skip to content

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

Merge branch 'main' into ENG-3041

x0322051bbf78e2952e
diff --cc backend/src/lib/api-docs/constants.ts
index 145a50b232,c6fd06dac5..b973ff5fd4
--- a/backend/src/lib/api-docs/constants.ts
+++ b/backend/src/lib/api-docs/constants.ts
@@@ -2269,9 -2269,9 +2269,13 @@@ export const AppConnections =
code: "The OAuth code to use to connect with GitLab.",
accessTokenType: "The type of token used to connect with GitLab."
},
+ BITBUCKET: {
+ email: "The email used to access Bitbucket.",
+ apiToken: "The API token used to access Bitbucket."
++ },
+ ZABBIX: {
+ apiToken: "The API Token used to access Zabbix.",
+ instanceUrl: "The Zabbix instance URL to connect with."
}
}
};
diff --cc backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts
index 8767c0680a,032dd939ed..35ec330e89
--- 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
@@@ -121,7 -118,7 +122,8 @@@ const SanitizedAppConnectionSchema = z.
...SanitizedFlyioConnectionSchema.options,
...SanitizedGitLabConnectionSchema.options,
...SanitizedCloudflareConnectionSchema.options,
- ...SanitizedBitbucketConnectionSchema.options
++ ...SanitizedBitbucketConnectionSchema.options,
+ ...SanitizedZabbixConnectionSchema.options
]);
const AppConnectionOptionsSchema = z.discriminatedUnion("app", [
@@@ -154,7 -151,7 +156,8 @@@
FlyioConnectionListItemSchema,
GitLabConnectionListItemSchema,
CloudflareConnectionListItemSchema,
- BitbucketConnectionListItemSchema
++ BitbucketConnectionListItemSchema,
+ ZabbixConnectionListItemSchema
]);
export const registerAppConnectionRouter = async (server: FastifyZodProvider) => {
diff --cc backend/src/server/routes/v1/app-connection-routers/index.ts
index 0d33afb346,35958ddf8e..56005beac5
--- a/backend/src/server/routes/v1/app-connection-routers/index.ts
+++ b/backend/src/server/routes/v1/app-connection-routers/index.ts
@@@ -64,5 -64,5 +65,6 @@@ export const APP_CONNECTION_REGISTER_RO
[AppConnection.Flyio]: registerFlyioConnectionRouter,
[AppConnection.GitLab]: registerGitLabConnectionRouter,
[AppConnection.Cloudflare]: registerCloudflareConnectionRouter,
- [AppConnection.Bitbucket]: registerBitbucketConnectionRouter
++ [AppConnection.Bitbucket]: registerBitbucketConnectionRouter,
+ [AppConnection.Zabbix]: registerZabbixConnectionRouter
};
diff --cc backend/src/services/app-connection/app-connection-enums.ts
index 16acabc08e,8e71f2285b..a0f4c7aacc
--- a/backend/src/services/app-connection/app-connection-enums.ts
+++ b/backend/src/services/app-connection/app-connection-enums.ts
@@@ -28,7 -28,7 +28,8 @@@ export enum AppConnection
Flyio = "flyio",
GitLab = "gitlab",
Cloudflare = "cloudflare",
- Bitbucket = "bitbucket"
++ Bitbucket = "bitbucket",
+ Zabbix = "zabbix"
}
export enum AWSRegion {
diff --cc backend/src/services/app-connection/app-connection-fns.ts
index f2a9a47347,cfaf97c3bf..c5c2b325f8
--- a/backend/src/services/app-connection/app-connection-fns.ts
+++ b/backend/src/services/app-connection/app-connection-fns.ts
@@@ -142,7 -138,7 +143,8 @@@ export const listAppConnectionOptions
getFlyioConnectionListItem(),
getGitLabConnectionListItem(),
getCloudflareConnectionListItem(),
- getBitbucketConnectionListItem()
++ getBitbucketConnectionListItem(),
+ getZabbixConnectionListItem()
].sort((a, b) => a.name.localeCompare(b.name));
};
@@@ -223,7 -219,7 +225,8 @@@ export const validateAppConnectionCrede
[AppConnection.Flyio]: validateFlyioConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.GitLab]: validateGitLabConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.Cloudflare]: validateCloudflareConnectionCredentials as TAppConnectionCredentialsValidator,
- [AppConnection.Bitbucket]: validateBitbucketConnectionCredentials as TAppConnectionCredentialsValidator
++ [AppConnection.Bitbucket]: validateBitbucketConnectionCredentials as TAppConnectionCredentialsValidator,
+ [AppConnection.Zabbix]: validateZabbixConnectionCredentials as TAppConnectionCredentialsValidator
};
return VALIDATE_APP_CONNECTION_CREDENTIALS_MAP[appConnection.app](appConnection);
@@@ -260,7 -256,7 +263,8 @@@ export const getAppConnectionMethodNam
case VercelConnectionMethod.ApiToken:
case OnePassConnectionMethod.ApiToken:
case CloudflareConnectionMethod.APIToken:
+ case BitbucketConnectionMethod.ApiToken:
+ case ZabbixConnectionMethod.ApiToken:
return "API Token";
case PostgresConnectionMethod.UsernameAndPassword:
case MsSqlConnectionMethod.UsernameAndPassword:
@@@ -341,7 -337,7 +345,8 @@@ export const TRANSITION_CONNECTION_CRED
[AppConnection.Flyio]: platformManagedCredentialsNotSupported,
[AppConnection.GitLab]: platformManagedCredentialsNotSupported,
[AppConnection.Cloudflare]: platformManagedCredentialsNotSupported,
- [AppConnection.Bitbucket]: platformManagedCredentialsNotSupported
++ [AppConnection.Bitbucket]: platformManagedCredentialsNotSupported,
+ [AppConnection.Zabbix]: platformManagedCredentialsNotSupported
};
export const enterpriseAppCheck = async (
diff --cc backend/src/services/app-connection/app-connection-maps.ts
index cb4351fc75,342e39d718..cf5ed1a424
--- a/backend/src/services/app-connection/app-connection-maps.ts
+++ b/backend/src/services/app-connection/app-connection-maps.ts
@@@ -30,7 -30,7 +30,8 @@@ export const APP_CONNECTION_NAME_MAP: R
[AppConnection.Flyio]: "Fly.io",
[AppConnection.GitLab]: "GitLab",
[AppConnection.Cloudflare]: "Cloudflare",
- [AppConnection.Bitbucket]: "Bitbucket"
++ [AppConnection.Bitbucket]: "Bitbucket",
+ [AppConnection.Zabbix]: "Zabbix"
};
export const APP_CONNECTION_PLAN_MAP: Record<AppConnection, AppConnectionPlanType> = {
@@@ -63,5 -63,5 +64,6 @@@
[AppConnection.Flyio]: AppConnectionPlanType.Regular,
[AppConnection.GitLab]: AppConnectionPlanType.Regular,
[AppConnection.Cloudflare]: AppConnectionPlanType.Regular,
- [AppConnection.Bitbucket]: AppConnectionPlanType.Regular
++ [AppConnection.Bitbucket]: AppConnectionPlanType.Regular,
+ [AppConnection.Zabbix]: AppConnectionPlanType.Regular
};
diff --cc backend/src/services/app-connection/app-connection-service.ts
index 01c3d41ea8,a2931dbd20..a1649a1c42
--- a/backend/src/services/app-connection/app-connection-service.ts
+++ b/backend/src/services/app-connection/app-connection-service.ts
@@@ -122,7 -122,7 +124,8 @@@ const VALIDATE_APP_CONNECTION_CREDENTIA
[AppConnection.Flyio]: ValidateFlyioConnectionCredentialsSchema,
[AppConnection.GitLab]: ValidateGitLabConnectionCredentialsSchema,
[AppConnection.Cloudflare]: ValidateCloudflareConnectionCredentialsSchema,
- [AppConnection.Bitbucket]: ValidateBitbucketConnectionCredentialsSchema
++ [AppConnection.Bitbucket]: ValidateBitbucketConnectionCredentialsSchema,
+ [AppConnection.Zabbix]: ValidateZabbixConnectionCredentialsSchema
};
export const appConnectionServiceFactory = ({
@@@ -533,6 -533,6 +536,7 @@@
flyio: flyioConnectionService(connectAppConnectionById),
gitlab: gitlabConnectionService(connectAppConnectionById, appConnectionDAL, kmsService),
cloudflare: cloudflareConnectionService(connectAppConnectionById),
- bitbucket: bitBucketConnectionService(connectAppConnectionById)
++ bitbucket: bitBucketConnectionService(connectAppConnectionById),
+ zabbix: zabbixConnectionService(connectAppConnectionById)
};
};
diff --cc backend/src/services/app-connection/app-connection-types.ts
index 0b9d66ae8c,be58ff553a..d944793d50
--- a/backend/src/services/app-connection/app-connection-types.ts
+++ b/backend/src/services/app-connection/app-connection-types.ts
@@@ -202,7 -202,7 +208,8 @@@ export type TAppConnection = { id: stri
| TFlyioConnection
| TGitLabConnection
| TCloudflareConnection
+ | TBitbucketConnection
+ | TZabbixConnection
);
export type TAppConnectionRaw = NonNullable<Awaited<ReturnType<TAppConnectionDALFactory["findById"]>>>;
@@@ -239,7 -239,7 +246,8 @@@ export type TAppConnectionInput = { id
| TFlyioConnectionInput
| TGitLabConnectionInput
| TCloudflareConnectionInput
+ | TBitbucketConnectionInput
+ | TZabbixConnectionInput
);
export type TSqlConnectionInput =
@@@ -284,7 -284,7 +292,8 @@@ export type TAppConnectionConfig
| TFlyioConnectionConfig
| TGitLabConnectionConfig
| TCloudflareConnectionConfig
+ | TBitbucketConnectionConfig;
+ | TZabbixConnectionConfig;
export type TValidateAppConnectionCredentialsSchema =
| TValidateAwsConnectionCredentialsSchema
@@@ -316,7 -316,7 +325,8 @@@
| TValidateFlyioConnectionCredentialsSchema
| TValidateGitLabConnectionCredentialsSchema
| TValidateCloudflareConnectionCredentialsSchema
- | TValidateBitbucketConnectionCredentialsSchema;
++ | TValidateBitbucketConnectionCredentialsSchema
+ | TValidateZabbixConnectionCredentialsSchema;
export type TListAwsConnectionKmsKeys = {
connectionId: string;
diff --cc frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/1PasswordSyncFields.tsx
index dd54dbf632,dd54dbf632..15169c73ab
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/1PasswordSyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/1PasswordSyncFields.tsx
@@@ -60,7 -60,7 +60,7 @@@ export const OnePassSyncFields = () =>
menuPlacement="top"
isLoading={isVaultsLoading && Boolean(connectionId)}
isDisabled={!connectionId}
-- value={vaults?.find((v) => v.id === value) ?? null}
++ value={vaults?.find((v) => v.id === value) || null}
onChange={(option) => onChange((option as SingleValue<TOnePassVault>)?.id ?? null)}
options={vaults}
placeholder="Select a vault..."
diff --cc frontend/src/helpers/appConnections.ts
index 23552fdf59,321555f457..fa6f11bbb5
--- a/frontend/src/helpers/appConnections.ts
+++ b/frontend/src/helpers/appConnections.ts
@@@ -37,9 -37,9 +37,10 @@@ import
TeamCityConnectionMethod,
TerraformCloudConnectionMethod,
VercelConnectionMethod,
- WindmillConnectionMethod
+ WindmillConnectionMethod,
+ ZabbixConnectionMethod
} from "@app/hooks/api/appConnections/types";
+import { BitbucketConnectionMethod } from "@app/hooks/api/appConnections/types/bitbucket-connection";
import { HerokuConnectionMethod } from "@app/hooks/api/appConnections/types/heroku-connection";
import { OCIConnectionMethod } from "@app/hooks/api/appConnections/types/oci-connection";
import { RenderConnectionMethod } from "@app/hooks/api/appConnections/types/render-connection";
@@@ -90,7 -90,7 +91,8 @@@ export const APP_CONNECTION_MAP: Record
[AppConnection.Flyio]: { name: "Fly.io", image: "Flyio.svg" },
[AppConnection.Gitlab]: { name: "GitLab", image: "GitLab.png" },
[AppConnection.Cloudflare]: { name: "Cloudflare", image: "Cloudflare.png" },
- [AppConnection.Bitbucket]: { name: "Bitbucket", image: "Bitbucket.png" }
++ [AppConnection.Bitbucket]: { name: "Bitbucket", image: "Bitbucket.png" },
+ [AppConnection.Zabbix]: { name: "Zabbix", image: "Zabbix.png" }
};
export const getAppConnectionMethodDetails = (method: TAppConnection["method"]) => {
@@@ -122,7 -122,7 +124,8 @@@
case VercelConnectionMethod.ApiToken:
case OnePassConnectionMethod.ApiToken:
case CloudflareConnectionMethod.ApiToken:
+ case BitbucketConnectionMethod.ApiToken:
+ case ZabbixConnectionMethod.ApiToken:
return { name: "API Token", icon: faKey };
case PostgresConnectionMethod.UsernameAndPassword:
case MsSqlConnectionMethod.UsernameAndPassword:
diff --cc frontend/src/hooks/api/appConnections/enums.ts
index d03045cb1b,38de5b1b36..31443c67d6
--- a/frontend/src/hooks/api/appConnections/enums.ts
+++ b/frontend/src/hooks/api/appConnections/enums.ts
@@@ -28,5 -28,5 +28,6 @@@ export enum AppConnection
Flyio = "flyio",
Gitlab = "gitlab",
Cloudflare = "cloudflare",
- Bitbucket = "bitbucket"
++ Bitbucket = "bitbucket",
+ Zabbix = "zabbix"
}
diff --cc frontend/src/hooks/api/appConnections/types/app-options.ts
index b9f3990d3a,049f75471f..1fa1086c9f
--- a/frontend/src/hooks/api/appConnections/types/app-options.ts
+++ b/frontend/src/hooks/api/appConnections/types/app-options.ts
@@@ -132,8 -132,8 +132,12 @@@ export type TCloudflareConnectionOptio
app: AppConnection.Cloudflare;
};
+export type TBitbucketConnectionOption = TAppConnectionOptionBase & {
+ app: AppConnection.Bitbucket;
++}
++
+ export type TZabbixConnectionOption = TAppConnectionOptionBase & {
+ app: AppConnection.Zabbix;
};
export type TAppConnectionOption =
@@@ -164,7 -164,7 +168,8 @@@
| TFlyioConnectionOption
| TGitlabConnectionOption
| TCloudflareConnectionOption
+ | TBitbucketConnectionOption;
+ | TZabbixConnectionOption;
export type TAppConnectionOptionMap = {
[AppConnection.AWS]: TAwsConnectionOption;
@@@ -196,5 -196,5 +201,6 @@@
[AppConnection.Flyio]: TFlyioConnectionOption;
[AppConnection.Gitlab]: TGitlabConnectionOption;
[AppConnection.Cloudflare]: TCloudflareConnectionOption;
+ [AppConnection.Bitbucket]: TBitbucketConnectionOption;
+ [AppConnection.Zabbix]: TZabbixConnectionOption;
};
diff --cc frontend/src/hooks/api/appConnections/types/index.ts
index da87d03b29,3bcf4fe5ce..4aabde9ad1
--- a/frontend/src/hooks/api/appConnections/types/index.ts
+++ b/frontend/src/hooks/api/appConnections/types/index.ts
@@@ -92,7 -92,7 +94,8 @@@ export type TAppConnection
| TFlyioConnection
| TGitLabConnection
| TCloudflareConnection
- | TBitbucketConnection;
++ | TBitbucketConnection
+ | TZabbixConnection;
export type TAvailableAppConnection = Pick<TAppConnection, "name" | "id">;
@@@ -149,5 -149,5 +152,6 @@@ export type TAppConnectionMap =
[AppConnection.Flyio]: TFlyioConnection;
[AppConnection.Gitlab]: TGitLabConnection;
[AppConnection.Cloudflare]: TCloudflareConnection;
+ [AppConnection.Bitbucket]: TBitbucketConnection;
+ [AppConnection.Zabbix]: TZabbixConnection;
};
diff --cc frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
index df90128094,1408571108..0e080d6dde
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
@@@ -135,8 -135,8 +136,10 @@@ const CreateForm = ({ app, onComplete }
return <GitLabConnectionForm onSubmit={onSubmit} />;
case AppConnection.Cloudflare:
return <CloudflareConnectionForm onSubmit={onSubmit} />;
+ case AppConnection.Bitbucket:
+ return <BitbucketConnectionForm onSubmit={onSubmit} />;
+ case AppConnection.Zabbix:
+ return <ZabbixConnectionForm onSubmit={onSubmit} />;
default:
throw new Error(`Unhandled App ${app}`);
}
@@@ -231,8 -231,8 +234,10 @@@ const UpdateForm = ({ appConnection, on
return <GitLabConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
case AppConnection.Cloudflare:
return <CloudflareConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
+ case AppConnection.Bitbucket:
+ return <BitbucketConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
+ case AppConnection.Zabbix:
+ return <ZabbixConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
default:
throw new Error(`Unhandled App ${(appConnection as TAppConnection).app}`);
}