Skip to content

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

deconflict merge

Scott Wilsona524690d0136
diff --cc backend/src/ee/routes/v2/secret-rotation-v2-routers/index.ts
index a151d5837a,7fee081642..3dcdac30bf
--- 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,7 +1,8 @@@
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 { registerLdapPasswordRotationRouter } from "./ldap-password-rotation-router";
import { registerMsSqlCredentialsRotationRouter } from "./mssql-credentials-rotation-router";
import { registerPostgresCredentialsRotationRouter } from "./postgres-credentials-rotation-router";
@@@ -14,5 -14,5 +15,6 @@@ export const SECRET_ROTATION_REGISTER_R
[SecretRotation.PostgresCredentials]: registerPostgresCredentialsRotationRouter,
[SecretRotation.MsSqlCredentials]: registerMsSqlCredentialsRotationRouter,
[SecretRotation.Auth0ClientSecret]: registerAuth0ClientSecretRotationRouter,
- [SecretRotation.LdapPassword]: registerLdapPasswordRotationRouter
++ [SecretRotation.LdapPassword]: registerLdapPasswordRotationRouter,
+ [SecretRotation.AwsIamUserSecret]: registerAwsIamUserSecretRotationRouter
};
diff --cc backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-router.ts
index 8e21ebe0a1,2383d98e2d..772f700357
--- 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,7 +2,8 @@@ 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 { 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 -15,7 +16,8 @@@ const SecretRotationV2OptionsSchema = z
PostgresCredentialsRotationListItemSchema,
MsSqlCredentialsRotationListItemSchema,
Auth0ClientSecretRotationListItemSchema,
- LdapPasswordRotationListItemSchema
++ LdapPasswordRotationListItemSchema,
+ AwsIamUserSecretRotationListItemSchema
]);
export const registerSecretRotationV2Router = async (server: FastifyZodProvider) => {
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-enums.ts
index a094af6357,1e387a3b91..4ddf4ee0c6
--- 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,7 +2,8 @@@ export enum SecretRotation
PostgresCredentials = "postgres-credentials",
MsSqlCredentials = "mssql-credentials",
Auth0ClientSecret = "auth0-client-secret",
- LdapPassword = "ldap-password"
++ LdapPassword = "ldap-password",
+ AwsIamUserSecret = "aws-iam-user-secret"
}
export enum SecretRotationStatus {
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-fns.ts
index b1b0e4231e,87115e7f4c..23452d7d4b
--- 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,7 +4,8 @@@ 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 { 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 -20,7 +21,8 @@@ 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.LdapPassword]: LDAP_PASSWORD_ROTATION_LIST_OPTION
++ [SecretRotation.LdapPassword]: LDAP_PASSWORD_ROTATION_LIST_OPTION,
+ [SecretRotation.AwsIamUserSecret]: AWS_IAM_USER_SECRET_ROTATION_LIST_OPTION
};
export const listSecretRotationOptions = () => {
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-maps.ts
index 0b9fc29f07,9af78e19a6..134aaeafcb
--- 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,12 +5,14 @@@ export const SECRET_ROTATION_NAME_MAP:
[SecretRotation.PostgresCredentials]: "PostgreSQL Credentials",
[SecretRotation.MsSqlCredentials]: "Microsoft SQL Server Credentials",
[SecretRotation.Auth0ClientSecret]: "Auth0 Client Secret",
- [SecretRotation.LdapPassword]: "LDAP Password"
++ [SecretRotation.LdapPassword]: "LDAP Password",
+ [SecretRotation.AwsIamUserSecret]: "AWS IAM User Secret"
};
export const SECRET_ROTATION_CONNECTION_MAP: Record<SecretRotation, AppConnection> = {
[SecretRotation.PostgresCredentials]: AppConnection.Postgres,
[SecretRotation.MsSqlCredentials]: AppConnection.MsSql,
[SecretRotation.Auth0ClientSecret]: AppConnection.Auth0,
- [SecretRotation.LdapPassword]: AppConnection.LDAP
++ [SecretRotation.LdapPassword]: AppConnection.LDAP,
+ [SecretRotation.AwsIamUserSecret]: AppConnection.AWS
};
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-service.ts
index 94d23e385e,60094be97e..70543c9b46
--- 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
@@@ -116,7 -116,7 +117,8 @@@ const SECRET_ROTATION_FACTORY_MAP: Reco
[SecretRotation.PostgresCredentials]: sqlCredentialsRotationFactory as TRotationFactoryImplementation,
[SecretRotation.MsSqlCredentials]: sqlCredentialsRotationFactory as TRotationFactoryImplementation,
[SecretRotation.Auth0ClientSecret]: auth0ClientSecretRotationFactory as TRotationFactoryImplementation,
- [SecretRotation.LdapPassword]: ldapPasswordRotationFactory as TRotationFactoryImplementation
++ [SecretRotation.LdapPassword]: ldapPasswordRotationFactory as TRotationFactoryImplementation,
+ [SecretRotation.AwsIamUserSecret]: awsIamUserSecretRotationFactory as TRotationFactoryImplementation
};
export const secretRotationV2ServiceFactory = ({
diff --cc backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-types.ts
index 340c828862,85fa68d4fe..bd44d27781
--- 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,13 +12,20 @@@ import
TAuth0ClientSecretRotationListItem,
TAuth0ClientSecretRotationWithConnection
} from "./auth0-client-secret";
+ import {
+ TAwsIamUserSecretRotation,
+ TAwsIamUserSecretRotationGeneratedCredentials,
+ TAwsIamUserSecretRotationInput,
+ TAwsIamUserSecretRotationListItem,
+ TAwsIamUserSecretRotationWithConnection
+ } from "./aws-iam-user-secret";
+import {
+ TLdapPasswordRotation,
+ TLdapPasswordRotationGeneratedCredentials,
+ TLdapPasswordRotationInput,
+ TLdapPasswordRotationListItem,
+ TLdapPasswordRotationWithConnection
+} from "./ldap-password";
import {
TMsSqlCredentialsRotation,
TMsSqlCredentialsRotationInput,
@@@ -38,30 -38,30 +45,35 @@@ export type TSecretRotationV2
| TPostgresCredentialsRotation
| TMsSqlCredentialsRotation
| TAuth0ClientSecretRotation
- | TLdapPasswordRotation;
++ | TLdapPasswordRotation
+ | TAwsIamUserSecretRotation;
export type TSecretRotationV2WithConnection =
| TPostgresCredentialsRotationWithConnection
| TMsSqlCredentialsRotationWithConnection
| TAuth0ClientSecretRotationWithConnection
- | TLdapPasswordRotationWithConnection;
++ | TLdapPasswordRotationWithConnection
+ | TAwsIamUserSecretRotationWithConnection;
export type TSecretRotationV2GeneratedCredentials =
| TSqlCredentialsRotationGeneratedCredentials
| TAuth0ClientSecretRotationGeneratedCredentials
- | TLdapPasswordRotationGeneratedCredentials;
++ | TLdapPasswordRotationGeneratedCredentials
+ | TAwsIamUserSecretRotationGeneratedCredentials;
export type TSecretRotationV2Input =
| TPostgresCredentialsRotationInput
| TMsSqlCredentialsRotationInput
| TAuth0ClientSecretRotationInput
- | TLdapPasswordRotationInput;
++ | TLdapPasswordRotationInput
+ | TAwsIamUserSecretRotationInput;
export type TSecretRotationV2ListItem =
| TPostgresCredentialsRotationListItem
| TMsSqlCredentialsRotationListItem
| TAuth0ClientSecretRotationListItem
- | TLdapPasswordRotationListItem;
++ | 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 2aff4347c2,af46cb36c0..4d51a23c3c
--- 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
@@@ -9,5 -10,5 +11,6 @@@ export const SecretRotationV2Schema = z
PostgresCredentialsRotationSchema,
MsSqlCredentialsRotationSchema,
Auth0ClientSecretRotationSchema,
- LdapPasswordRotationSchema
++ LdapPasswordRotationSchema,
+ AwsIamUserSecretRotationSchema
]);
diff --cc backend/src/lib/api-docs/constants.ts
index f6e55e67a3,b5181ae810..18157d979f
--- a/backend/src/lib/api-docs/constants.ts
+++ b/backend/src/lib/api-docs/constants.ts
@@@ -1858,15 -1858,9 +1858,19 @@@ export const AppConnections =
instanceUrl: "The Windmill instance URL to connect with (defaults to https://app.windmill.dev).",
accessToken: "The access token to use to connect with Windmill."
},
+ LDAP: {
+ provider: "The type of LDAP provider. Determines provider-specific behaviors.",
+ url: "The LDAP/LDAPS URL to connect to (e.g., 'ldap://domain-or-ip:389' or 'ldaps://domain-or-ip:636').",
+ dn: "The Distinguished Name (DN) of the principal to bind with (e.g., 'CN=John,CN=Users,DC=example,DC=com').",
+ password: "The password to bind with for authentication.",
+ sslRejectUnauthorized:
+ "Whether or not to reject unauthorized SSL certificates (true/false) when using ldaps://. Set to false only in test environments.",
+ sslCertificate:
+ "The SSL certificate (PEM format) to use for secure connection when using ldaps:// with a self-signed certificate."
++ },
+ TEAMCITY: {
+ instanceUrl: "The TeamCity instance URL to connect with.",
+ accessToken: "The access token to use to connect with TeamCity."
}
}
};
@@@ -2071,21 -2069,9 +2079,25 @@@ export const SecretRotations =
AUTH0_CLIENT_SECRET: {
clientId: "The client ID of the Auth0 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: {
@@@ -2097,9 -2083,9 +2109,13 @@@
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 22db8b3e82,d472a9cb15..0b565f7d82
--- 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
@@@ -61,7 -64,7 +65,8 @@@ const SanitizedAppConnectionSchema = z.
...SanitizedCamundaConnectionSchema.options,
...SanitizedWindmillConnectionSchema.options,
...SanitizedAuth0ConnectionSchema.options,
- ...SanitizedLdapConnectionSchema.options
++ ...SanitizedLdapConnectionSchema.options,
+ ...SanitizedTeamCityConnectionSchema.options
]);
const AppConnectionOptionsSchema = z.discriminatedUnion("app", [
@@@ -79,7 -82,7 +84,8 @@@
CamundaConnectionListItemSchema,
WindmillConnectionListItemSchema,
Auth0ConnectionListItemSchema,
- LdapConnectionListItemSchema
++ LdapConnectionListItemSchema,
+ TeamCityConnectionListItemSchema
]);
export const registerAppConnectionRouter = async (server: FastifyZodProvider) => {
diff --cc backend/src/server/routes/v1/app-connection-routers/index.ts
index c253de237f,de9db9d851..c2398fd78a
--- a/backend/src/server/routes/v1/app-connection-routers/index.ts
+++ b/backend/src/server/routes/v1/app-connection-routers/index.ts
@@@ -9,9 -9,9 +9,10 @@@ import { registerDatabricksConnectionRo
import { registerGcpConnectionRouter } from "./gcp-connection-router";
import { registerGitHubConnectionRouter } from "./github-connection-router";
import { registerHumanitecConnectionRouter } from "./humanitec-connection-router";
+import { registerLdapConnectionRouter } from "./ldap-connection-router";
import { registerMsSqlConnectionRouter } from "./mssql-connection-router";
import { registerPostgresConnectionRouter } from "./postgres-connection-router";
+ import { registerTeamCityConnectionRouter } from "./teamcity-connection-router";
import { registerTerraformCloudConnectionRouter } from "./terraform-cloud-router";
import { registerVercelConnectionRouter } from "./vercel-connection-router";
import { registerWindmillConnectionRouter } from "./windmill-connection-router";
@@@ -34,5 -34,5 +35,6 @@@ export const APP_CONNECTION_REGISTER_RO
[AppConnection.Camunda]: registerCamundaConnectionRouter,
[AppConnection.Windmill]: registerWindmillConnectionRouter,
[AppConnection.Auth0]: registerAuth0ConnectionRouter,
- [AppConnection.LDAP]: registerLdapConnectionRouter
++ [AppConnection.LDAP]: registerLdapConnectionRouter,
+ [AppConnection.TeamCity]: registerTeamCityConnectionRouter
};
diff --cc backend/src/services/app-connection/app-connection-enums.ts
index 5960da356f,8852ed6bce..de20f3f649
--- a/backend/src/services/app-connection/app-connection-enums.ts
+++ b/backend/src/services/app-connection/app-connection-enums.ts
@@@ -13,7 -13,7 +13,8 @@@ export enum AppConnection
Camunda = "camunda",
Windmill = "windmill",
Auth0 = "auth0",
- LDAP = "ldap"
++ LDAP = "ldap",
+ TeamCity = "teamcity"
}
export enum AWSRegion {
diff --cc backend/src/services/app-connection/app-connection-fns.ts
index ba0ba260eb,076f52f994..92595619c9
--- a/backend/src/services/app-connection/app-connection-fns.ts
+++ b/backend/src/services/app-connection/app-connection-fns.ts
@@@ -41,9 -41,13 +41,14 @@@ import
HumanitecConnectionMethod,
validateHumanitecConnectionCredentials
} from "./humanitec";
+import { getLdapConnectionListItem, LdapConnectionMethod, validateLdapConnectionCredentials } from "./ldap";
import { getMsSqlConnectionListItem, MsSqlConnectionMethod } from "./mssql";
import { getPostgresConnectionListItem, PostgresConnectionMethod } from "./postgres";
+ import {
+ getTeamCityConnectionListItem,
+ TeamCityConnectionMethod,
+ validateTeamCityConnectionCredentials
+ } from "./teamcity";
import {
getTerraformCloudConnectionListItem,
TerraformCloudConnectionMethod,
@@@ -73,7 -77,7 +78,8 @@@ export const listAppConnectionOptions
getCamundaConnectionListItem(),
getWindmillConnectionListItem(),
getAuth0ConnectionListItem(),
- getLdapConnectionListItem()
++ getLdapConnectionListItem(),
+ getTeamCityConnectionListItem()
].sort((a, b) => a.name.localeCompare(b.name));
};
@@@ -138,7 -142,7 +144,8 @@@ export const validateAppConnectionCrede
[AppConnection.TerraformCloud]: validateTerraformCloudConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.Auth0]: validateAuth0ConnectionCredentials as TAppConnectionCredentialsValidator,
[AppConnection.Windmill]: validateWindmillConnectionCredentials as TAppConnectionCredentialsValidator,
- [AppConnection.LDAP]: validateLdapConnectionCredentials as TAppConnectionCredentialsValidator
++ [AppConnection.LDAP]: validateLdapConnectionCredentials as TAppConnectionCredentialsValidator,
+ [AppConnection.TeamCity]: validateTeamCityConnectionCredentials as TAppConnectionCredentialsValidator
};
return VALIDATE_APP_CONNECTION_CREDENTIALS_MAP[appConnection.app](appConnection);
@@@ -220,5 -223,5 +228,6 @@@ export const TRANSITION_CONNECTION_CRED
[AppConnection.Vercel]: platformManagedCredentialsNotSupported,
[AppConnection.Windmill]: platformManagedCredentialsNotSupported,
[AppConnection.Auth0]: platformManagedCredentialsNotSupported,
- [AppConnection.LDAP]: platformManagedCredentialsNotSupported // we could support this in the future
++ [AppConnection.LDAP]: platformManagedCredentialsNotSupported, // we could support this in the future
+ [AppConnection.TeamCity]: platformManagedCredentialsNotSupported
};
diff --cc backend/src/services/app-connection/app-connection-maps.ts
index b98636dd13,41cef4af11..524993b231
--- a/backend/src/services/app-connection/app-connection-maps.ts
+++ b/backend/src/services/app-connection/app-connection-maps.ts
@@@ -15,5 -15,5 +15,6 @@@ export const APP_CONNECTION_NAME_MAP: R
[AppConnection.Camunda]: "Camunda",
[AppConnection.Windmill]: "Windmill",
[AppConnection.Auth0]: "Auth0",
- [AppConnection.LDAP]: "LDAP"
++ [AppConnection.LDAP]: "LDAP",
+ [AppConnection.TeamCity]: "TeamCity"
};
diff --cc backend/src/services/app-connection/app-connection-service.ts
index f2a8389724,5ca0c14247..e872c07e41
--- a/backend/src/services/app-connection/app-connection-service.ts
+++ b/backend/src/services/app-connection/app-connection-service.ts
@@@ -43,9 -43,10 +43,11 @@@ import { ValidateGitHubConnectionCreden
import { githubConnectionService } from "./github/github-connection-service";
import { ValidateHumanitecConnectionCredentialsSchema } from "./humanitec";
import { humanitecConnectionService } from "./humanitec/humanitec-connection-service";
+import { ValidateLdapConnectionCredentialsSchema } from "./ldap";
import { ValidateMsSqlConnectionCredentialsSchema } from "./mssql";
import { ValidatePostgresConnectionCredentialsSchema } from "./postgres";
+ import { ValidateTeamCityConnectionCredentialsSchema } from "./teamcity";
+ import { teamcityConnectionService } from "./teamcity/teamcity-connection-service";
import { ValidateTerraformCloudConnectionCredentialsSchema } from "./terraform-cloud";
import { terraformCloudConnectionService } from "./terraform-cloud/terraform-cloud-connection-service";
import { ValidateVercelConnectionCredentialsSchema } from "./vercel";
@@@ -76,7 -77,7 +78,8 @@@ const VALIDATE_APP_CONNECTION_CREDENTIA
[AppConnection.Camunda]: ValidateCamundaConnectionCredentialsSchema,
[AppConnection.Windmill]: ValidateWindmillConnectionCredentialsSchema,
[AppConnection.Auth0]: ValidateAuth0ConnectionCredentialsSchema,
- [AppConnection.LDAP]: ValidateLdapConnectionCredentialsSchema
++ [AppConnection.LDAP]: ValidateLdapConnectionCredentialsSchema,
+ [AppConnection.TeamCity]: ValidateTeamCityConnectionCredentialsSchema
};
export const appConnectionServiceFactory = ({
diff --cc backend/src/services/app-connection/app-connection-types.ts
index 0fd2523722,762d973d15..c7a78fbb63
--- a/backend/src/services/app-connection/app-connection-types.ts
+++ b/backend/src/services/app-connection/app-connection-types.ts
@@@ -103,7 -103,7 +109,8 @@@ export type TAppConnection = { id: stri
| TCamundaConnection
| TWindmillConnection
| TAuth0Connection
+ | TLdapConnection
+ | TTeamCityConnection
);
export type TAppConnectionRaw = NonNullable<Awaited<ReturnType<TAppConnectionDALFactory["findById"]>>>;
@@@ -125,7 -125,7 +132,8 @@@ export type TAppConnectionInput = { id
| TCamundaConnectionInput
| TWindmillConnectionInput
| TAuth0ConnectionInput
+ | TLdapConnectionInput
+ | TTeamCityConnectionInput
);
export type TSqlConnectionInput = TPostgresConnectionInput | TMsSqlConnectionInput;
@@@ -153,7 -153,7 +161,8 @@@ export type TAppConnectionConfig
| TCamundaConnectionConfig
| TWindmillConnectionConfig
| TAuth0ConnectionConfig
- | TLdapConnectionConfig;
++ | TLdapConnectionConfig
+ | TTeamCityConnectionConfig;
export type TValidateAppConnectionCredentialsSchema =
| TValidateAwsConnectionCredentialsSchema
@@@ -170,7 -170,7 +179,8 @@@
| TValidateVercelConnectionCredentialsSchema
| TValidateWindmillConnectionCredentialsSchema
| TValidateAuth0ConnectionCredentialsSchema
- | TValidateLdapConnectionCredentialsSchema;
++ | TValidateLdapConnectionCredentialsSchema
+ | TValidateTeamCityConnectionCredentialsSchema;
export type TListAwsConnectionKmsKeys = {
connectionId: string;
diff --cc backend/src/services/auth/auth-login-service.ts
index 0e0f999dda,e576d67680..bc9c4afa3a
--- a/backend/src/services/auth/auth-login-service.ts
+++ b/backend/src/services/auth/auth-login-service.ts
@@@ -10,7 -12,8 +12,9 @@@ import { generateSrpServerKey, srpCheck
import { infisicalSymmetricEncypt } from "@app/lib/crypto/encryption";
import { getUserPrivateKey } from "@app/lib/crypto/srp";
import { BadRequestError, DatabaseError, ForbiddenRequestError, UnauthorizedError } from "@app/lib/errors";
++import { removeTrailingSlash } from "@app/lib/fn";
import { logger } from "@app/lib/logger";
+ import { getUserAgentType } from "@app/server/plugins/audit-log";
import { getServerCfg } from "@app/services/super-admin/super-admin-service";
import { TAuthTokenServiceFactory } from "../auth-token/auth-token-service";
@@@ -28,7 -31,15 +32,14 @@@ import
TOauthTokenExchangeDTO,
TVerifyMfaTokenDTO
} from "./auth-login-type";
- import { AuthMethod, AuthModeJwtTokenPayload, AuthModeMfaJwtTokenPayload, AuthTokenType, MfaMethod } from "./auth-type";
+ import {
+ ActorType,
+ AuthMethod,
+ AuthModeJwtTokenPayload,
+ AuthModeMfaJwtTokenPayload,
+ AuthTokenType,
+ MfaMethod
+ } from "./auth-type";
-import { removeTrailingSlash } from "@app/lib/fn";
type TAuthLoginServiceFactoryDep = {
userDAL: TUserDALFactory;
diff --cc docs/mint.json
index 053945f4a0,cebdf9e7fb..47a4c0a76e
--- a/docs/mint.json
+++ b/docs/mint.json
@@@ -179,9 -179,9 +179,10 @@@
"pages": [
"documentation/platform/secret-rotation/overview",
"documentation/platform/secret-rotation/auth0-client-secret",
+ "documentation/platform/secret-rotation/aws-iam-user-secret",
- "documentation/platform/secret-rotation/postgres-credentials",
- "documentation/platform/secret-rotation/mssql-credentials"
+ "documentation/platform/secret-rotation/ldap-password",
+ "documentation/platform/secret-rotation/mssql-credentials",
+ "documentation/platform/secret-rotation/postgres-credentials"
]
},
{
@@@ -425,9 -433,9 +434,10 @@@
"integrations/app-connections/gcp",
"integrations/app-connections/github",
"integrations/app-connections/humanitec",
+ "integrations/app-connections/ldap",
"integrations/app-connections/mssql",
"integrations/app-connections/postgres",
+ "integrations/app-connections/teamcity",
"integrations/app-connections/terraform-cloud",
"integrations/app-connections/vercel",
"integrations/app-connections/windmill"
@@@ -864,18 -871,18 +873,31 @@@
]
},
{
- "group": "LDAP Password",
+ "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 b0f05cd234,12ad1f9a5b..d5af51eefc
--- a/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
+++ b/frontend/src/components/secret-rotations-v2/ViewSecretRotationV2GeneratedCredentials/ViewSecretRotationV2GeneratedCredentials.tsx
@@@ -74,13 -68,13 +75,20 @@@ const Content = ({ secretRotation }: Co
/>
);
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 d5847bb209,e0841d096f..cdbf631113
--- 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,14 +4,16 @@@ import { SecretRotation } from "@app/ho
import { TSecretRotationV2Form } from "../schemas";
import { Auth0ClientSecretRotationParametersFields } from "./Auth0ClientSecretRotationParametersFields";
+ import { AwsIamUserSecretRotationParametersFields } from "./AwsIamUserSecretRotationParametersFields";
+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.LdapPassword]: LdapPasswordRotationParametersFields
++ [SecretRotation.LdapPassword]: LdapPasswordRotationParametersFields,
+ [SecretRotation.AwsIamUserSecret]: AwsIamUserSecretRotationParametersFields
};
export const SecretRotationV2ParametersFields = () => {
diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ReviewFields/SecretRotationReviewFields.tsx
index 4961c38b45,d8624e308e..23ee25d7f7
--- 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,14 +7,16 @@@ import { getRotateAtLocal } from "@app/
import { SecretRotation } from "@app/hooks/api/secretRotationsV2";
import { Auth0ClientSecretRotationReviewFields } from "./Auth0ClientSecretRotationReviewFields";
+ import { AwsIamUserSecretRotationReviewFields } from "./AwsIamUserSecretRotationReviewFields";
+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.LdapPassword]: LdapPasswordRotationReviewFields
++ [SecretRotation.LdapPassword]: LdapPasswordRotationReviewFields,
+ [SecretRotation.AwsIamUserSecret]: AwsIamUserSecretRotationReviewFields
};
export const SecretRotationV2ReviewFields = () => {
diff --cc frontend/src/components/secret-rotations-v2/forms/SecretRotationV2SecretsMappingFields/SecretRotationV2SecretsMappingFields.tsx
index 5f68cba1c5,6ede945db0..16bffe6cf6
--- 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,14 +4,16 @@@ import { SecretRotation } from "@app/ho
import { TSecretRotationV2Form } from "../schemas";
import { Auth0ClientSecretRotationSecretsMappingFields } from "./Auth0ClientSecretRotationSecretsMappingFields";
+ import { AwsIamUserSecretRotationSecretsMappingFields } from "./AwsIamUserSecretRotationSecretsMappingFields";
+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.LdapPassword]: LdapPasswordRotationSecretsMappingFields
++ [SecretRotation.LdapPassword]: LdapPasswordRotationSecretsMappingFields,
+ [SecretRotation.AwsIamUserSecret]: AwsIamUserSecretRotationSecretsMappingFields
};
export const SecretRotationV2SecretsMappingFields = () => {
diff --cc frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
index 58d87c5e22,acd56e5719..6dd65b0bb0
--- a/frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
+++ b/frontend/src/components/secret-rotations-v2/forms/schemas/index.ts
@@@ -1,7 -1,7 +1,8 @@@
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 { 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";
@@@ -9,7 -9,7 +10,8 @@@ const SecretRotationUnionSchema = z.dis
PostgresCredentialsRotationSchema,
MsSqlCredentialsRotationSchema,
Auth0ClientSecretRotationSchema,
- LdapPasswordRotationSchema
++ LdapPasswordRotationSchema,
+ AwsIamUserSecretRotationSchema
]);
export const SecretRotationV2FormSchema = SecretRotationUnionSchema;
diff --cc frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/TeamCitySyncFields.tsx
index 0000000000,f9948fcaaf..4f27180899
mode 000000,100644..100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/TeamCitySyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/TeamCitySyncFields.tsx
@@@ -1,0 -1,128 +1,128 @@@
+ import { Controller, useFormContext, useWatch } from "react-hook-form";
+ import { SingleValue } from "react-select";
+ import { faCircleInfo } from "@fortawesome/free-solid-svg-icons";
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+
+ import { SecretSyncConnectionField } from "@app/components/secret-syncs/forms/SecretSyncConnectionField";
+ import { FilterableSelect, FormControl, Tooltip } from "@app/components/v2";
+ import {
+ TTeamCityProjectWithBuildTypes,
+ useTeamCityConnectionListProjects
+ } from "@app/hooks/api/appConnections/teamcity";
+ import { SecretSync } from "@app/hooks/api/secretSyncs";
+
+ import { TSecretSyncForm } from "../schemas";
+
+ export const TeamCitySyncFields = () => {
+ const { control, setValue } = useFormContext<
+ TSecretSyncForm & { destination: SecretSync.TeamCity }
+ >();
+
+ const connectionId = useWatch({ name: "connection.id", control });
+
+ const { data: projects, isLoading: isProjectsLoading } = useTeamCityConnectionListProjects(
+ connectionId,
+ {
+ enabled: Boolean(connectionId)
+ }
+ );
+
+ // For Build Config dropdown
+ const selectedProjectId = useWatch({ name: "destinationConfig.project", control });
+ const selectedProject = projects?.find((proj) => proj.id === selectedProjectId);
+
+ const buildTypes = selectedProject?.buildTypes?.buildType || [];
+
+ return (
+ <>
+ <SecretSyncConnectionField
+ onChange={() => {
+ setValue("destinationConfig.project", "");
+ setValue("destinationConfig.buildConfig", "");
+ }}
+ />
+
+ <Controller
+ name="destinationConfig.project"
+ control={control}
+ render={({ field: { value, onChange }, fieldState: { error } }) => (
+ <FormControl
+ isError={Boolean(error)}
+ errorText={error?.message}
+ label="Project"
+ helperText={
+ <Tooltip
+ className="max-w-md"
+ content="Ensure the project exists in the connection's TeamCity instance URL."
+ >
+ <div>
+ <span>Don&#39;t see the project you&#39;re looking for?</span>{" "}
+ <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
+ </div>
+ </Tooltip>
+ }
+ >
+ <FilterableSelect
+ menuPlacement="top"
+ isLoading={isProjectsLoading && Boolean(connectionId)}
+ isDisabled={!connectionId}
+ value={projects?.find((proj) => proj.id === value) ?? null}
+ onChange={(option) => {
+ onChange((option as SingleValue<TTeamCityProjectWithBuildTypes>)?.id ?? null);
+ setValue("destinationConfig.buildConfig", "");
+ }}
+ options={projects}
+ placeholder="Select a project..."
+ getOptionLabel={(option) => option.name}
+ getOptionValue={(option) => option.id}
+ />
+ </FormControl>
+ )}
+ />
+
+ <Controller
+ name="destinationConfig.buildConfig"
+ control={control}
+ render={({ field: { value, onChange }, fieldState: { error } }) => (
+ <FormControl
+ isError={Boolean(error)}
+ errorText={error?.message}
+ isOptional
+ label="Build Configuration"
+ helperText={
+ <Tooltip
+ className="max-w-md"
+ content='Ensure the configuration exists in the selected project and that your Access Token has the "View build configuration settings" permission.'
+ >
+ <div>
+ <span>Don&#39;t see the configuration you&#39;re looking for?</span>{" "}
+ <FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
+ </div>
+ </Tooltip>
+ }
+ >
+ <FilterableSelect
+ menuPlacement="top"
+ isLoading={isProjectsLoading && Boolean(connectionId)}
+ isDisabled={!connectionId || !selectedProject}
+ value={buildTypes.find((buildType) => buildType.id === value) ?? null}
+ onChange={(option) => {
+ const selectedOption = option as SingleValue<{ id: string; name: string }>;
+ onChange(selectedOption?.id ?? "");
+ }}
+ options={buildTypes}
- isClearable={true}
++ isClearable
+ placeholder="Select a build configuration..."
+ getOptionLabel={(option) => option.name}
+ getOptionValue={(option) => option.id}
+ />
+ </FormControl>
+ )}
+ />
+
+ <span className="text-sm text-bunker-300">
+ Not selecting a Build Configuration will sync your secrets to the entire project.
+ </span>
+ </>
+ );
+ };
diff --cc frontend/src/helpers/appConnections.ts
index 64ae2a699c,fd8b6666d6..02c0fbbcbd
--- a/frontend/src/helpers/appConnections.ts
+++ b/frontend/src/helpers/appConnections.ts
@@@ -52,7 -45,7 +53,8 @@@ export const APP_CONNECTION_MAP: Record
[AppConnection.Camunda]: { name: "Camunda", image: "Camunda.png" },
[AppConnection.Windmill]: { name: "Windmill", image: "Windmill.png" },
[AppConnection.Auth0]: { name: "Auth0", image: "Auth0.png", size: 40 },
- [AppConnection.LDAP]: { name: "LDAP", image: "LDAP.png", size: 65 }
++ [AppConnection.LDAP]: { name: "LDAP", image: "LDAP.png", size: 65 },
+ [AppConnection.TeamCity]: { name: "TeamCity", image: "TeamCity.png" }
};
export const getAppConnectionMethodDetails = (method: TAppConnection["method"]) => {
diff --cc frontend/src/helpers/secretRotationsV2.ts
index 92e5d5257b,e5ab1419d1..8acfaafe55
--- a/frontend/src/helpers/secretRotationsV2.ts
+++ b/frontend/src/helpers/secretRotationsV2.ts
@@@ -20,10 -20,10 +20,15 @@@ export const SECRET_ROTATION_MAP: Recor
image: "Auth0.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 -31,7 +36,8 @@@ export const SECRET_ROTATION_CONNECTION
[SecretRotation.PostgresCredentials]: AppConnection.Postgres,
[SecretRotation.MsSqlCredentials]: AppConnection.MsSql,
[SecretRotation.Auth0ClientSecret]: AppConnection.Auth0,
- [SecretRotation.LdapPassword]: AppConnection.LDAP
++ [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 -39,7 +45,8 @@@ export const IS_ROTATION_DUAL_CREDENTIA
[SecretRotation.PostgresCredentials]: true,
[SecretRotation.MsSqlCredentials]: true,
[SecretRotation.Auth0ClientSecret]: false,
- [SecretRotation.LdapPassword]: false
++ [SecretRotation.LdapPassword]: false,
+ [SecretRotation.AwsIamUserSecret]: true
};
export const getRotateAtLocal = ({ hours, minutes }: TSecretRotationV2["rotateAtUtc"]) => {
diff --cc frontend/src/hooks/api/appConnections/enums.ts
index b5380affb2,31e2df71f9..5b9d3fad48
--- a/frontend/src/hooks/api/appConnections/enums.ts
+++ b/frontend/src/hooks/api/appConnections/enums.ts
@@@ -13,5 -13,5 +13,6 @@@ export enum AppConnection
Camunda = "camunda",
Windmill = "windmill",
Auth0 = "auth0",
- LDAP = "ldap"
++ LDAP = "ldap",
+ TeamCity = "teamcity"
}
diff --cc frontend/src/hooks/api/appConnections/types/app-options.ts
index 12478aff0a,3122ca32c3..10c1076cd1
--- a/frontend/src/hooks/api/appConnections/types/app-options.ts
+++ b/frontend/src/hooks/api/appConnections/types/app-options.ts
@@@ -67,10 -67,10 +67,14 @@@ export type TAuth0ConnectionOption = TA
app: AppConnection.Auth0;
};
+export type TLdapConnectionOption = TAppConnectionOptionBase & {
+ app: AppConnection.LDAP;
+};
+
+ export type TTeamCityConnectionOption = TAppConnectionOptionBase & {
+ app: AppConnection.TeamCity;
+ };
+
export type TAppConnectionOption =
| TAwsConnectionOption
| TGitHubConnectionOption
@@@ -102,5 -103,5 +107,6 @@@ export type TAppConnectionOptionMap =
[AppConnection.Camunda]: TCamundaConnectionOption;
[AppConnection.Windmill]: TWindmillConnectionOption;
[AppConnection.Auth0]: TAuth0ConnectionOption;
+ [AppConnection.LDAP]: TLdapConnectionOption;
+ [AppConnection.TeamCity]: TTeamCityConnectionOption;
};
diff --cc frontend/src/hooks/api/appConnections/types/index.ts
index 07cddfed38,929ca796d8..2eabee1f2c
--- a/frontend/src/hooks/api/appConnections/types/index.ts
+++ b/frontend/src/hooks/api/appConnections/types/index.ts
@@@ -9,9 -9,9 +9,10 @@@ import { TDatabricksConnection } from "
import { TGcpConnection } from "./gcp-connection";
import { TGitHubConnection } from "./github-connection";
import { THumanitecConnection } from "./humanitec-connection";
+import { TLdapConnection } from "./ldap-connection";
import { TMsSqlConnection } from "./mssql-connection";
import { TPostgresConnection } from "./postgres-connection";
+ import { TTeamCityConnection } from "./teamcity-connection";
import { TTerraformCloudConnection } from "./terraform-cloud-connection";
import { TVercelConnection } from "./vercel-connection";
import { TWindmillConnection } from "./windmill-connection";
@@@ -25,9 -25,9 +26,10 @@@ export * from "./databricks-connection"
export * from "./gcp-connection";
export * from "./github-connection";
export * from "./humanitec-connection";
+export * from "./ldap-connection";
export * from "./mssql-connection";
export * from "./postgres-connection";
+ export * from "./teamcity-connection";
export * from "./terraform-cloud-connection";
export * from "./vercel-connection";
export * from "./windmill-connection";
@@@ -47,7 -47,7 +49,8 @@@ export type TAppConnection
| TCamundaConnection
| TWindmillConnection
| TAuth0Connection
- | TLdapConnection;
++ | TLdapConnection
+ | TTeamCityConnection;
export type TAvailableAppConnection = Pick<TAppConnection, "name" | "id">;
@@@ -89,5 -89,5 +92,6 @@@ export type TAppConnectionMap =
[AppConnection.Camunda]: TCamundaConnection;
[AppConnection.Windmill]: TWindmillConnection;
[AppConnection.Auth0]: TAuth0Connection;
+ [AppConnection.LDAP]: TLdapConnection;
+ [AppConnection.TeamCity]: TTeamCityConnection;
};
diff --cc frontend/src/hooks/api/secretRotationsV2/enums.ts
index a094af6357,1e387a3b91..4ddf4ee0c6
--- a/frontend/src/hooks/api/secretRotationsV2/enums.ts
+++ b/frontend/src/hooks/api/secretRotationsV2/enums.ts
@@@ -2,7 -2,7 +2,8 @@@ export enum SecretRotation
PostgresCredentials = "postgres-credentials",
MsSqlCredentials = "mssql-credentials",
Auth0ClientSecret = "auth0-client-secret",
- LdapPassword = "ldap-password"
++ LdapPassword = "ldap-password",
+ AwsIamUserSecret = "aws-iam-user-secret"
}
export enum SecretRotationStatus {
diff --cc frontend/src/hooks/api/secretRotationsV2/types/index.ts
index 6fbe479116,212175ae09..4119efc15a
--- a/frontend/src/hooks/api/secretRotationsV2/types/index.ts
+++ b/frontend/src/hooks/api/secretRotationsV2/types/index.ts
@@@ -4,11 -4,11 +4,16 @@@ 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 {
+ TLdapPasswordRotation,
+ TLdapPasswordRotationGeneratedCredentialsResponse,
+ TLdapPasswordRotationOption
+} from "@app/hooks/api/secretRotationsV2/types/ldap-password-rotation";
import {
TMsSqlCredentialsRotation,
TMsSqlCredentialsRotationGeneratedCredentialsResponse
@@@ -25,7 -25,7 +30,8 @@@ export type TSecretRotationV2 =
| TPostgresCredentialsRotation
| TMsSqlCredentialsRotation
| TAuth0ClientSecretRotation
+ | TLdapPasswordRotation
+ | TAwsIamUserSecretRotation
) & {
secrets: (SecretV3RawSanitized | null)[];
};
@@@ -33,7 -33,7 +39,8 @@@
export type TSecretRotationV2Option =
| TSqlCredentialsRotationOption
| TAuth0ClientSecretRotationOption
- | TLdapPasswordRotationOption;
++ | TLdapPasswordRotationOption
+ | TAwsIamUserSecretRotationOption;
export type TListSecretRotationV2Options = { secretRotationOptions: TSecretRotationV2Option[] };
@@@ -43,7 -43,7 +50,8 @@@ export type TViewSecretRotationGenerate
| TPostgresCredentialsRotationGeneratedCredentialsResponse
| TMsSqlCredentialsRotationGeneratedCredentialsResponse
| TAuth0ClientSecretRotationGeneratedCredentialsResponse
- | TLdapPasswordRotationGeneratedCredentialsResponse;
++ | TLdapPasswordRotationGeneratedCredentialsResponse
+ | TAwsIamUserSecretRotationGeneratedCredentialsResponse;
export type TCreateSecretRotationV2DTO = DiscriminativePick<
TSecretRotationV2,
@@@ -90,12 -90,12 +98,14 @@@ export type TSecretRotationOptionMap =
[SecretRotation.PostgresCredentials]: TSqlCredentialsRotationOption;
[SecretRotation.MsSqlCredentials]: TSqlCredentialsRotationOption;
[SecretRotation.Auth0ClientSecret]: TAuth0ClientSecretRotationOption;
+ [SecretRotation.LdapPassword]: TLdapPasswordRotationOption;
+ [SecretRotation.AwsIamUserSecret]: TAwsIamUserSecretRotationOption;
};
export type TSecretRotationGeneratedCredentialsResponseMap = {
[SecretRotation.PostgresCredentials]: TPostgresCredentialsRotationGeneratedCredentialsResponse;
[SecretRotation.MsSqlCredentials]: TMsSqlCredentialsRotationGeneratedCredentialsResponse;
[SecretRotation.Auth0ClientSecret]: TAuth0ClientSecretRotationGeneratedCredentialsResponse;
+ [SecretRotation.LdapPassword]: TLdapPasswordRotationGeneratedCredentialsResponse;
+ [SecretRotation.AwsIamUserSecret]: TAwsIamUserSecretRotationGeneratedCredentialsResponse;
};
diff --cc frontend/src/pages/middlewares/authenticate.tsx
index 615d03b602,2f57890969..03005ce05a
--- a/frontend/src/pages/middlewares/authenticate.tsx
+++ b/frontend/src/pages/middlewares/authenticate.tsx
@@@ -1,7 -1,7 +1,9 @@@
import { createFileRoute, redirect } from "@tanstack/react-router";
import { AxiosError } from "axios";
++import { addSeconds, formatISO } from "date-fns";
import { createNotification } from "@app/components/notifications";
++import { SessionStorageKeys } from "@app/const";
import { ROUTE_PATHS } from "@app/const/routes";
import { userKeys } from "@app/hooks/api";
import { authKeys, fetchAuthToken } from "@app/hooks/api/auth/queries";
diff --cc frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
index 0d2ad54e99,1259c50d63..f47de43dd6
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
@@@ -18,9 -18,9 +18,10 @@@ import { DatabricksConnectionForm } fro
import { GcpConnectionForm } from "./GcpConnectionForm";
import { GitHubConnectionForm } from "./GitHubConnectionForm";
import { HumanitecConnectionForm } from "./HumanitecConnectionForm";
+import { LdapConnectionForm } from "./LdapConnectionForm";
import { MsSqlConnectionForm } from "./MsSqlConnectionForm";
import { PostgresConnectionForm } from "./PostgresConnectionForm";
+ import { TeamCityConnectionForm } from "./TeamCityConnectionForm";
import { TerraformCloudConnectionForm } from "./TerraformCloudConnectionForm";
import { VercelConnectionForm } from "./VercelConnectionForm";
import { WindmillConnectionForm } from "./WindmillConnectionForm";
@@@ -90,8 -90,8 +91,10 @@@ const CreateForm = ({ app, onComplete }
return <WindmillConnectionForm onSubmit={onSubmit} />;
case AppConnection.Auth0:
return <Auth0ConnectionForm onSubmit={onSubmit} />;
+ case AppConnection.LDAP:
+ return <LdapConnectionForm onSubmit={onSubmit} />;
+ case AppConnection.TeamCity:
+ return <TeamCityConnectionForm onSubmit={onSubmit} />;
default:
throw new Error(`Unhandled App ${app}`);
}
@@@ -156,8 -156,8 +159,11 @@@ const UpdateForm = ({ appConnection, on
return <WindmillConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
case AppConnection.Auth0:
return <Auth0ConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
+ case AppConnection.LDAP:
+ return <LdapConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
+ case AppConnection.TeamCity:
+ return <TeamCityConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;
++
default:
throw new Error(`Unhandled App ${(appConnection as TAppConnection).app}`);
}