Skip to content

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

fix reviews

Thiago Araujo da Silvaf1ed3dc9c5ae
diff --git a/backend/src/ee/services/audit-log-stream-outbox/audit-log-stream-outbox-dal.ts b/backend/src/ee/services/audit-log-stream-outbox/audit-log-stream-outbox-dal.ts
index e03d2ae735..0aabf65508 100644
--- a/backend/src/ee/services/audit-log-stream-outbox/audit-log-stream-outbox-dal.ts
+++ b/backend/src/ee/services/audit-log-stream-outbox/audit-log-stream-outbox-dal.ts
@@ -125,7 +125,7 @@ export const auditLogStreamOutboxDALFactory = (db: TDbClient) => {
streamId: row.streamId,
orgId: row.orgId,
payload: JSON.stringify(row.payload),
- attempts: row.attempts,
+ attempts: row.attempts + 1,
lastError: errorMessage,
originalCreatedAt: row.createdAt
}));
diff --git a/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx b/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx
index b7ccd736f8..6733d17132 100644
--- a/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx
@@ -47,9 +47,17 @@ export const CustomProviderAuditLogStreamForm = ({ auditLogStream, onSubmit }: P
const form = useForm<FormData>({
resolver: zodResolver(formSchema),
- defaultValues: auditLogStream ?? {
- provider: LogProvider.Custom
- }
+ defaultValues: auditLogStream
+ ? {
+ ...auditLogStream,
+ // Any payload missing streamMode (legacy stream, partial cache) resolves to
+ // Batch — the system default — so the switch reflects the true mode rather
+ // than rendering unchecked.
+ streamMode: auditLogStream.streamMode ?? StreamMode.Batch
+ }
+ : {
+ provider: LogProvider.Custom
+ }
});
const {