feat(dynamic-secrets): retry lease revocation when failing

This commit is contained in:
Daniel Hougaard
2025-11-25 10:11:20 -08:00
parent 3847d64b0d
commit d71eac815d
7 changed files with 434 additions and 126 deletions
+8
View File
@@ -61,6 +61,7 @@ export enum QueueName {
SecretPushEventScan = "secret-push-event-scan",
UpgradeProjectToGhost = "upgrade-project-to-ghost",
DynamicSecretRevocation = "dynamic-secret-revocation",
DynamicSecretRevocationFailedRetry = "dynamic-secret-revocation-failed-retry",
CaCrlRotation = "ca-crl-rotation",
CaLifecycle = "ca-lifecycle", // parent queue to ca-order-certificate-for-subscriber
SecretReplication = "secret-replication",
@@ -101,6 +102,7 @@ export enum QueueJobs {
UpgradeProjectToGhost = "upgrade-project-to-ghost-job",
DynamicSecretRevocation = "dynamic-secret-revocation",
DynamicSecretPruning = "dynamic-secret-pruning",
DynamicSecretRevocationFailedRetry = "dynamic-secret-revocation-failed-retry",
CaCrlRotation = "ca-crl-rotation-job",
SecretReplication = "secret-replication",
SecretSync = "secret-sync", // parent queue to push integration sync, webhook, and secret replication
@@ -219,6 +221,12 @@ export type TQueueJobTypes = {
name: QueueJobs.TelemetryInstanceStats;
payload: undefined;
};
[QueueName.DynamicSecretRevocationFailedRetry]: {
name: QueueJobs.DynamicSecretRevocationFailedRetry;
payload: {
leaseId: string;
};
};
[QueueName.DynamicSecretRevocation]:
| {
name: QueueJobs.DynamicSecretRevocation;