Skip to content

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

fix(audit-log-stream): describe failed deliveries without implying the events are lost

Calvin9734fb3ca03e
diff --git a/backend/src/ee/services/audit-log-stream-outbox/audit-log-stream-outbox-service.ts b/backend/src/ee/services/audit-log-stream-outbox/audit-log-stream-outbox-service.ts
index f66c86558a..035bb832db 100644
--- a/backend/src/ee/services/audit-log-stream-outbox/audit-log-stream-outbox-service.ts
+++ b/backend/src/ee/services/audit-log-stream-outbox/audit-log-stream-outbox-service.ts
@@ -53,7 +53,7 @@ export const STALE_CLAIM_THRESHOLD_MS = 10 * 60_000;
const STALE_SWEEP_BATCH_SIZE = 1_000;
const STALE_SWEEP_MAX_BATCHES = 10;
// Shown to customers in the delivery-failed alert, where a stale claim has no provider error to report.
-const STALE_CLAIM_DROP_MESSAGE = "Events were dropped because the delivery worker stopped during their final attempt.";
+const STALE_CLAIM_DROP_MESSAGE = "The delivery worker stopped during the final delivery attempt.";
const STREAM_CREDENTIALS_DECRYPT_MESSAGE =
"Could not decrypt this stream's credentials. Check that the organization's KMS key is available, then update the stream's credentials.";
diff --git a/backend/src/services/alert/providers/audit-log-stream-alert-provider.ts b/backend/src/services/alert/providers/audit-log-stream-alert-provider.ts
index f988ee1d0d..867c2b3649 100644
--- a/backend/src/services/alert/providers/audit-log-stream-alert-provider.ts
+++ b/backend/src/services/alert/providers/audit-log-stream-alert-provider.ts
@@ -92,8 +92,8 @@ export const auditLogStreamAlertProviderFactory = ({
severity: "critical",
summary:
targets.length === 1
- ? `Audit log events are being dropped on the ${providerLabel(first)} stream`
- : `Audit log events are being dropped on ${targets.length} streams`,
+ ? `Audit log events failed to reach the ${providerLabel(first)} stream`
+ : `Audit log events failed to reach ${targets.length} streams`,
items: targets.map((target) => ({
id: target.streamId,
title: `${providerLabel(target)} stream`,
@@ -101,7 +101,7 @@ export const auditLogStreamAlertProviderFactory = ({
fields: [
{ label: "Provider", value: providerLabel(target) },
{ label: "Error", value: target.errorMessage },
- { label: "Dropped Events", value: String(target.droppedCount) },
+ { label: "Undelivered Events", value: String(target.droppedCount) },
{ label: "Failing Since", value: formatUtcDate(target.failingSince) }
]
}))
diff --git a/frontend/src/hooks/api/alerts/types.ts b/frontend/src/hooks/api/alerts/types.ts
index 049960698a..7464d72bd3 100644
--- a/frontend/src/hooks/api/alerts/types.ts
+++ b/frontend/src/hooks/api/alerts/types.ts
@@ -95,7 +95,7 @@ export const ALERT_EVENT_TYPE_DESCRIPTIONS: Record<AlertEventType, string> = {
[AlertEventType.IdentityAuthMethodChanged]:
"Notify whenever an auth method is added, updated, or removed, or one of its credentials is created, updated, or revoked.",
[AlertEventType.AuditLogStreamDeliveryFailed]:
- "Notify when audit log events are being dropped because an external log stream keeps failing to deliver them."
+ "Notify when an external log stream fails to deliver audit log events after all retries."
};
export const ALERT_CHANNEL_TYPE_LABELS: Record<AlertChannelType, string> = {