mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 13:27:22 +00:00
Added secret reminder to queue service
This commit is contained in:
committed by
Akhil Mohan
parent
2dae59c6be
commit
c1662d6db5
@@ -9,6 +9,7 @@ import {
|
|||||||
|
|
||||||
export enum QueueName {
|
export enum QueueName {
|
||||||
SecretRotation = "secret-rotation",
|
SecretRotation = "secret-rotation",
|
||||||
|
SecretReminder = "secret-reminder",
|
||||||
AuditLog = "audit-log",
|
AuditLog = "audit-log",
|
||||||
IntegrationSync = "sync-integrations",
|
IntegrationSync = "sync-integrations",
|
||||||
SecretWebhook = "secret-webhook",
|
SecretWebhook = "secret-webhook",
|
||||||
@@ -17,6 +18,7 @@ export enum QueueName {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum QueueJobs {
|
export enum QueueJobs {
|
||||||
|
SecretReminder = "secret-reminder-job",
|
||||||
SecretRotation = "secret-rotation-job",
|
SecretRotation = "secret-rotation-job",
|
||||||
AuditLog = "audit-log-job",
|
AuditLog = "audit-log-job",
|
||||||
SecWebhook = "secret-webhook-trigger",
|
SecWebhook = "secret-webhook-trigger",
|
||||||
@@ -25,6 +27,16 @@ export enum QueueJobs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type TQueueJobTypes = {
|
export type TQueueJobTypes = {
|
||||||
|
[QueueName.SecretReminder]: {
|
||||||
|
payload: {
|
||||||
|
projectId: string;
|
||||||
|
secretId: string;
|
||||||
|
repeatDays: number;
|
||||||
|
note: string | undefined | null;
|
||||||
|
};
|
||||||
|
name: QueueJobs.SecretReminder;
|
||||||
|
};
|
||||||
|
|
||||||
[QueueName.SecretRotation]: {
|
[QueueName.SecretRotation]: {
|
||||||
payload: { rotationId: string };
|
payload: { rotationId: string };
|
||||||
name: QueueJobs.SecretRotation;
|
name: QueueJobs.SecretRotation;
|
||||||
|
|||||||
Reference in New Issue
Block a user