Skip to content

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

Merge remote-tracking branch 'origin/main' into feat/ENG-3942

Carlos Monastyrskie70162dad314
diff --cc backend/src/ee/services/audit-log/audit-log-types.ts
index 40e574018d,6ceaa77785..cf0f573f8e
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@@ -3998,22 -4009,9 +4044,24 @@@ interface PamResourceDeleteEvent
};
}
+interface UpdateCertificateRenewalConfigEvent {
+ type: EventType.UPDATE_CERTIFICATE_RENEWAL_CONFIG;
+ metadata: {
+ certificateId: string;
+ renewBeforeDays: string;
+ };
+}
+
+interface DisableCertificateRenewalConfigEvent {
+ type: EventType.DISABLE_CERTIFICATE_RENEWAL_CONFIG;
+ metadata: {
+ certificateId: string;
+ };
+}
+
export type Event =
+ | CreateSubOrganizationEvent
+ | UpdateSubOrganizationEvent
| GetSecretsEvent
| GetSecretEvent
| CreateSecretEvent
diff --cc backend/src/queue/queue-service.ts
index 9f5766e2a2,9d8c472f41..3e6b1dd190
--- a/backend/src/queue/queue-service.ts
+++ b/backend/src/queue/queue-service.ts
@@@ -78,7 -78,7 +78,8 @@@ export enum QueueName
SecretReminderMigration = "secret-reminder-migration",
UserNotification = "user-notification",
HealthAlert = "health-alert",
- CertificateV3AutoRenewal = "certificate-v3-auto-renewal"
++ CertificateV3AutoRenewal = "certificate-v3-auto-renewal",
+ PamAccountRotation = "pam-account-rotation"
}
export enum QueueJobs {
@@@ -128,7 -128,7 +129,8 @@@
SecretReminderMigration = "secret-reminder-migration",
UserNotification = "user-notification-job",
HealthAlert = "health-alert",
- CertificateV3DailyAutoRenewal = "certificate-v3-daily-auto-renewal"
++ CertificateV3DailyAutoRenewal = "certificate-v3-daily-auto-renewal",
+ PamAccountRotation = "pam-account-rotation"
}
export type TQueueJobTypes = {
@@@ -359,10 -359,10 +361,14 @@@
name: QueueJobs.HealthAlert;
payload: undefined;
};
+ [QueueName.CertificateV3AutoRenewal]: {
+ name: QueueJobs.CertificateV3DailyAutoRenewal;
+ payload: undefined;
+ };
+ [QueueName.PamAccountRotation]: {
+ name: QueueJobs.PamAccountRotation;
+ payload: undefined;
+ };
};
const SECRET_SCANNING_JOBS = [
diff --cc backend/src/server/routes/index.ts
index a6e85e1762,b42d018509..5df10e5e08
--- a/backend/src/server/routes/index.ts
+++ b/backend/src/server/routes/index.ts
@@@ -2292,8 -2330,7 +2341,8 @@@ export const registerRoutes = async
await dailyReminderQueueService.startSecretReminderMigrationJob();
await dailyExpiringPkiItemAlert.startSendingAlerts();
await pkiSubscriberQueue.startDailyAutoRenewalJob();
+ await certificateV3Queue.startDailyAutoRenewalJob();
- await kmsService.startService();
+ await kmsService.startService(hsmStatus);
await microsoftTeamsService.start();
await dynamicSecretQueueService.init();
await eventBusService.init();