Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
solved merge conflicts
xee2e2246da39
diff --cc backend/src/lib/api-docs/constants.tsindex 88791f8e15,19ee7e331b..94f6c7752f--- a/backend/src/lib/api-docs/constants.ts+++ b/backend/src/lib/api-docs/constants.ts@@@ -1858,13 -1862,16 +1862,23 @@@ 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."},+ HC_VAULT: {+ instanceUrl: "The Hashicrop Vault instance URL to connect with.",+ namespace: "The Hashicrop Vault namespace to connect with.",+ accessToken: "The access token used to connect with Hashicorp Vault.",+ roleId: "The Role ID used to connect with Hashicorp Vault.",+ secretId: "The Secret ID used to connect with Hashicorp Vault."+ },+ 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."diff --cc backend/src/server/routes/v1/app-connection-routers/app-connection-router.tsindex 7de22410df,0b565f7d82..a62776494c--- 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@@@ -68,7 -65,7 +69,8 @@@ const SanitizedAppConnectionSchema = z....SanitizedCamundaConnectionSchema.options,...SanitizedWindmillConnectionSchema.options,...SanitizedAuth0ConnectionSchema.options,+ ...SanitizedHCVaultConnectionSchema.options,+ ...SanitizedLdapConnectionSchema.options,...SanitizedTeamCityConnectionSchema.options]);@@@ -87,7 -84,7 +89,8 @@@ const AppConnectionOptionsSchema = z.diCamundaConnectionListItemSchema,WindmillConnectionListItemSchema,Auth0ConnectionListItemSchema,+ HCVaultConnectionListItemSchema,+ LdapConnectionListItemSchema,TeamCityConnectionListItemSchema]);diff --cc backend/src/server/routes/v1/app-connection-routers/index.tsindex fae87c3c3d,c2398fd78a..41302df77b--- a/backend/src/server/routes/v1/app-connection-routers/index.ts+++ b/backend/src/server/routes/v1/app-connection-routers/index.ts@@@ -8,8 -8,8 +8,9 @@@ import { registerCamundaConnectionRouteimport { registerDatabricksConnectionRouter } from "./databricks-connection-router";import { registerGcpConnectionRouter } from "./gcp-connection-router";import { registerGitHubConnectionRouter } from "./github-connection-router";+import { registerHCVaultConnectionRouter } from "./hc-vault-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";@@@ -35,6 -35,6 +36,7 @@@ export const APP_CONNECTION_REGISTER_RO[AppConnection.Camunda]: registerCamundaConnectionRouter,[AppConnection.Windmill]: registerWindmillConnectionRouter,[AppConnection.Auth0]: registerAuth0ConnectionRouter,+ [AppConnection.HCVault]: registerHCVaultConnectionRouter,+ [AppConnection.LDAP]: registerLdapConnectionRouter,[AppConnection.TeamCity]: registerTeamCityConnectionRouter};diff --cc backend/src/services/app-connection/app-connection-enums.tsindex 98a0861002,de20f3f649..24dcd764c4--- 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 AppConnectionCamunda = "camunda",Windmill = "windmill",Auth0 = "auth0",+ HCVault = "hashicorp-vault",+ LDAP = "ldap",TeamCity = "teamcity"}diff --cc backend/src/services/app-connection/app-connection-fns.tsindex 4d791acd82,92595619c9..cc92f0c846--- a/backend/src/services/app-connection/app-connection-fns.ts+++ b/backend/src/services/app-connection/app-connection-fns.ts@@@ -82,7 -78,7 +83,8 @@@ export const listAppConnectionOptionsgetCamundaConnectionListItem(),getWindmillConnectionListItem(),getAuth0ConnectionListItem(),+ getHCVaultConnectionListItem(),+ getLdapConnectionListItem(),getTeamCityConnectionListItem()].sort((a, b) => a.name.localeCompare(b.name));};@@@ -148,7 -144,7 +150,8 @@@ export const validateAppConnectionCrede[AppConnection.TerraformCloud]: validateTerraformCloudConnectionCredentials as TAppConnectionCredentialsValidator,[AppConnection.Auth0]: validateAuth0ConnectionCredentials as TAppConnectionCredentialsValidator,[AppConnection.Windmill]: validateWindmillConnectionCredentials as TAppConnectionCredentialsValidator,+ [AppConnection.HCVault]: validateHCVaultConnectionCredentials as TAppConnectionCredentialsValidator,+ [AppConnection.LDAP]: validateLdapConnectionCredentials as TAppConnectionCredentialsValidator,[AppConnection.TeamCity]: validateTeamCityConnectionCredentials as TAppConnectionCredentialsValidator};@@@ -186,8 -181,8 +189,10 @@@ export const getAppConnectionMethodNamreturn "Access Token";case Auth0ConnectionMethod.ClientCredentials:return "Client Credentials";+ case HCVaultConnectionMethod.AppRole:+ return "App Role";+ case LdapConnectionMethod.SimpleBind:+ return "Simple Bind";default:// eslint-disable-next-line @typescript-eslint/restrict-template-expressionsthrow new Error(`Unhandled App Connection Method: ${method}`);@@@ -233,6 -228,6 +238,7 @@@ export const TRANSITION_CONNECTION_CRED[AppConnection.Vercel]: platformManagedCredentialsNotSupported,[AppConnection.Windmill]: platformManagedCredentialsNotSupported,[AppConnection.Auth0]: platformManagedCredentialsNotSupported,+ [AppConnection.HCVault]: platformManagedCredentialsNotSupported,+ [AppConnection.LDAP]: platformManagedCredentialsNotSupported, // we could support this in the future[AppConnection.TeamCity]: platformManagedCredentialsNotSupported};diff --cc backend/src/services/app-connection/app-connection-maps.tsindex 68a7fd3c1e,524993b231..08de272506--- a/backend/src/services/app-connection/app-connection-maps.ts+++ b/backend/src/services/app-connection/app-connection-maps.ts@@@ -15,6 -15,6 +15,7 @@@ export const APP_CONNECTION_NAME_MAP: R[AppConnection.Camunda]: "Camunda",[AppConnection.Windmill]: "Windmill",[AppConnection.Auth0]: "Auth0",+ [AppConnection.HCVault]: "Hashicorp Vault",+ [AppConnection.LDAP]: "LDAP",[AppConnection.TeamCity]: "TeamCity"};diff --cc backend/src/services/app-connection/app-connection-service.tsindex 72a81b456d,e872c07e41..b584a04744--- a/backend/src/services/app-connection/app-connection-service.ts+++ b/backend/src/services/app-connection/app-connection-service.ts@@@ -41,10 -41,9 +41,11 @@@ import { ValidateGcpConnectionCredentiaimport { gcpConnectionService } from "./gcp/gcp-connection-service";import { ValidateGitHubConnectionCredentialsSchema } from "./github";import { githubConnectionService } from "./github/github-connection-service";+import { ValidateHCVaultConnectionCredentialsSchema } from "./hc-vault";+import { hcVaultConnectionService } from "./hc-vault/hc-vault-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";@@@ -79,7 -78,7 +80,8 @@@ const VALIDATE_APP_CONNECTION_CREDENTIA[AppConnection.Camunda]: ValidateCamundaConnectionCredentialsSchema,[AppConnection.Windmill]: ValidateWindmillConnectionCredentialsSchema,[AppConnection.Auth0]: ValidateAuth0ConnectionCredentialsSchema,+ [AppConnection.HCVault]: ValidateHCVaultConnectionCredentialsSchema,+ [AppConnection.LDAP]: ValidateLdapConnectionCredentialsSchema,[AppConnection.TeamCity]: ValidateTeamCityConnectionCredentialsSchema};diff --cc backend/src/services/app-connection/app-connection-types.tsindex f49e9ebe59,c7a78fbb63..8be3f32ebc--- a/backend/src/services/app-connection/app-connection-types.ts+++ b/backend/src/services/app-connection/app-connection-types.ts@@@ -109,7 -109,7 +115,8 @@@ export type TAppConnection = { id: stri| TCamundaConnection| TWindmillConnection| TAuth0Connection+ | THCVaultConnection+ | TLdapConnection| TTeamCityConnection);@@@ -132,7 -132,7 +139,8 @@@ export type TAppConnectionInput = { id| TCamundaConnectionInput| TWindmillConnectionInput| TAuth0ConnectionInput+ | THCVaultConnectionInput+ | TLdapConnectionInput| TTeamCityConnectionInput);@@@ -161,7 -161,7 +169,8 @@@ export type TAppConnectionConfig| TCamundaConnectionConfig| TWindmillConnectionConfig| TAuth0ConnectionConfig+ | THCVaultConnectionConfig+ | TLdapConnectionConfig| TTeamCityConnectionConfig;export type TValidateAppConnectionCredentialsSchema =@@@ -179,7 -179,7 +188,8 @@@| TValidateVercelConnectionCredentialsSchema| TValidateWindmillConnectionCredentialsSchema| TValidateAuth0ConnectionCredentialsSchema+ | TValidateHCVaultConnectionCredentialsSchema+ | TValidateLdapConnectionCredentialsSchema| TValidateTeamCityConnectionCredentialsSchema;export type TListAwsConnectionKmsKeys = {diff --cc backend/src/services/secret-v2-bridge/secret-v2-bridge-dal.tsindex 05fc7cd350,3fa2ccc073..64970b6107--- a/backend/src/services/secret-v2-bridge/secret-v2-bridge-dal.ts+++ b/backend/src/services/secret-v2-bridge/secret-v2-bridge-dal.ts@@@ -7,6 -7,6 +7,7 @@@ import { ProjectType, SecretsV2Schema,import { TKeyStoreFactory } from "@app/keystore/keystore";import { getConfig } from "@app/lib/config/env";import { generateCacheKeyFromData } from "@app/lib/crypto/cache";++import { applyJitter } from "@app/lib/dates";import { BadRequestError, DatabaseError, NotFoundError } from "@app/lib/errors";import {buildFindFilter,diff --cc docs/mint.jsonindex ddf8c88995,69470e2b76..062ec59167--- a/docs/mint.json+++ b/docs/mint.json@@@ -432,8 -434,8 +434,9 @@@"integrations/app-connections/databricks","integrations/app-connections/gcp","integrations/app-connections/github",+ "integrations/app-connections/hashicorp-vault","integrations/app-connections/humanitec",+ "integrations/app-connections/ldap","integrations/app-connections/mssql","integrations/app-connections/postgres","integrations/app-connections/teamcity",diff --cc frontend/src/helpers/appConnections.tsindex 2893927186,02c0fbbcbd..0c81519c22--- a/frontend/src/helpers/appConnections.ts+++ b/frontend/src/helpers/appConnections.ts@@@ -11,8 -18,8 +18,9 @@@ importDatabricksConnectionMethod,GcpConnectionMethod,GitHubConnectionMethod,+ HCVaultConnectionMethod,HumanitecConnectionMethod,+ LdapConnectionMethod,MsSqlConnectionMethod,PostgresConnectionMethod,TAppConnection,@@@ -46,7 -53,7 +54,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.HCVault]: { name: "Hashicorp Vault", image: "Vault.png" },+ [AppConnection.LDAP]: { name: "LDAP", image: "LDAP.png", size: 65 },[AppConnection.TeamCity]: { name: "TeamCity", image: "TeamCity.png" }};@@@ -81,8 -87,8 +90,10 @@@ export const getAppConnectionMethodDetareturn { name: "Access Token", icon: faKey };case Auth0ConnectionMethod.ClientCredentials:return { name: "Client Credentials", icon: faServer };+ case HCVaultConnectionMethod.AppRole:+ return { name: "App Role", icon: faUser };+ case LdapConnectionMethod.SimpleBind:+ return { name: "Simple Bind", icon: faLink };default:throw new Error(`Unhandled App Connection Method: ${method}`);}diff --cc frontend/src/hooks/api/appConnections/enums.tsindex 9b1e060588,5b9d3fad48..fc76cea366--- a/frontend/src/hooks/api/appConnections/enums.ts+++ b/frontend/src/hooks/api/appConnections/enums.ts@@@ -13,6 -13,6 +13,7 @@@ export enum AppConnectionCamunda = "camunda",Windmill = "windmill",Auth0 = "auth0",+ HCVault = "hashicorp-vault",+ LDAP = "ldap",TeamCity = "teamcity"}diff --cc frontend/src/hooks/api/appConnections/types/app-options.tsindex 16b0f1b631,10c1076cd1..88db276a0a--- 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 = TAapp: AppConnection.Auth0;};+export type THCVaultConnectionOption = TAppConnectionOptionBase & {+ app: AppConnection.HCVault;+};++ export type TLdapConnectionOption = TAppConnectionOptionBase & {+ app: AppConnection.LDAP;+ };+export type TTeamCityConnectionOption = TAppConnectionOptionBase & {app: AppConnection.TeamCity;};@@@ -108,6 -107,6 +112,7 @@@ export type TAppConnectionOptionMap =[AppConnection.Camunda]: TCamundaConnectionOption;[AppConnection.Windmill]: TWindmillConnectionOption;[AppConnection.Auth0]: TAuth0ConnectionOption;+ [AppConnection.HCVault]: THCVaultConnectionOption;+ [AppConnection.LDAP]: TLdapConnectionOption;[AppConnection.TeamCity]: TTeamCityConnectionOption;};diff --cc frontend/src/hooks/api/appConnections/types/index.tsindex 55ead27520,2eabee1f2c..9c56179693--- a/frontend/src/hooks/api/appConnections/types/index.ts+++ b/frontend/src/hooks/api/appConnections/types/index.ts@@@ -8,8 -8,8 +8,9 @@@ import { TCamundaConnection } from "./cimport { TDatabricksConnection } from "./databricks-connection";import { TGcpConnection } from "./gcp-connection";import { TGitHubConnection } from "./github-connection";+import { THCVaultConnection } from "./hc-vault-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";@@@ -25,8 -25,8 +26,9 @@@ export * from "./camunda-connection"export * from "./databricks-connection";export * from "./gcp-connection";export * from "./github-connection";+export * from "./hc-vault-connection";export * from "./humanitec-connection";+ export * from "./ldap-connection";export * from "./mssql-connection";export * from "./postgres-connection";export * from "./teamcity-connection";@@@ -49,7 -49,7 +51,8 @@@ export type TAppConnection| TCamundaConnection| TWindmillConnection| TAuth0Connection+ | THCVaultConnection+ | TLdapConnection| TTeamCityConnection;export type TAvailableAppConnection = Pick<TAppConnection, "name" | "id">;@@@ -92,6 -92,6 +95,7 @@@ export type TAppConnectionMap =[AppConnection.Camunda]: TCamundaConnection;[AppConnection.Windmill]: TWindmillConnection;[AppConnection.Auth0]: TAuth0Connection;+ [AppConnection.HCVault]: THCVaultConnection;+ [AppConnection.LDAP]: TLdapConnection;[AppConnection.TeamCity]: TTeamCityConnection;};diff --cc frontend/src/layouts/ProjectLayout/ProjectLayout.tsxindex dc64ccb124,a862c31a34..8533d70072--- a/frontend/src/layouts/ProjectLayout/ProjectLayout.tsx+++ b/frontend/src/layouts/ProjectLayout/ProjectLayout.tsx@@@ -13,8 -13,9 +13,9 @@@ importTBreadcrumbFormat} from "@app/components/v2";import {- useProjectPermission,ProjectPermissionActions,ProjectPermissionSub,++ useProjectPermission,useSubscription,useWorkspace} from "@app/context";diff --cc frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsxindex 24dae43701,f47de43dd6..c99b638578--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx@@@ -17,8 -17,8 +17,9 @@@ import { CamundaConnectionForm } from "import { DatabricksConnectionForm } from "./DatabricksConnectionForm";import { GcpConnectionForm } from "./GcpConnectionForm";import { GitHubConnectionForm } from "./GitHubConnectionForm";+import { HCVaultConnectionForm } from "./HCVaultConnectionForm";import { HumanitecConnectionForm } from "./HumanitecConnectionForm";+ import { LdapConnectionForm } from "./LdapConnectionForm";import { MsSqlConnectionForm } from "./MsSqlConnectionForm";import { PostgresConnectionForm } from "./PostgresConnectionForm";import { TeamCityConnectionForm } from "./TeamCityConnectionForm";@@@ -91,8 -91,8 +92,10 @@@ const CreateForm = ({ app, onComplete }return <WindmillConnectionForm onSubmit={onSubmit} />;case AppConnection.Auth0:return <Auth0ConnectionForm onSubmit={onSubmit} />;+ case AppConnection.HCVault:+ return <HCVaultConnectionForm onSubmit={onSubmit} />;+ case AppConnection.LDAP:+ return <LdapConnectionForm onSubmit={onSubmit} />;case AppConnection.TeamCity:return <TeamCityConnectionForm onSubmit={onSubmit} />;default:@@@ -159,10 -159,11 +162,13 @@@ const UpdateForm = ({ appConnection, onreturn <WindmillConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;case AppConnection.Auth0:return <Auth0ConnectionForm onSubmit={onSubmit} appConnection={appConnection} />;+ case AppConnection.HCVault:+ return <HCVaultConnectionForm 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}`);}