Skip to content

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

Merge branch 'main' into feat/azureClientSecretsRotation

carlosmonastyrski511becabd836
diff --cc backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts
index d70b5bd522,3dcdac30bf..90edc13069
--- a/backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts
+++ b/backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts
@@@ -1,7 -1,8 +1,9 @@@
import { SecretRotation } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-enums";
import { registerAuth0ClientSecretRotationRouter } from "./auth0-client-secret-rotation-router";
+ import { registerAwsIamUserSecretRotationRouter } from "./aws-iam-user-secret-rotation-router";
+import { registerAzureClientSecretRotationRouter } from "./azure-client-secret-rotation-router";
+ import { registerLdapPasswordRotationRouter } from "./ldap-password-rotation-router";
import { registerMsSqlCredentialsRotationRouter } from "./mssql-credentials-rotation-router";
import { registerPostgresCredentialsRotationRouter } from "./postgres-credentials-rotation-router";
@@@ -14,5 -15,6 +16,7 @@@ export const SECRET_ROTATION_REGISTER_R
[SecretRotation.PostgresCredentials]: registerPostgresCredentialsRotationRouter,
[SecretRotation.MsSqlCredentials]: registerMsSqlCredentialsRotationRouter,
[SecretRotation.Auth0ClientSecret]: registerAuth0ClientSecretRotationRouter,
- [SecretRotation.AzureClientSecret]: registerAzureClientSecretRotationRouter
- [SecretRotation.LdapPassword]: registerLdapPasswordRotationRouter,
- [SecretRotation.AwsIamUserSecret]: registerAwsIamUserSecretRotationRouter
++ [SecretRotation.AzureClientSecret]: registerAzureClientSecretRotationRouter,
++ [SecretRotation.AwsIamUserSecret]: registerAwsIamUserSecretRotationRouter,
++ [SecretRotation.LdapPassword]: registerLdapPasswordRotationRouter
};
diff --cc backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-router.ts
index 8d28faa6e6,772f700357..298f2c412d
--- a/backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-router.ts
+++ b/backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-router.ts
@@@ -2,7 -2,8 +2,9 @@@ import { z } from "zod"
import { EventType } from "@app/ee/services/audit-log/audit-log-types";
import { Auth0ClientSecretRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/auth0-client-secret";
+ import { AwsIamUserSecretRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/aws-iam-user-secret";
+import { AzureClientSecretRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/azure-client-secret";
+ import { LdapPasswordRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/ldap-password";
import { MsSqlCredentialsRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/mssql-credentials";
import { PostgresCredentialsRotationListItemSchema } from "@app/ee/services/secret-rotation-v2/postgres-credentials";
import { SecretRotationV2Schema } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-union-schema";
@@@ -15,7 -16,8 +17,9 @@@ const SecretRotationV2OptionsSchema = z
PostgresCredentialsRotationListItemSchema,
MsSqlCredentialsRotationListItemSchema,
Auth0ClientSecretRotationListItemSchema,
- AzureClientSecretRotationListItemSchema
- LdapPasswordRotationListItemSchema,
- AwsIamUserSecretRotationListItemSchema
++ AzureClientSecretRotationListItemSchema,
++ AwsIamUserSecretRotationListItemSchema,
++ LdapPasswordRotationListItemSchema
]);
export const registerSecretRotationV2Router = async (server: FastifyZodProvider) => {
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-enums.ts
index 3a362f50b4,4ddf4ee0c6..d67abea2b1
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-enums.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-enums.ts
@@@ -2,7 -2,8 +2,9 @@@ export enum SecretRotation
PostgresCredentials = "postgres-credentials",
MsSqlCredentials = "mssql-credentials",
Auth0ClientSecret = "auth0-client-secret",
- AzureClientSecret = "azure-client-secret"
- LdapPassword = "ldap-password",
- AwsIamUserSecret = "aws-iam-user-secret"
++ AzureClientSecret = "azure-client-secret",
++ AwsIamUserSecret = "aws-iam-user-secret",
++ LdapPassword = "ldap-password"
}
export enum SecretRotationStatus {
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts
index f403796db9,23452d7d4b..5c0d97ee88
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts
@@@ -4,7 -4,8 +4,9 @@@ import { getConfig } from "@app/lib/con
import { KmsDataKey } from "@app/services/kms/kms-types";
import { AUTH0_CLIENT_SECRET_ROTATION_LIST_OPTION } from "./auth0-client-secret";
+ import { AWS_IAM_USER_SECRET_ROTATION_LIST_OPTION } from "./aws-iam-user-secret";
+import { AZURE_CLIENT_SECRET_ROTATION_LIST_OPTION } from "./azure-client-secret";
+ import { LDAP_PASSWORD_ROTATION_LIST_OPTION } from "./ldap-password";
import { MSSQL_CREDENTIALS_ROTATION_LIST_OPTION } from "./mssql-credentials";
import { POSTGRES_CREDENTIALS_ROTATION_LIST_OPTION } from "./postgres-credentials";
import { SecretRotation, SecretRotationStatus } from "./secret-rotation-v2-enums";
@@@ -20,7 -21,8 +22,9 @@@ const SECRET_ROTATION_LIST_OPTIONS: Rec
[SecretRotation.PostgresCredentials]: POSTGRES_CREDENTIALS_ROTATION_LIST_OPTION,
[SecretRotation.MsSqlCredentials]: MSSQL_CREDENTIALS_ROTATION_LIST_OPTION,
[SecretRotation.Auth0ClientSecret]: AUTH0_CLIENT_SECRET_ROTATION_LIST_OPTION,
- [SecretRotation.AzureClientSecret]: AZURE_CLIENT_SECRET_ROTATION_LIST_OPTION
- [SecretRotation.LdapPassword]: LDAP_PASSWORD_ROTATION_LIST_OPTION,
- [SecretRotation.AwsIamUserSecret]: AWS_IAM_USER_SECRET_ROTATION_LIST_OPTION
++ [SecretRotation.AzureClientSecret]: AZURE_CLIENT_SECRET_ROTATION_LIST_OPTION,
++ [SecretRotation.AwsIamUserSecret]: AWS_IAM_USER_SECRET_ROTATION_LIST_OPTION,
++ [SecretRotation.LdapPassword]: LDAP_PASSWORD_ROTATION_LIST_OPTION
};
export const listSecretRotationOptions = () => {
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-maps.ts
index 63eb5d6a36,134aaeafcb..f4ea755588
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-maps.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-maps.ts
@@@ -5,12 -5,14 +5,16 @@@ export const SECRET_ROTATION_NAME_MAP:
[SecretRotation.PostgresCredentials]: "PostgreSQL Credentials",
[SecretRotation.MsSqlCredentials]: "Microsoft SQL Server Credentials",
[SecretRotation.Auth0ClientSecret]: "Auth0 Client Secret",
- [SecretRotation.AzureClientSecret]: "Azure Client Secret"
- [SecretRotation.LdapPassword]: "LDAP Password",
- [SecretRotation.AwsIamUserSecret]: "AWS IAM User Secret"
++ [SecretRotation.AzureClientSecret]: "Azure Client Secret",
++ [SecretRotation.AwsIamUserSecret]: "AWS IAM User Secret",
++ [SecretRotation.LdapPassword]: "LDAP Password"
};
export const SECRET_ROTATION_CONNECTION_MAP: Record<SecretRotation, AppConnection> = {
[SecretRotation.PostgresCredentials]: AppConnection.Postgres,
[SecretRotation.MsSqlCredentials]: AppConnection.MsSql,
[SecretRotation.Auth0ClientSecret]: AppConnection.Auth0,
- [SecretRotation.AzureClientSecret]: AppConnection.AzureClientSecrets
- [SecretRotation.LdapPassword]: AppConnection.LDAP,
- [SecretRotation.AwsIamUserSecret]: AppConnection.AWS
++ [SecretRotation.AzureClientSecret]: AppConnection.AzureClientSecrets,
++ [SecretRotation.AwsIamUserSecret]: AppConnection.AWS,
++ [SecretRotation.LdapPassword]: AppConnection.LDAP
};
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts
index 26717765b7,70543c9b46..69743f1336
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts
@@@ -14,7 -14,7 +14,8 @@@ import
ProjectPermissionSub
} from "@app/ee/services/permission/project-permission";
import { auth0ClientSecretRotationFactory } from "@app/ee/services/secret-rotation-v2/auth0-client-secret/auth0-client-secret-rotation-fns";
+import { azureClientSecretRotationFactory } from "@app/ee/services/secret-rotation-v2/azure-client-secret/azure-client-secret-rotation-fns";
+ import { ldapPasswordRotationFactory } from "@app/ee/services/secret-rotation-v2/ldap-password/ldap-password-rotation-fns";
import { SecretRotation, SecretRotationStatus } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-enums";
import {
calculateNextRotationAt,
@@@ -116,7 -117,8 +118,9 @@@ const SECRET_ROTATION_FACTORY_MAP: Reco
[SecretRotation.PostgresCredentials]: sqlCredentialsRotationFactory as TRotationFactoryImplementation,
[SecretRotation.MsSqlCredentials]: sqlCredentialsRotationFactory as TRotationFactoryImplementation,
[SecretRotation.Auth0ClientSecret]: auth0ClientSecretRotationFactory as TRotationFactoryImplementation,
- [SecretRotation.AzureClientSecret]: azureClientSecretRotationFactory as TRotationFactoryImplementation
- [SecretRotation.LdapPassword]: ldapPasswordRotationFactory as TRotationFactoryImplementation,
- [SecretRotation.AwsIamUserSecret]: awsIamUserSecretRotationFactory as TRotationFactoryImplementation
++ [SecretRotation.AzureClientSecret]: azureClientSecretRotationFactory as TRotationFactoryImplementation,
++ [SecretRotation.AwsIamUserSecret]: awsIamUserSecretRotationFactory as TRotationFactoryImplementation,
++ [SecretRotation.LdapPassword]: ldapPasswordRotationFactory as TRotationFactoryImplementation
};
export const secretRotationV2ServiceFactory = ({
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-types.ts
index 03cd82ffb9,bd44d27781..ab715c4060
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-types.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-types.ts
@@@ -12,13 -12,20 +12,27 @@@ import
TAuth0ClientSecretRotationListItem,
TAuth0ClientSecretRotationWithConnection
} from "./auth0-client-secret";
+ import {
+ TAwsIamUserSecretRotation,
+ TAwsIamUserSecretRotationGeneratedCredentials,
+ TAwsIamUserSecretRotationInput,
+ TAwsIamUserSecretRotationListItem,
+ TAwsIamUserSecretRotationWithConnection
+ } from "./aws-iam-user-secret";
+import {
+ TAzureClientSecretRotation,
+ TAzureClientSecretRotationGeneratedCredentials,
+ TAzureClientSecretRotationInput,
+ TAzureClientSecretRotationListItem,
+ TAzureClientSecretRotationWithConnection
+} from "./azure-client-secret";
+ import {
+ TLdapPasswordRotation,
+ TLdapPasswordRotationGeneratedCredentials,
+ TLdapPasswordRotationInput,
+ TLdapPasswordRotationListItem,
+ TLdapPasswordRotationWithConnection
+ } from "./ldap-password";
import {
TMsSqlCredentialsRotation,
TMsSqlCredentialsRotationInput,
@@@ -38,30 -45,35 +52,40 @@@ export type TSecretRotationV2
| TPostgresCredentialsRotation
| TMsSqlCredentialsRotation
| TAuth0ClientSecretRotation
- | TAzureClientSecretRotation;
++ | TAzureClientSecretRotation
+ | TLdapPasswordRotation
+ | TAwsIamUserSecretRotation;
export type TSecretRotationV2WithConnection =
| TPostgresCredentialsRotationWithConnection
| TMsSqlCredentialsRotationWithConnection
| TAuth0ClientSecretRotationWithConnection
- | TAzureClientSecretRotationWithConnection;
++ | TAzureClientSecretRotationWithConnection
+ | TLdapPasswordRotationWithConnection
+ | TAwsIamUserSecretRotationWithConnection;
export type TSecretRotationV2GeneratedCredentials =
| TSqlCredentialsRotationGeneratedCredentials
| TAuth0ClientSecretRotationGeneratedCredentials
- | TAzureClientSecretRotationGeneratedCredentials;
++ | TAzureClientSecretRotationGeneratedCredentials
+ | TLdapPasswordRotationGeneratedCredentials
+ | TAwsIamUserSecretRotationGeneratedCredentials;
export type TSecretRotationV2Input =
| TPostgresCredentialsRotationInput
| TMsSqlCredentialsRotationInput
| TAuth0ClientSecretRotationInput
- | TAzureClientSecretRotationInput;
++ | TAzureClientSecretRotationInput
+ | TLdapPasswordRotationInput
+ | TAwsIamUserSecretRotationInput;
export type TSecretRotationV2ListItem =
| TPostgresCredentialsRotationListItem
| TMsSqlCredentialsRotationListItem
| TAuth0ClientSecretRotationListItem
- | TAzureClientSecretRotationListItem;
++ | TAzureClientSecretRotationListItem
+ | TLdapPasswordRotationListItem
+ | TAwsIamUserSecretRotationListItem;
export type TSecretRotationV2Raw = NonNullable<Awaited<ReturnType<TSecretRotationV2DALFactory["findById"]>>>;
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-union-schema.ts
index 08865f57fc,4d51a23c3c..f6fdafe1d1
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-union-schema.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-union-schema.ts
@@@ -1,7 -1,7 +1,8 @@@
import { z } from "zod";
import { Auth0ClientSecretRotationSchema } from "@app/ee/services/secret-rotation-v2/auth0-client-secret";
+import { AzureClientSecretRotationSchema } from "@app/ee/services/secret-rotation-v2/azure-client-secret";
+ import { LdapPasswordRotationSchema } from "@app/ee/services/secret-rotation-v2/ldap-password";
import { MsSqlCredentialsRotationSchema } from "@app/ee/services/secret-rotation-v2/mssql-credentials";
import { PostgresCredentialsRotationSchema } from "@app/ee/services/secret-rotation-v2/postgres-credentials";
@@@ -9,5 -11,6 +12,7 @@@ export const SecretRotationV2Schema = z
PostgresCredentialsRotationSchema,
MsSqlCredentialsRotationSchema,
Auth0ClientSecretRotationSchema,
- AzureClientSecretRotationSchema
++ AzureClientSecretRotationSchema,
+ LdapPasswordRotationSchema,
+ AwsIamUserSecretRotationSchema
]);
diff --cc backend/src/lib/api-docs/constants.ts
index e02df659d4,19ee7e331b..b8ea6bf7ed
--- a/backend/src/lib/api-docs/constants.ts
+++ b/backend/src/lib/api-docs/constants.ts
@@@ -2061,9 -2083,25 +2083,29 @@@ export const SecretRotations =
AUTH0_CLIENT_SECRET: {
clientId: "The client ID of the Auth0 Application to rotate the client secret for."
},
+ AZURE_CLIENT_SECRET: {
+ appId: "The ID of the Azure Application to rotate the client secret for.",
+ appName: "The name of the Azure Application to rotate the client secret for."
++ },
+ LDAP_PASSWORD: {
+ dn: "The Distinguished Name (DN) of the principal to rotate the password for."
+ },
+ GENERAL: {
+ PASSWORD_REQUIREMENTS: {
+ base: "The password requirements to use when generating the new password.",
+ length: "The length of the password to generate.",
+ required: {
+ digits: "The amount of digits to require in the generated password.",
+ lowercase: "The amount of lowercase characters to require in the generated password.",
+ uppercase: "The amount of uppercase characters to require in the generated password.",
+ symbols: "The amount of symbols to require in the generated password."
+ },
+ allowedSymbols: 'The allowed symbols to use in the generated password (defaults to "-_.~!*").'
+ }
+ },
+ AWS_IAM_USER_SECRET: {
+ userName: "The name of the client to rotate credentials for.",
+ region: "The AWS region the client is present in."
}
},
SECRETS_MAPPING: {
@@@ -2075,9 -2113,13 +2117,17 @@@
clientId: "The name of the secret that the client ID will be mapped to.",
clientSecret: "The name of the secret that the rotated client secret will be mapped to."
},
+ AZURE_CLIENT_SECRET: {
+ clientId: "The name of the secret that the client ID will be mapped to.",
+ clientSecret: "The name of the secret that the rotated client secret will be mapped to."
++ },
+ LDAP_PASSWORD: {
+ dn: "The name of the secret that the Distinguished Name (DN) of the principal will be mapped to.",
+ password: "The name of the secret that the rotated password will be mapped to."
+ },
+ AWS_IAM_USER_SECRET: {
+ accessKeyId: "The name of the secret that the access key ID will be mapped to.",
+ secretAccessKey: "The name of the secret that the rotated secret access key will be mapped to."
}
}
};
diff --cc backend/src/server/routes/v1/app-connection-routers/app-connection-router.ts
index 11ef049d2e,0b565f7d82..f6180b9b6d
--- 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
@@@ -62,9 -63,10 +67,11 @@@ const SanitizedAppConnectionSchema = z.
...SanitizedPostgresConnectionSchema.options,
...SanitizedMsSqlConnectionSchema.options,
...SanitizedCamundaConnectionSchema.options,
- ...SanitizedWindmillConnectionSchema.options,
...SanitizedAuth0ConnectionSchema.options,
+ ...SanitizedAzureClientSecretsConnectionSchema.options,
- ...SanitizedWindmillConnectionSchema.options
++ ...SanitizedWindmillConnectionSchema.options,
+ ...SanitizedLdapConnectionSchema.options,
+ ...SanitizedTeamCityConnectionSchema.options
]);
const AppConnectionOptionsSchema = z.discriminatedUnion("app", [
@@@ -80,9 -82,10 +87,11 @@@
PostgresConnectionListItemSchema,
MsSqlConnectionListItemSchema,
CamundaConnectionListItemSchema,
- WindmillConnectionListItemSchema,
Auth0ConnectionListItemSchema,
+ AzureClientSecretsConnectionListItemSchema,
- WindmillConnectionListItemSchema
++ WindmillConnectionListItemSchema,
+ LdapConnectionListItemSchema,
+ TeamCityConnectionListItemSchema
]);
export const registerAppConnectionRouter = async (server: FastifyZodProvider) => {
diff --cc backend/src/server/routes/v1/app-connection-routers/index.ts
index 179326cca4,c2398fd78a..194f322908
--- a/backend/src/server/routes/v1/app-connection-routers/index.ts
+++ b/backend/src/server/routes/v1/app-connection-routers/index.ts
@@@ -1,9 -1,8 +1,9 @@@
- import { registerAuth0ConnectionRouter } from "@app/server/routes/v1/app-connection-routers/auth0-connection-router";
import { AppConnection } from "@app/services/app-connection/app-connection-enums";
+ import { registerAuth0ConnectionRouter } from "./auth0-connection-router";
import { registerAwsConnectionRouter } from "./aws-connection-router";
import { registerAzureAppConfigurationConnectionRouter } from "./azure-app-configuration-connection-router";
+import { registerAzureClientSecretsConnectionRouter } from "./azure-client-secrets-connection-router";
import { registerAzureKeyVaultConnectionRouter } from "./azure-key-vault-connection-router";
import { registerCamundaConnectionRouter } from "./camunda-connection-router";
import { registerDatabricksConnectionRouter } from "./databricks-connection-router";
diff --cc backend/src/services/app-connection/app-connection-fns.ts
index 622c8a2bc3,92595619c9..3b020fb06a
--- a/backend/src/services/app-connection/app-connection-fns.ts
+++ b/backend/src/services/app-connection/app-connection-fns.ts
@@@ -75,9 -76,10 +81,11 @@@ export const listAppConnectionOptions
getPostgresConnectionListItem(),
getMsSqlConnectionListItem(),
getCamundaConnectionListItem(),
+ getAzureClientSecretsConnectionListItem(),
getWindmillConnectionListItem(),
- getAuth0ConnectionListItem()
+ getAuth0ConnectionListItem(),
+ getLdapConnectionListItem(),
+ getTeamCityConnectionListItem()
].sort((a, b) => a.name.localeCompare(b.name));
};
@@@ -222,7 -226,8 +235,9 @@@ export const TRANSITION_CONNECTION_CRED
[AppConnection.TerraformCloud]: platformManagedCredentialsNotSupported,
[AppConnection.Camunda]: platformManagedCredentialsNotSupported,
[AppConnection.Vercel]: platformManagedCredentialsNotSupported,
+ [AppConnection.AzureClientSecrets]: platformManagedCredentialsNotSupported,
[AppConnection.Windmill]: platformManagedCredentialsNotSupported,
- [AppConnection.Auth0]: platformManagedCredentialsNotSupported
+ [AppConnection.Auth0]: platformManagedCredentialsNotSupported,
+ [AppConnection.LDAP]: platformManagedCredentialsNotSupported, // we could support this in the future
+ [AppConnection.TeamCity]: platformManagedCredentialsNotSupported
};
diff --cc backend/src/services/app-connection/app-connection-service.ts
index a38f02768e,e872c07e41..9669de0c86
--- a/backend/src/services/app-connection/app-connection-service.ts
+++ b/backend/src/services/app-connection/app-connection-service.ts
@@@ -75,9 -76,10 +78,11 @@@ const VALIDATE_APP_CONNECTION_CREDENTIA
[AppConnection.Postgres]: ValidatePostgresConnectionCredentialsSchema,
[AppConnection.MsSql]: ValidateMsSqlConnectionCredentialsSchema,
[AppConnection.Camunda]: ValidateCamundaConnectionCredentialsSchema,
+ [AppConnection.AzureClientSecrets]: ValidateAzureClientSecretsConnectionCredentialsSchema,
[AppConnection.Windmill]: ValidateWindmillConnectionCredentialsSchema,
- [AppConnection.Auth0]: ValidateAuth0ConnectionCredentialsSchema
+ [AppConnection.Auth0]: ValidateAuth0ConnectionCredentialsSchema,
+ [AppConnection.LDAP]: ValidateLdapConnectionCredentialsSchema,
+ [AppConnection.TeamCity]: ValidateTeamCityConnectionCredentialsSchema
};
export const appConnectionServiceFactory = ({
@@@ -452,8 -454,8 +457,9 @@@
terraformCloud: terraformCloudConnectionService(connectAppConnectionById),
camunda: camundaConnectionService(connectAppConnectionById, appConnectionDAL, kmsService),
vercel: vercelConnectionService(connectAppConnectionById),
- windmill: windmillConnectionService(connectAppConnectionById),
+ azureClientSecrets: azureClientSecretsConnectionService(connectAppConnectionById, appConnectionDAL, kmsService),
auth0: auth0ConnectionService(connectAppConnectionById, appConnectionDAL, kmsService),
- windmill: windmillConnectionService(connectAppConnectionById)
++ windmill: windmillConnectionService(connectAppConnectionById),
+ teamcity: teamcityConnectionService(connectAppConnectionById)
};
};
diff --cc backend/src/services/app-connection/app-connection-types.ts
index bff4caf33c,c7a78fbb63..986c670444
--- a/backend/src/services/app-connection/app-connection-types.ts
+++ b/backend/src/services/app-connection/app-connection-types.ts
@@@ -101,9 -107,10 +113,11 @@@ export type TAppConnection = { id: stri
| TPostgresConnection
| TMsSqlConnection
| TCamundaConnection
+ | TAzureClientSecretsConnection
| TWindmillConnection
| TAuth0Connection
+ | TLdapConnection
+ | TTeamCityConnection
);
export type TAppConnectionRaw = NonNullable<Awaited<ReturnType<TAppConnectionDALFactory["findById"]>>>;
@@@ -123,9 -130,10 +137,11 @@@ export type TAppConnectionInput = { id
| TPostgresConnectionInput
| TMsSqlConnectionInput
| TCamundaConnectionInput
+ | TAzureClientSecretsConnectionInput
| TWindmillConnectionInput
| TAuth0ConnectionInput
+ | TLdapConnectionInput
+ | TTeamCityConnectionInput
);
export type TSqlConnectionInput = TPostgresConnectionInput | TMsSqlConnectionInput;
@@@ -149,11 -156,13 +165,13 @@@ export type TAppConnectionConfig
| TDatabricksConnectionConfig
| THumanitecConnectionConfig
| TTerraformCloudConnectionConfig
- | TVercelConnectionConfig
| TSqlConnectionConfig
| TCamundaConnectionConfig
+ | TVercelConnectionConfig
| TWindmillConnectionConfig
- | TAuth0ConnectionConfig;
+ | TAuth0ConnectionConfig
+ | TLdapConnectionConfig
+ | TTeamCityConnectionConfig;
export type TValidateAppConnectionCredentialsSchema =
| TValidateAwsConnectionCredentialsSchema
@@@ -167,10 -175,12 +185,12 @@@
| TValidatePostgresConnectionCredentialsSchema
| TValidateMsSqlConnectionCredentialsSchema
| TValidateCamundaConnectionCredentialsSchema
- | TValidateTerraformCloudConnectionCredentialsSchema
| TValidateVercelConnectionCredentialsSchema
+ | TValidateTerraformCloudConnectionCredentialsSchema
| TValidateWindmillConnectionCredentialsSchema
- | TValidateAuth0ConnectionCredentialsSchema;
+ | TValidateAuth0ConnectionCredentialsSchema
+ | TValidateLdapConnectionCredentialsSchema
+ | TValidateTeamCityConnectionCredentialsSchema;
export type TListAwsConnectionKmsKeys = {
connectionId: string;
diff --cc docs/mint.json
index b5523747f4,63eb41ddb2..9753d6a68c
--- a/docs/mint.json
+++ b/docs/mint.json
@@@ -179,9 -180,10 +180,13 @@@
"pages": [
"documentation/platform/secret-rotation/overview",
"documentation/platform/secret-rotation/auth0-client-secret",
+ "documentation/platform/secret-rotation/azure-client-secret",
+ "documentation/platform/secret-rotation/postgres-credentials",
- "documentation/platform/secret-rotation/mssql-credentials"
++ "documentation/platform/secret-rotation/mssql-credentials",
+ "documentation/platform/secret-rotation/aws-iam-user-secret",
+ "documentation/platform/secret-rotation/ldap-password",
+ "documentation/platform/secret-rotation/mssql-credentials",
+ "documentation/platform/secret-rotation/postgres-credentials"
]
},
{
@@@ -871,19 -874,32 +878,45 @@@
"api-reference/endpoints/secret-rotations/auth0-client-secret/update"
]
},
+ {
+ "group": "Azure Client Secret",
+ "pages": [
+ "api-reference/endpoints/secret-rotations/azure-client-secret/create",
+ "api-reference/endpoints/secret-rotations/azure-client-secret/delete",
+ "api-reference/endpoints/secret-rotations/azure-client-secret/get-by-id",
+ "api-reference/endpoints/secret-rotations/azure-client-secret/get-by-name",
+ "api-reference/endpoints/secret-rotations/azure-client-secret/get-generated-credentials-by-id",
+ "api-reference/endpoints/secret-rotations/azure-client-secret/list",
+ "api-reference/endpoints/secret-rotations/azure-client-secret/rotate-secrets",
+ "api-reference/endpoints/secret-rotations/azure-client-secret/update"
+ ]
+ },
+ {
+ "group": "AWS IAM User Secret",
+ "pages": [
+ "api-reference/endpoints/secret-rotations/aws-iam-user-secret/create",
+ "api-reference/endpoints/secret-rotations/aws-iam-user-secret/delete",
+ "api-reference/endpoints/secret-rotations/aws-iam-user-secret/get-by-id",
+ "api-reference/endpoints/secret-rotations/aws-iam-user-secret/get-by-name",
+ "api-reference/endpoints/secret-rotations/aws-iam-user-secret/get-generated-credentials-by-id",
+ "api-reference/endpoints/secret-rotations/aws-iam-user-secret/list",
+ "api-reference/endpoints/secret-rotations/aws-iam-user-secret/rotate-secrets",
+ "api-reference/endpoints/secret-rotations/aws-iam-user-secret/update"
+ ]
+ },
+ {
+ "group": "LDAP Password",
+ "pages": [
+ "api-reference/endpoints/secret-rotations/ldap-password/create",
+ "api-reference/endpoints/secret-rotations/ldap-password/delete",
+ "api-reference/endpoints/secret-rotations/ldap-password/get-by-id",
+ "api-reference/endpoints/secret-rotations/ldap-password/get-by-name",
+ "api-reference/endpoints/secret-rotations/ldap-password/get-generated-credentials-by-id",
+ "api-reference/endpoints/secret-rotations/ldap-password/list",
+ "api-reference/endpoints/secret-rotations/ldap-password/rotate-secrets",
+ "api-reference/endpoints/secret-rotations/ldap-password/update"
+ ]
+ },
{
"group": "Microsoft SQL Server Credentials",
"pages": [
diff --cc frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
index bc69ec20b9,d5af51eefc..a8a00e17f6
--- a/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
+++ b/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
@@@ -4,9 -4,15 +4,16 @@@ import { FontAwesomeIcon } from "@forta
import { format } from "date-fns";
import { ViewAuth0ClientSecretRotationGeneratedCredentials } from "@app/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewAuth0ClientSecretRotationGeneratedCredentials";
+import { ViewAzureClientSecretRotationGeneratedCredentials } from "@app/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewAzureClientSecretRotationGeneratedCredentials";
+ import { ViewLdapPasswordRotationGeneratedCredentials } from "@app/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewLdapPasswordRotationGeneratedCredentials";
import { Modal, ModalContent, Spinner } from "@app/components/v2";
- import { SECRET_ROTATION_MAP } from "@app/helpers/secretRotationsV2";
+ import { NoticeBannerV2 } from "@app/components/v2/NoticeBannerV2/NoticeBannerV2";
+ import { APP_CONNECTION_MAP } from "@app/helpers/appConnections";
+ import {
+ IS_ROTATION_DUAL_CREDENTIALS,
+ SECRET_ROTATION_CONNECTION_MAP,
+ SECRET_ROTATION_MAP
+ } from "@app/helpers/secretRotationsV2";
import {
SecretRotation,
TSecretRotationV2,
@@@ -68,13 -75,20 +76,27 @@@ const Content = ({ secretRotation }: Co
/>
);
break;
+ case SecretRotation.AzureClientSecret:
+ Component = (
+ <ViewAzureClientSecretRotationGeneratedCredentials
+ generatedCredentialsResponse={generatedCredentialsResponse}
+ />
+ );
+ break;
+ case SecretRotation.LdapPassword:
+ Component = (
+ <ViewLdapPasswordRotationGeneratedCredentials
+ generatedCredentialsResponse={generatedCredentialsResponse}
+ />
+ );
+ break;
+ case SecretRotation.AwsIamUserSecret:
+ Component = (
+ <ViewAwsIamUserSecretRotationGeneratedCredentials
+ generatedCredentialsResponse={generatedCredentialsResponse}
+ />
+ );
+ break;
default:
throw new Error("Unhandled View Generated Credential Rotation Type");
}
diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsx
index fc33de2bbd,cdbf631113..a871eb54f0
--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsx
+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SecretRotationV2ParametersFields.tsx
@@@ -4,14 -4,16 +4,18 @@@ import { SecretRotation } from "@app/ho
import { TSecretRotationV2Form } from "../schemas";
import { Auth0ClientSecretRotationParametersFields } from "./Auth0ClientSecretRotationParametersFields";
+ import { AwsIamUserSecretRotationParametersFields } from "./AwsIamUserSecretRotationParametersFields";
+import { AzureClientSecretRotationParametersFields } from "./AzureClientSecretRotationParametersFields";
+ import { LdapPasswordRotationParametersFields } from "./LdapPasswordRotationParametersFields";
import { SqlCredentialsRotationParametersFields } from "./shared";
const COMPONENT_MAP: Record<SecretRotation, React.FC> = {
[SecretRotation.PostgresCredentials]: SqlCredentialsRotationParametersFields,
[SecretRotation.MsSqlCredentials]: SqlCredentialsRotationParametersFields,
[SecretRotation.Auth0ClientSecret]: Auth0ClientSecretRotationParametersFields,
- [SecretRotation.AzureClientSecret]: AzureClientSecretRotationParametersFields
++ [SecretRotation.AzureClientSecret]: AzureClientSecretRotationParametersFields,
+ [SecretRotation.LdapPassword]: LdapPasswordRotationParametersFields,
+ [SecretRotation.AwsIamUserSecret]: AwsIamUserSecretRotationParametersFields
};
export const SecretRotationV2ParametersFields = () => {
diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx
index 60bdd32fe1,23ee25d7f7..2bfdc16fdf
--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx
+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx
@@@ -7,14 -7,16 +7,18 @@@ import { getRotateAtLocal } from "@app/
import { SecretRotation } from "@app/hooks/api/secretRotationsV2";
import { Auth0ClientSecretRotationReviewFields } from "./Auth0ClientSecretRotationReviewFields";
+ import { AwsIamUserSecretRotationReviewFields } from "./AwsIamUserSecretRotationReviewFields";
+import { AzureClientSecretRotationReviewFields } from "./AzureClientSecretRotationReviewFields";
+ import { LdapPasswordRotationReviewFields } from "./LdapPasswordRotationReviewFields";
import { SqlCredentialsRotationReviewFields } from "./shared";
const COMPONENT_MAP: Record<SecretRotation, React.FC> = {
[SecretRotation.PostgresCredentials]: SqlCredentialsRotationReviewFields,
[SecretRotation.MsSqlCredentials]: SqlCredentialsRotationReviewFields,
[SecretRotation.Auth0ClientSecret]: Auth0ClientSecretRotationReviewFields,
- [SecretRotation.AzureClientSecret]: AzureClientSecretRotationReviewFields
++ [SecretRotation.AzureClientSecret]: AzureClientSecretRotationReviewFields,
+ [SecretRotation.LdapPassword]: LdapPasswordRotationReviewFields,
+ [SecretRotation.AwsIamUserSecret]: AwsIamUserSecretRotationReviewFields
};
export const SecretRotationV2ReviewFields = () => {
diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx
index 0c2213557f,16bffe6cf6..9da51272bb
--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx
+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx
@@@ -4,14 -4,16 +4,18 @@@ import { SecretRotation } from "@app/ho
import { TSecretRotationV2Form } from "../schemas";
import { Auth0ClientSecretRotationSecretsMappingFields } from "./Auth0ClientSecretRotationSecretsMappingFields";
+ import { AwsIamUserSecretRotationSecretsMappingFields } from "./AwsIamUserSecretRotationSecretsMappingFields";
+import { AzureClientSecretRotationSecretsMappingFields } from "./AzureClientSecretRotationSecretsMappingFields";
+ import { LdapPasswordRotationSecretsMappingFields } from "./LdapPasswordRotationSecretsMappingFields";
import { SqlCredentialsRotationSecretsMappingFields } from "./shared";
const COMPONENT_MAP: Record<SecretRotation, React.FC> = {
[SecretRotation.PostgresCredentials]: SqlCredentialsRotationSecretsMappingFields,
[SecretRotation.MsSqlCredentials]: SqlCredentialsRotationSecretsMappingFields,
[SecretRotation.Auth0ClientSecret]: Auth0ClientSecretRotationSecretsMappingFields,
- [SecretRotation.AzureClientSecret]: AzureClientSecretRotationSecretsMappingFields
++ [SecretRotation.AzureClientSecret]: AzureClientSecretRotationSecretsMappingFields,
+ [SecretRotation.LdapPassword]: LdapPasswordRotationSecretsMappingFields,
+ [SecretRotation.AwsIamUserSecret]: AwsIamUserSecretRotationSecretsMappingFields
};
export const SecretRotationV2SecretsMappingFields = () => {
diff --cc frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
index 794377810d,6dd65b0bb0..b0484ae679
--- a/frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
+++ b/frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
@@@ -1,15 -1,17 +1,19 @@@
import { z } from "zod";
import { Auth0ClientSecretRotationSchema } from "@app/components/secret-rotations-v2/forms/schemas/auth0-client-secret-rotation-schema";
+ import { AwsIamUserSecretRotationSchema } from "@app/components/secret-rotations-v2/forms/schemas/aws-iam-user-secret-rotation-schema";
+import { AzureClientSecretRotationSchema } from "@app/components/secret-rotations-v2/forms/schemas/azure-client-secret-rotation-schema";
+ import { LdapPasswordRotationSchema } from "@app/components/secret-rotations-v2/forms/schemas/ldap-password-rotation-schema";
import { MsSqlCredentialsRotationSchema } from "@app/components/secret-rotations-v2/forms/schemas/mssql-credentials-rotation-schema";
import { PostgresCredentialsRotationSchema } from "@app/components/secret-rotations-v2/forms/schemas/postgres-credentials-rotation-schema";
const SecretRotationUnionSchema = z.discriminatedUnion("type", [
+ Auth0ClientSecretRotationSchema,
+ AzureClientSecretRotationSchema,
PostgresCredentialsRotationSchema,
- MsSqlCredentialsRotationSchema
+ MsSqlCredentialsRotationSchema,
- Auth0ClientSecretRotationSchema,
+ LdapPasswordRotationSchema,
+ AwsIamUserSecretRotationSchema
]);
export const SecretRotationV2FormSchema = SecretRotationUnionSchema;
diff --cc frontend/src/helpers/secretRotationsV2.ts
index 3a6abbb5b4,8acfaafe55..fd96e5a830
--- a/frontend/src/helpers/secretRotationsV2.ts
+++ b/frontend/src/helpers/secretRotationsV2.ts
@@@ -20,10 -20,15 +20,20 @@@ export const SECRET_ROTATION_MAP: Recor
image: "Auth0.png",
size: 35
},
+ [SecretRotation.AzureClientSecret]: {
+ name: "Azure Client Secret",
+ image: "Microsoft Azure.png",
+ size: 35
++ },
+ [SecretRotation.LdapPassword]: {
+ name: "LDAP Password",
+ image: "LDAP.png",
+ size: 65
+ },
+ [SecretRotation.AwsIamUserSecret]: {
+ name: "AWS IAM User Secret",
+ image: "Amazon Web Services.png",
+ size: 50
}
};
@@@ -31,7 -36,8 +41,9 @@@ export const SECRET_ROTATION_CONNECTION
[SecretRotation.PostgresCredentials]: AppConnection.Postgres,
[SecretRotation.MsSqlCredentials]: AppConnection.MsSql,
[SecretRotation.Auth0ClientSecret]: AppConnection.Auth0,
- [SecretRotation.AzureClientSecret]: AppConnection.AzureClientSecrets
++ [SecretRotation.AzureClientSecret]: AppConnection.AzureClientSecrets,
+ [SecretRotation.LdapPassword]: AppConnection.LDAP,
+ [SecretRotation.AwsIamUserSecret]: AppConnection.AWS
};
// if a rotation can potentially have downtime due to rotating a single credential set this to false
@@@ -39,7 -45,8 +51,9 @@@ export const IS_ROTATION_DUAL_CREDENTIA
[SecretRotation.PostgresCredentials]: true,
[SecretRotation.MsSqlCredentials]: true,
[SecretRotation.Auth0ClientSecret]: false,
- [SecretRotation.AzureClientSecret]: true
++ [SecretRotation.AzureClientSecret]: true,
+ [SecretRotation.LdapPassword]: false,
+ [SecretRotation.AwsIamUserSecret]: true
};
export const getRotateAtLocal = ({ hours, minutes }: TSecretRotationV2["rotateAtUtc"]) => {
diff --cc frontend/src/hooks/api/secretRotationsV2/enums.ts
index 3a362f50b4,4ddf4ee0c6..3b38c1d496
--- a/frontend/src/hooks/api/secretRotationsV2/enums.ts
+++ b/frontend/src/hooks/api/secretRotationsV2/enums.ts
@@@ -2,7 -2,8 +2,9 @@@ export enum SecretRotation
PostgresCredentials = "postgres-credentials",
MsSqlCredentials = "mssql-credentials",
Auth0ClientSecret = "auth0-client-secret",
- AzureClientSecret = "azure-client-secret"
++ AzureClientSecret = "azure-client-secret",
+ LdapPassword = "ldap-password",
+ AwsIamUserSecret = "aws-iam-user-secret"
}
export enum SecretRotationStatus {
diff --cc frontend/src/hooks/api/secretRotationsV2/types/index.ts
index 4a4d9fc757,4119efc15a..a1ef0bd15d
--- a/frontend/src/hooks/api/secretRotationsV2/types/index.ts
+++ b/frontend/src/hooks/api/secretRotationsV2/types/index.ts
@@@ -4,11 -4,16 +4,21 @@@ import
TAuth0ClientSecretRotationGeneratedCredentialsResponse,
TAuth0ClientSecretRotationOption
} from "@app/hooks/api/secretRotationsV2/types/auth0-client-secret-rotation";
+ import {
+ TAwsIamUserSecretRotation,
+ TAwsIamUserSecretRotationGeneratedCredentialsResponse,
+ TAwsIamUserSecretRotationOption
+ } from "@app/hooks/api/secretRotationsV2/types/aws-iam-user-secret-rotation";
+import {
+ TAzureClientSecretRotation,
+ TAzureClientSecretRotationGeneratedCredentialsResponse,
+ TAzureClientSecretRotationOption
+} from "@app/hooks/api/secretRotationsV2/types/azure-client-secret-rotation";
+ import {
+ TLdapPasswordRotation,
+ TLdapPasswordRotationGeneratedCredentialsResponse,
+ TLdapPasswordRotationOption
+ } from "@app/hooks/api/secretRotationsV2/types/ldap-password-rotation";
import {
TMsSqlCredentialsRotation,
TMsSqlCredentialsRotationGeneratedCredentialsResponse
@@@ -25,7 -30,8 +35,9 @@@ export type TSecretRotationV2 =
| TPostgresCredentialsRotation
| TMsSqlCredentialsRotation
| TAuth0ClientSecretRotation
+ | TAzureClientSecretRotation
+ | TLdapPasswordRotation
+ | TAwsIamUserSecretRotation
) & {
secrets: (SecretV3RawSanitized | null)[];
};
@@@ -33,7 -39,8 +45,9 @@@
export type TSecretRotationV2Option =
| TSqlCredentialsRotationOption
| TAuth0ClientSecretRotationOption
- | TAzureClientSecretRotationOption;
++ | TAzureClientSecretRotationOption
+ | TLdapPasswordRotationOption
+ | TAwsIamUserSecretRotationOption;
export type TListSecretRotationV2Options = { secretRotationOptions: TSecretRotationV2Option[] };
@@@ -43,7 -50,8 +57,9 @@@ export type TViewSecretRotationGenerate
| TPostgresCredentialsRotationGeneratedCredentialsResponse
| TMsSqlCredentialsRotationGeneratedCredentialsResponse
| TAuth0ClientSecretRotationGeneratedCredentialsResponse
- | TAzureClientSecretRotationGeneratedCredentialsResponse;
++ | TAzureClientSecretRotationGeneratedCredentialsResponse
+ | TLdapPasswordRotationGeneratedCredentialsResponse
+ | TAwsIamUserSecretRotationGeneratedCredentialsResponse;
export type TCreateSecretRotationV2DTO = DiscriminativePick<
TSecretRotationV2,
@@@ -90,12 -98,14 +106,16 @@@ export type TSecretRotationOptionMap =
[SecretRotation.PostgresCredentials]: TSqlCredentialsRotationOption;
[SecretRotation.MsSqlCredentials]: TSqlCredentialsRotationOption;
[SecretRotation.Auth0ClientSecret]: TAuth0ClientSecretRotationOption;
+ [SecretRotation.AzureClientSecret]: TAzureClientSecretRotationOption;
+ [SecretRotation.LdapPassword]: TLdapPasswordRotationOption;
+ [SecretRotation.AwsIamUserSecret]: TAwsIamUserSecretRotationOption;
};
export type TSecretRotationGeneratedCredentialsResponseMap = {
[SecretRotation.PostgresCredentials]: TPostgresCredentialsRotationGeneratedCredentialsResponse;
[SecretRotation.MsSqlCredentials]: TMsSqlCredentialsRotationGeneratedCredentialsResponse;
[SecretRotation.Auth0ClientSecret]: TAuth0ClientSecretRotationGeneratedCredentialsResponse;
+ [SecretRotation.AzureClientSecret]: TAzureClientSecretRotationGeneratedCredentialsResponse;
+ [SecretRotation.LdapPassword]: TLdapPasswordRotationGeneratedCredentialsResponse;
+ [SecretRotation.AwsIamUserSecret]: TAwsIamUserSecretRotationGeneratedCredentialsResponse;
};