Skip to content

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

Merge branch 'main' into feat/azureClientSecretsRotation

carlosmonastyrskief47d0056f78
diff --cc backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts
index 7d60ac8f8a,c8d2a976d6..7eb54de305
--- 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
@@@ -57,8 -57,8 +61,9 @@@ const SanitizedAppConnectionSchema = z.
...SanitizedPostgresConnectionSchema.options,
...SanitizedMsSqlConnectionSchema.options,
...SanitizedCamundaConnectionSchema.options,
- ...SanitizedWindmillConnectionSchema.options,
- ...SanitizedAuth0ConnectionSchema.options
+ ...SanitizedAuth0ConnectionSchema.options,
- ...SanitizedAzureClientSecretsConnectionSchema.options
++ ...SanitizedAzureClientSecretsConnectionSchema.options,
++ ...SanitizedWindmillConnectionSchema.options
]);
const AppConnectionOptionsSchema = z.discriminatedUnion("app", [
@@@ -74,8 -74,8 +79,9 @@@
PostgresConnectionListItemSchema,
MsSqlConnectionListItemSchema,
CamundaConnectionListItemSchema,
- WindmillConnectionListItemSchema,
- Auth0ConnectionListItemSchema
+ Auth0ConnectionListItemSchema,
- AzureClientSecretsConnectionListItemSchema
++ AzureClientSecretsConnectionListItemSchema,
++ WindmillConnectionListItemSchema
]);
export const registerAppConnectionRouter = async (server: FastifyZodProvider) => {
diff --cc backend/src/server/routes/v1/app-connection-routers/index.ts
index 2732daa770,a833b6882b..4abffb478b
--- a/backend/src/server/routes/v1/app-connection-routers/index.ts
+++ b/backend/src/server/routes/v1/app-connection-routers/index.ts
@@@ -31,6 -31,6 +32,7 @@@ export const APP_CONNECTION_REGISTER_RO
[AppConnection.Postgres]: registerPostgresConnectionRouter,
[AppConnection.MsSql]: registerMsSqlConnectionRouter,
[AppConnection.Camunda]: registerCamundaConnectionRouter,
+ [AppConnection.AzureClientSecrets]: registerAzureClientSecretsConnectionRouter,
+ [AppConnection.Windmill]: registerWindmillConnectionRouter,
[AppConnection.Auth0]: registerAuth0ConnectionRouter
};
diff --cc backend/src/services/app-connection/app-connection-fns.ts
index 4ce91da946,7e08a92b44..2f62638935
--- a/backend/src/services/app-connection/app-connection-fns.ts
+++ b/backend/src/services/app-connection/app-connection-fns.ts
@@@ -70,7 -70,7 +75,8 @@@ export const listAppConnectionOptions
getPostgresConnectionListItem(),
getMsSqlConnectionListItem(),
getCamundaConnectionListItem(),
+ getAzureClientSecretsConnectionListItem(),
+ getWindmillConnectionListItem(),
getAuth0ConnectionListItem()
].sort((a, b) => a.name.localeCompare(b.name));
};
@@@ -135,8 -135,7 +141,9 @@@ export const validateAppConnectionCrede
[AppConnection.Vercel]: validateVercelConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.TerraformCloud]: validateTerraformCloudConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.Auth0]: validateAuth0ConnectionCredentials as TAppConnectionCredentialsValidator,
+ [AppConnection.AzureClientSecrets]:
- validateAzureClientSecretsConnectionCredentials as TAppConnectionCredentialsValidator
++ validateAzureClientSecretsConnectionCredentials as TAppConnectionCredentialsValidator,
+ [AppConnection.Windmill]: validateWindmillConnectionCredentials as TAppConnectionCredentialsValidator
};
return VALIDATE_APP_CONNECTION_CREDENTIALS_MAP[appConnection.app](appConnection);
@@@ -213,6 -213,6 +222,7 @@@ export const TRANSITION_CONNECTION_CRED
[AppConnection.TerraformCloud]: platformManagedCredentialsNotSupported,
[AppConnection.Camunda]: platformManagedCredentialsNotSupported,
[AppConnection.Vercel]: platformManagedCredentialsNotSupported,
+ [AppConnection.AzureClientSecrets]: platformManagedCredentialsNotSupported,
+ [AppConnection.Windmill]: platformManagedCredentialsNotSupported,
[AppConnection.Auth0]: platformManagedCredentialsNotSupported
};
diff --cc backend/src/services/app-connection/app-connection-service.ts
index ce745e8baf,5293761a8a..e9f9cc52d5
--- a/backend/src/services/app-connection/app-connection-service.ts
+++ b/backend/src/services/app-connection/app-connection-service.ts
@@@ -73,7 -73,7 +75,8 @@@ const VALIDATE_APP_CONNECTION_CREDENTIA
[AppConnection.Postgres]: ValidatePostgresConnectionCredentialsSchema,
[AppConnection.MsSql]: ValidateMsSqlConnectionCredentialsSchema,
[AppConnection.Camunda]: ValidateCamundaConnectionCredentialsSchema,
+ [AppConnection.AzureClientSecrets]: ValidateAzureClientSecretsConnectionCredentialsSchema,
+ [AppConnection.Windmill]: ValidateWindmillConnectionCredentialsSchema,
[AppConnection.Auth0]: ValidateAuth0ConnectionCredentialsSchema
};
@@@ -449,7 -449,7 +452,8 @@@ export const appConnectionServiceFactor
terraformCloud: terraformCloudConnectionService(connectAppConnectionById),
camunda: camundaConnectionService(connectAppConnectionById, appConnectionDAL, kmsService),
vercel: vercelConnectionService(connectAppConnectionById),
- windmill: windmillConnectionService(connectAppConnectionById),
- auth0: auth0ConnectionService(connectAppConnectionById, appConnectionDAL, kmsService)
+ auth0: auth0ConnectionService(connectAppConnectionById, appConnectionDAL, kmsService),
- azureClientSecrets: azureClientSecretsConnectionService(connectAppConnectionById, appConnectionDAL, kmsService)
++ azureClientSecrets: azureClientSecretsConnectionService(connectAppConnectionById, appConnectionDAL, kmsService),
++ windmill: windmillConnectionService(connectAppConnectionById)
};
};
diff --cc backend/src/services/app-connection/app-connection-types.ts
index c9a671c40c,64d44ccc68..24c023dfb1
--- a/backend/src/services/app-connection/app-connection-types.ts
+++ b/backend/src/services/app-connection/app-connection-types.ts
@@@ -95,7 -95,7 +101,8 @@@ export type TAppConnection = { id: stri
| TPostgresConnection
| TMsSqlConnection
| TCamundaConnection
+ | TAzureClientSecretsConnection
+ | TWindmillConnection
| TAuth0Connection
);
@@@ -116,7 -116,7 +123,8 @@@ export type TAppConnectionInput = { id
| TPostgresConnectionInput
| TMsSqlConnectionInput
| TCamundaConnectionInput
+ | TAzureClientSecretsConnectionInput
+ | TWindmillConnectionInput
| TAuth0ConnectionInput
);
@@@ -140,10 -140,10 +148,11 @@@ export type TAppConnectionConfig
| TDatabricksConnectionConfig
| THumanitecConnectionConfig
| TTerraformCloudConnectionConfig
- | TVercelConnectionConfig
| TSqlConnectionConfig
| TCamundaConnectionConfig
+ | TAzureClientSecretsConnectionConfig
+ | TVercelConnectionConfig
+ | TWindmillConnectionConfig
| TAuth0ConnectionConfig;
export type TValidateAppConnectionCredentialsSchema =
@@@ -157,9 -157,9 +166,10 @@@
| TValidatePostgresConnectionCredentialsSchema
| TValidateMsSqlConnectionCredentialsSchema
| TValidateCamundaConnectionCredentialsSchema
- | TValidateTerraformCloudConnectionCredentialsSchema
| TValidateVercelConnectionCredentialsSchema
+ | TValidateTerraformCloudConnectionCredentialsSchema
+ | TValidateAzureClientSecretsConnectionCredentialsSchema
+ | TValidateWindmillConnectionCredentialsSchema
| TValidateAuth0ConnectionCredentialsSchema;
export type TListAwsConnectionKmsKeys = {
diff --cc frontend/src/hooks/api/appConnections/types/index.ts
index db60268154,29e82bff66..dc398d0ab9
--- a/frontend/src/hooks/api/appConnections/types/index.ts
+++ b/frontend/src/hooks/api/appConnections/types/index.ts
@@@ -84,6 -84,6 +87,7 @@@ export type TAppConnectionMap =
[AppConnection.Postgres]: TPostgresConnection;
[AppConnection.MsSql]: TMsSqlConnection;
[AppConnection.Camunda]: TCamundaConnection;
+ [AppConnection.AzureClientSecrets]: TAzureClientSecretsConnection;
+ [AppConnection.Windmill]: TWindmillConnection;
[AppConnection.Auth0]: TAuth0Connection;
};
diff --cc frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
index 7b424b2628,05a7eebbc1..f5a56ee422
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
@@@ -85,8 -85,8 +86,10 @@@ const CreateForm = ({ app, onComplete }
return <MsSqlConnectionForm onSubmit={onSubmit} />;
case AppConnection.Camunda:
return <CamundaConnectionForm onSubmit={onSubmit} />;
+ case AppConnection.AzureClientSecrets:
+ return <AzureClientSecretsConnectionForm />;
+ case AppConnection.Windmill:
+ return <WindmillConnectionForm onSubmit={onSubmit} />;
case AppConnection.Auth0:
return <Auth0ConnectionForm onSubmit={onSubmit} />;
default:
@@@ -149,8 -149,8 +152,10 @@@ const UpdateForm = ({ appConnection, on
return <MsSqlConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
case AppConnection.Camunda:
return <CamundaConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
+ case AppConnection.AzureClientSecrets:
+ return <AzureClientSecretsConnectionForm appConnection={appConnection} />;
+ case AppConnection.Windmill:
+ return <WindmillConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
case AppConnection.Auth0:
return <Auth0ConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
default: