Skip to content

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

Merge branch 'main' into feat/adilsitos/eng-4966-stack-1

adilsoncc05dce167f9
diff --cc backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts
index 3d95308392,95dcdc81c5..49b86188ea
--- 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
@@@ -385,8 -382,8 +386,9 @@@ const SanitizedAppConnectionSchema = z.
...SanitizedStripeConnectionSchema.options,
...SanitizedKeeperConnectionSchema.options,
...SanitizedHpeIloConnectionSchema.options,
+ ...SanitizedServiceNowConnectionSchema.options,
- ...SanitizedS3CompatibleConnectionSchema.options
+ ...SanitizedS3CompatibleConnectionSchema.options,
+ ...SanitizedJiraConnectionSchema.options
]);
const AppConnectionOptionsSchema = z.discriminatedUnion("app", [
@@@ -481,8 -478,8 +483,9 @@@
StripeConnectionListItemSchema,
KeeperConnectionListItemSchema,
HpeIloConnectionListItemSchema,
+ ServiceNowConnectionListItemSchema,
- S3CompatibleConnectionListItemSchema
+ S3CompatibleConnectionListItemSchema,
+ JiraConnectionListItemSchema
]);
export const registerAppConnectionRouter = async (server: FastifyZodProvider) => {
diff --cc backend/src/server/routes/v1/app-connection-routers/index.ts
index 75dbe43ed0,63bf24edf9..2d5422bb0a
--- a/backend/src/server/routes/v1/app-connection-routers/index.ts
+++ b/backend/src/server/routes/v1/app-connection-routers/index.ts
@@@ -189,6 -189,6 +190,7 @@@ export const APP_CONNECTION_REGISTER_RO
[AppConnection.Stripe]: registerStripeConnectionRouter,
[AppConnection.Keeper]: registerKeeperConnectionRouter,
[AppConnection.HpeIloRedFish]: registerHpeIloConnectionRouter,
+ [AppConnection.ServiceNow]: registerServiceNowConnectionRouter,
- [AppConnection.S3Compatible]: registerS3CompatibleConnectionRouter
+ [AppConnection.S3Compatible]: registerS3CompatibleConnectionRouter,
+ [AppConnection.Jira]: registerJiraConnectionRouter
};
diff --cc backend/src/services/app-connection/app-connection-enums.ts
index aced5bbbee,87e7b6e3c3..9eccadbfb0
--- a/backend/src/services/app-connection/app-connection-enums.ts
+++ b/backend/src/services/app-connection/app-connection-enums.ts
@@@ -90,8 -90,8 +90,9 @@@ export enum AppConnection
Stripe = "stripe",
Keeper = "keeper",
HpeIloRedFish = "hpe-ilo",
+ ServiceNow = "servicenow",
- S3Compatible = "s3-compatible"
+ S3Compatible = "s3-compatible",
+ Jira = "jira"
}
export enum AWSRegion {
diff --cc backend/src/services/app-connection/app-connection-fns.ts
index 4e3dd9010b,3d3d1ab7e3..0ceac11f0a
--- a/backend/src/services/app-connection/app-connection-fns.ts
+++ b/backend/src/services/app-connection/app-connection-fns.ts
@@@ -379,12 -375,10 +380,14 @@@ const PKI_APP_CONNECTIONS =
AppConnection.MicrosoftIntune
];
+// Secret Manager connections that are not reached through a sync, rotation or external migration,
+// so none of the maps above surface them.
+const SECRET_MANAGER_APP_CONNECTIONS = [AppConnection.ServiceNow];
+
const AGENT_VAULT_APP_CONNECTIONS = [AppConnection.AWS];
+ const PAM_APP_CONNECTIONS = [AppConnection.Jira];
+
export const isAppConnectionAllowedInProject = (app: AppConnection, projectType?: ProjectType) => {
switch (projectType) {
case ProjectType.SecretManager:
@@@ -506,8 -499,8 +509,9 @@@ export const listAppConnectionOptions
getStripeConnectionListItem(),
getKeeperConnectionListItem(),
getHpeIloConnectionListItem(),
+ getServiceNowConnectionListItem(),
- getS3CompatibleConnectionListItem()
+ getS3CompatibleConnectionListItem(),
+ getJiraConnectionListItem()
]
.filter((option) => isAppConnectionAllowedInProject(option.app, projectType))
.sort((a, b) => a.name.localeCompare(b.name));
@@@ -750,8 -743,8 +754,9 @@@ export const validateAppConnectionCrede
[AppConnection.Stripe]: validateStripeConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.Keeper]: validateKeeperConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.HpeIloRedFish]: validateHpeIloConnectionCredentials as TAppConnectionCredentialsValidator,
+ [AppConnection.ServiceNow]: validateServiceNowConnectionCredentials as TAppConnectionCredentialsValidator,
- [AppConnection.S3Compatible]: validateS3CompatibleConnectionCredentials as TAppConnectionCredentialsValidator
+ [AppConnection.S3Compatible]: validateS3CompatibleConnectionCredentials as TAppConnectionCredentialsValidator,
+ [AppConnection.Jira]: validateJiraConnectionCredentials as TAppConnectionCredentialsValidator
};
return VALIDATE_APP_CONNECTION_CREDENTIALS_MAP[appConnection.app](appConnection, gatewayV2Service);
@@@ -1040,8 -1035,8 +1048,9 @@@ export const TRANSITION_CONNECTION_CRED
[AppConnection.Stripe]: platformManagedCredentialsNotSupported,
[AppConnection.Keeper]: platformManagedCredentialsNotSupported,
[AppConnection.HpeIloRedFish]: platformManagedCredentialsNotSupported,
+ [AppConnection.ServiceNow]: platformManagedCredentialsNotSupported,
- [AppConnection.S3Compatible]: platformManagedCredentialsNotSupported
+ [AppConnection.S3Compatible]: platformManagedCredentialsNotSupported,
+ [AppConnection.Jira]: platformManagedCredentialsNotSupported
};
export const enterpriseAppCheck = async (
diff --cc backend/src/services/app-connection/app-connection-maps.ts
index 9c970b68ab,d0c6285eaa..d020c99afb
--- a/backend/src/services/app-connection/app-connection-maps.ts
+++ b/backend/src/services/app-connection/app-connection-maps.ts
@@@ -92,8 -92,8 +92,9 @@@ export const APP_CONNECTION_NAME_MAP: R
[AppConnection.Stripe]: "Stripe",
[AppConnection.Keeper]: "Keeper",
[AppConnection.HpeIloRedFish]: "HPE iLO",
+ [AppConnection.ServiceNow]: "ServiceNow",
- [AppConnection.S3Compatible]: "S3-Compatible Storage"
+ [AppConnection.S3Compatible]: "S3-Compatible Storage",
+ [AppConnection.Jira]: "Jira"
};
export const APP_CONNECTION_PLAN_MAP: Record<AppConnection, AppConnectionPlanType> = {
@@@ -188,6 -188,6 +189,7 @@@
[AppConnection.Stripe]: AppConnectionPlanType.Regular,
[AppConnection.Keeper]: AppConnectionPlanType.Regular,
[AppConnection.HpeIloRedFish]: AppConnectionPlanType.Regular,
+ [AppConnection.ServiceNow]: AppConnectionPlanType.Enterprise,
- [AppConnection.S3Compatible]: AppConnectionPlanType.Regular
+ [AppConnection.S3Compatible]: AppConnectionPlanType.Regular,
+ [AppConnection.Jira]: AppConnectionPlanType.Regular
};
diff --cc backend/src/services/app-connection/app-connection-service.ts
index 14ab65dcea,841cf529ae..d38cbe39cc
--- a/backend/src/services/app-connection/app-connection-service.ts
+++ b/backend/src/services/app-connection/app-connection-service.ts
@@@ -338,8 -338,8 +339,9 @@@ const VALIDATE_APP_CONNECTION_CREDENTIA
[AppConnection.Stripe]: ValidateStripeConnectionCredentialsSchema,
[AppConnection.Keeper]: ValidateKeeperConnectionCredentialsSchema,
[AppConnection.HpeIloRedFish]: ValidateHpeIloConnectionCredentialsSchema,
+ [AppConnection.ServiceNow]: ValidateServiceNowConnectionCredentialsSchema,
- [AppConnection.S3Compatible]: ValidateS3CompatibleConnectionCredentialsSchema
+ [AppConnection.S3Compatible]: ValidateS3CompatibleConnectionCredentialsSchema,
+ [AppConnection.Jira]: ValidateJiraConnectionCredentialsSchema
};
export const appConnectionServiceFactory = ({
diff --cc backend/src/services/app-connection/app-connection-types.ts
index 18c15e658d,635a1f2019..2101c97bd7
--- a/backend/src/services/app-connection/app-connection-types.ts
+++ b/backend/src/services/app-connection/app-connection-types.ts
@@@ -645,8 -645,8 +651,9 @@@ export type TAppConnection = { id: stri
| TStripeConnection
| TKeeperConnection
| THpeIloConnection
+ | TServiceNowConnection
| TS3CompatibleConnection
+ | TJiraConnection
);
export type TAppConnectionRaw = NonNullable<Awaited<ReturnType<TAppConnectionDALFactory["findById"]>>>;
@@@ -749,8 -749,8 +756,9 @@@ export type TAppConnectionInput = { id
| TStripeConnectionInput
| TKeeperConnectionInput
| THpeIloConnectionInput
+ | TServiceNowConnectionInput
| TS3CompatibleConnectionInput
+ | TJiraConnectionInput
);
export type TSqlConnectionInput =
@@@ -887,8 -887,8 +895,9 @@@ export type TAppConnectionConfig
| TStripeConnectionConfig
| TKeeperConnectionConfig
| THpeIloConnectionConfig
+ | TServiceNowConnectionConfig
- | TS3CompatibleConnectionConfig;
+ | TS3CompatibleConnectionConfig
+ | TJiraConnectionConfig;
export type TValidateAppConnectionCredentialsSchema =
| TValidateAwsConnectionCredentialsSchema
@@@ -982,8 -982,8 +991,9 @@@
| TValidateStripeConnectionCredentialsSchema
| TValidateKeeperConnectionCredentialsSchema
| TValidateHpeIloConnectionCredentialsSchema
+ | TValidateServiceNowConnectionCredentialsSchema
- | TValidateS3CompatibleConnectionCredentialsSchema;
+ | TValidateS3CompatibleConnectionCredentialsSchema
+ | TValidateJiraConnectionCredentialsSchema;
export type TListAwsConnectionKmsKeys = {
connectionId: string;
diff --cc frontend/src/hooks/api/appConnections/enums.ts
index ee786e8484,2738beb301..a62e277234
--- a/frontend/src/hooks/api/appConnections/enums.ts
+++ b/frontend/src/hooks/api/appConnections/enums.ts
@@@ -90,6 -90,6 +90,7 @@@ export enum AppConnection
Stripe = "stripe",
Keeper = "keeper",
HpeIloRedFish = "hpe-ilo",
+ ServiceNow = "servicenow",
- S3Compatible = "s3-compatible"
+ S3Compatible = "s3-compatible",
+ Jira = "jira"
}
diff --cc frontend/src/hooks/api/appConnections/types/app-options.ts
index 1ff19b7289,5f2397ddc4..f8751dc19e
--- a/frontend/src/hooks/api/appConnections/types/app-options.ts
+++ b/frontend/src/hooks/api/appConnections/types/app-options.ts
@@@ -479,8 -479,8 +483,9 @@@ export type TAppConnectionOption
| TNutanixPrismCentralConnectionOption
| TSpaceliftConnectionOption
| TDaytonaConnectionOption
+ | TServiceNowConnectionOption
- | TS3CompatibleConnectionOption;
+ | TS3CompatibleConnectionOption
+ | TJiraConnectionOption;
export type TAppConnectionOptionMap = {
[AppConnection.AWS]: TAwsConnectionOption;
@@@ -574,6 -574,6 +579,7 @@@
[AppConnection.NutanixPrismCentral]: TNutanixPrismCentralConnectionOption;
[AppConnection.Spacelift]: TSpaceliftConnectionOption;
[AppConnection.Daytona]: TDaytonaConnectionOption;
+ [AppConnection.ServiceNow]: TServiceNowConnectionOption;
[AppConnection.S3Compatible]: TS3CompatibleConnectionOption;
+ [AppConnection.Jira]: TJiraConnectionOption;
};
diff --cc frontend/src/hooks/api/appConnections/types/index.ts
index 32d00710f0,bd5465a7fc..a2d64c7355
--- a/frontend/src/hooks/api/appConnections/types/index.ts
+++ b/frontend/src/hooks/api/appConnections/types/index.ts
@@@ -277,8 -277,8 +279,9 @@@ export type TAppConnection
| TStripeConnection
| TKeeperConnection
| THpeIloConnection
+ | TServiceNowConnection
- | TS3CompatibleConnection;
+ | TS3CompatibleConnection
+ | TJiraConnection;
export type TAvailableAppConnection = Pick<TAppConnection, "name" | "id" | "projectId"> & {
gatewayId?: string | null;