Skip to content

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

Merge branch 'main' into feat/adilsitos/eng-5344

varonix7576d2a4f5f2
diff --cc backend/src/lib/cron/cron-job.ts
index e1e2385cb0,bca88bb5f7..a8e79fd248
--- a/backend/src/lib/cron/cron-job.ts
+++ b/backend/src/lib/cron/cron-job.ts
@@@ -42,8 -42,8 +42,9 @@@ export const CronJobName =
AuditLogStreamOutboxCleanup: "audit-log-stream-outbox-cleanup",
LicenseUsageFlush: "license-usage-flush",
PamCredentialRotationQueueRotations: "pam-credential-rotation-queue-rotations",
+ MonthlyNativeIntegrationDeprecationNotice: "monthly-native-integration-deprecation-notice",
DailyAlertProcessing: "daily-alert-processing",
+ SecretScanningStuckScanReaper: "secret-scanning-stuck-scan-reaper",
InstanceUpdateCheck: "instance-update-check"
} as const;
diff --cc backend/src/services/integration/integration-service.ts
index 8eaeac96d5,ec942add2d..4bbda69cfa
--- a/backend/src/services/integration/integration-service.ts
+++ b/backend/src/services/integration/integration-service.ts
@@@ -63,8 -67,95 +65,9 @@@ export const integrationServiceFactory
kmsService,
secretDAL,
projectFolderGrantDAL,
- orgDAL
+ orgDAL,
+ licenseService
}: TIntegrationServiceFactoryDep) => {
- const createIntegration = async ({
- app,
- actor,
- actorOrgId,
- path,
- appId,
- owner,
- scope,
- actorId,
- region,
- url,
- isActive,
- metadata,
- secretPath,
- targetService,
- actorAuthMethod,
- targetServiceId,
- integrationAuthId,
- sourceEnvironment,
- targetEnvironment,
- targetEnvironmentId
- }: TCreateIntegrationDTO) => {
- const integrationAuth = await integrationAuthDAL.findById(integrationAuthId);
- if (!integrationAuth)
- throw new NotFoundError({ message: `Integration auth with ID '${integrationAuthId}' not found` });
-
- const { permission } = await permissionService.getProjectPermission({
- actor,
- actorId,
- projectId: integrationAuth.projectId,
- actorAuthMethod,
- actorOrgId,
- actionProjectType: ActionProjectType.SecretManager
- });
- ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionActions.Create, ProjectPermissionSub.Integrations);
-
- throwIfMissingSecretReadValueOrDescribePermission(permission, ProjectPermissionSecretActions.ReadValue, {
- environment: sourceEnvironment,
- secretPath
- });
-
- const folder = await folderDAL.findBySecretPath(integrationAuth.projectId, sourceEnvironment, secretPath);
- if (!folder) {
- throw new NotFoundError({
- message: `Folder with path '${secretPath}' not found in environment with slug'${sourceEnvironment}'`
- });
- }
-
- if (url) {
- await blockLocalAndPrivateIpAddresses(url);
- }
-
- const integration = await integrationDAL.create({
- envId: folder.envId,
- secretPath,
- isActive,
- integrationAuthId,
- targetEnvironmentId,
- targetEnvironment,
- targetServiceId,
- targetService,
- metadata,
- region,
- scope,
- owner,
- url,
- appId,
- path,
- app,
- integration: integrationAuth.integration
- });
-
- await secretQueueService.syncIntegrations({
- environment: sourceEnvironment,
- secretPath,
- projectId: integrationAuth.projectId
- });
- return {
- integration: {
- ...integration,
- environment: folder.environment
- },
- integrationAuth
- };
- };
-
const updateIntegration = async ({
actorId,
actor,