Skip to content

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

Merge branch 'heads/main' into daniel/ms-teams-integration

Daniel Hougaard1ec7c6721268
diff --cc backend/src/@types/fastify.d.ts
index 2967539151,34d816b9b5..92c22874e7
--- a/backend/src/@types/fastify.d.ts
+++ b/backend/src/@types/fastify.d.ts
@@@ -242,7 -246,8 +247,9 @@@ declare module "fastify"
kmipOperation: TKmipOperationServiceFactory;
gateway: TGatewayServiceFactory;
secretRotationV2: TSecretRotationV2ServiceFactory;
+ microsoftTeams: TMicrosoftTeamsServiceFactory;
+ assumePrivileges: TAssumePrivilegeServiceFactory;
+ githubOrgSync: TGithubOrgSyncServiceFactory;
};
// this is exclusive use for middlewares in which we need to inject data
// everywhere else access using service layer
diff --cc backend/src/@types/knex.d.ts
index c52dd4725e,091199938d..7ac57afb25
--- a/backend/src/@types/knex.d.ts
+++ b/backend/src/@types/knex.d.ts
@@@ -423,16 -426,11 +426,21 @@@ import
TWorkflowIntegrationsInsert,
TWorkflowIntegrationsUpdate
} from "@app/db/schemas";
+import {
+ TMicrosoftTeamsIntegrations,
+ TMicrosoftTeamsIntegrationsInsert,
+ TMicrosoftTeamsIntegrationsUpdate
+} from "@app/db/schemas/microsoft-teams-integrations";
+import {
+ TProjectMicrosoftTeamsConfigs,
+ TProjectMicrosoftTeamsConfigsInsert,
+ TProjectMicrosoftTeamsConfigsUpdate
+} from "@app/db/schemas/project-microsoft-teams-configs";
+ import {
+ TSecretReminderRecipients,
+ TSecretReminderRecipientsInsert,
+ TSecretReminderRecipientsUpdate
+ } from "@app/db/schemas/secret-reminder-recipients";
declare module "knex" {
namespace Knex {
@@@ -1004,15 -1002,15 +1012,25 @@@ declare module "knex/types/tables"
TSecretRotationV2SecretMappingsInsert,
TSecretRotationV2SecretMappingsUpdate
>;
+ [TableName.MicrosoftTeamsIntegrations]: KnexOriginal.CompositeTableType<
+ TMicrosoftTeamsIntegrations,
+ TMicrosoftTeamsIntegrationsInsert,
+ TMicrosoftTeamsIntegrationsUpdate
+ >;
+ [TableName.ProjectMicrosoftTeamsConfigs]: KnexOriginal.CompositeTableType<
+ TProjectMicrosoftTeamsConfigs,
+ TProjectMicrosoftTeamsConfigsInsert,
+ TProjectMicrosoftTeamsConfigsUpdate
+ >;
+ [TableName.SecretReminderRecipients]: KnexOriginal.CompositeTableType<
+ TSecretReminderRecipients,
+ TSecretReminderRecipientsInsert,
+ TSecretReminderRecipientsUpdate
+ >;
+ [TableName.GithubOrgSyncConfig]: KnexOriginal.CompositeTableType<
+ TGithubOrgSyncConfigs,
+ TGithubOrgSyncConfigsInsert,
+ TGithubOrgSyncConfigsUpdate
+ >;
}
}
diff --cc backend/src/db/schemas/models.ts
index b0992f368c,dd23c26da2..e5af10cd68
--- a/backend/src/db/schemas/models.ts
+++ b/backend/src/db/schemas/models.ts
@@@ -147,8 -147,8 +147,10 @@@ export enum TableName
KmipClientCertificates = "kmip_client_certificates",
SecretRotationV2 = "secret_rotations_v2",
SecretRotationV2SecretMapping = "secret_rotation_v2_secret_mappings",
+ MicrosoftTeamsIntegrations = "microsoft_teams_integrations",
- ProjectMicrosoftTeamsConfigs = "project_microsoft_teams_configs"
++ ProjectMicrosoftTeamsConfigs = "project_microsoft_teams_configs",
+ SecretReminderRecipients = "secret_reminder_recipients",
+ GithubOrgSyncConfig = "github_org_sync_configs"
}
export type TImmutableDBKeys = "id" | "createdAt" | "updatedAt";
diff --cc backend/src/ee/services/audit-log/audit-log-types.ts
index fe3408e8ab,b6527f3f4d..9142212a41
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@@ -325,14 -321,8 +325,17 @@@ export enum EventType
SECRET_ROTATION_ROTATE_SECRETS = "secret-rotation-rotate-secrets",
PROJECT_ACCESS_REQUEST = "project-access-request",
+
+ MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_CREATE = "microsoft-teams-workflow-integration-create",
+ MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_DELETE = "microsoft-teams-workflow-integration-delete",
+ MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_UPDATE = "microsoft-teams-workflow-integration-update",
+ MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_CHECK_INSTALLATION_STATUS = "microsoft-teams-workflow-integration-check-installation-status",
+ MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_GET_TEAMS = "microsoft-teams-workflow-integration-get-teams",
+ MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_GET = "microsoft-teams-workflow-integration-get",
- MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_LIST = "microsoft-teams-workflow-integration-list"
++ MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_LIST = "microsoft-teams-workflow-integration-list",
++
+ PROJECT_ASSUME_PRIVILEGE_SESSION_START = "project-assume-privileges-session-start",
+ PROJECT_ASSUME_PRIVILEGE_SESSION_END = "project-assume-privileges-session-end"
}
export const filterableSecretEvents: EventType[] = [
diff --cc backend/src/server/routes/index.ts
index a195ee5c29,8ceeba6486..2b841babdd
--- a/backend/src/server/routes/index.ts
+++ b/backend/src/server/routes/index.ts
@@@ -420,10 -422,10 +425,12 @@@ export const registerRoutes = async
const orgGatewayConfigDAL = orgGatewayConfigDALFactory(db);
const gatewayDAL = gatewayDALFactory(db);
const projectGatewayDAL = projectGatewayDALFactory(db);
+ const secretReminderRecipientsDAL = secretReminderRecipientsDALFactory(db);
+ const githubOrgSyncDAL = githubOrgSyncDALFactory(db);
const secretRotationV2DAL = secretRotationV2DALFactory(db, folderDAL);
+ const microsoftTeamsIntegrationDAL = microsoftTeamsIntegrationDALFactory(db);
+ const projectMicrosoftTeamsConfigDAL = projectMicrosoftTeamsConfigDALFactory(db);
const permissionService = permissionServiceFactory({
permissionDAL,
@@@ -1698,7 -1701,8 +1723,9 @@@
kmipOperation: kmipOperationService,
gateway: gatewayService,
secretRotationV2: secretRotationV2Service,
- microsoftTeams: microsoftTeamsService
++ microsoftTeams: microsoftTeamsService,
+ assumePrivileges: assumePrivilegeService,
+ githubOrgSync: githubOrgSyncConfigService
});
const cronJobs: CronJob[] = [];