Skip to content

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

fix(pki-sync): reject preflight commands on unsupported destinations, stop the daily check overwriting real delivery failures, and surface it in audit logs

Carlos Monastyrski312164201f70
diff --git a/backend/src/db/migrations/20260811151204_add-pki-sync-preflight-discovery-index.ts b/backend/src/db/migrations/20260811151204_add-pki-sync-preflight-discovery-index.ts
index d9f0be81fd..7f862e90e0 100644
--- a/backend/src/db/migrations/20260811151204_add-pki-sync-preflight-discovery-index.ts
+++ b/backend/src/db/migrations/20260811151204_add-pki-sync-preflight-discovery-index.ts
@@ -3,15 +3,47 @@ import { Knex } from "knex";
import { TableName } from "../schemas";
const PREFLIGHT_DISCOVERY_INDEX = "idx_pki_syncs_preflight_discovery";
+const MIGRATION_TIMEOUT = 60 * 60 * 1000; // 60 minutes
+const MIGRATION_LOCK_TIMEOUT = 30 * 1000; // 30 seconds
export async function up(knex: Knex): Promise<void> {
- await knex.raw(`
- CREATE INDEX IF NOT EXISTS "${PREFLIGHT_DISCOVERY_INDEX}"
- ON ${TableName.PkiSync} ("createdAt")
- WHERE ("syncOptions" ->> 'preflightCommand') IS NOT NULL
- `);
+ const connection = await knex.client.acquireConnection();
+ const raw = (sql: string) => knex.raw(sql).connection(connection);
+
+ try {
+ const stmtResult = await raw("SHOW statement_timeout");
+ const originalStatementTimeout = stmtResult.rows[0].statement_timeout;
+ const lockResult = await raw("SHOW lock_timeout");
+ const originalLockTimeout = lockResult.rows[0].lock_timeout;
+
+ try {
+ await raw(`SET statement_timeout = ${MIGRATION_TIMEOUT}`);
+ await raw(`SET lock_timeout = ${MIGRATION_LOCK_TIMEOUT}`);
+
+ const invalid = await raw(
+ `SELECT 1 FROM pg_class c JOIN pg_index i ON i.indexrelid = c.oid WHERE c.relname = '${PREFLIGHT_DISCOVERY_INDEX}' AND NOT i.indisvalid`
+ );
+ if (invalid.rows.length > 0) {
+ await raw(`DROP INDEX CONCURRENTLY IF EXISTS "${PREFLIGHT_DISCOVERY_INDEX}"`);
+ }
+
+ await raw(`
+ CREATE INDEX CONCURRENTLY IF NOT EXISTS "${PREFLIGHT_DISCOVERY_INDEX}"
+ ON ${TableName.PkiSync} ("createdAt")
+ WHERE ("syncOptions" ->> 'preflightCommand') IS NOT NULL
+ `);
+ } finally {
+ await raw(`SET statement_timeout = '${originalStatementTimeout}'`);
+ await raw(`SET lock_timeout = '${originalLockTimeout}'`);
+ }
+ } finally {
+ await knex.client.releaseConnection(connection);
+ }
}
export async function down(knex: Knex): Promise<void> {
- await knex.raw(`DROP INDEX IF EXISTS "${PREFLIGHT_DISCOVERY_INDEX}"`);
+ await knex.raw(`DROP INDEX CONCURRENTLY IF EXISTS "${PREFLIGHT_DISCOVERY_INDEX}"`);
}
+
+const config = { transaction: false };
+export { config };
diff --git a/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-schemas.ts b/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-schemas.ts
index 52c3374f62..5cb658409b 100644
--- a/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-schemas.ts
+++ b/backend/src/services/pki-sync/aws-certificate-manager/aws-certificate-manager-pki-sync-schemas.ts
@@ -18,6 +18,7 @@ const AwsCertificateManagerPkiSyncOptionsSchema = z.object({
canRemoveCertificates: z.boolean().default(true),
includeRootCa: z.boolean().default(false),
preserveArn: z.boolean().default(true),
+ preflightCommand: HostCommandSchema,
postSyncCommand: HostCommandSchema,
certificateNameSchema: z
.string()
diff --git a/backend/src/services/pki-sync/aws-elastic-load-balancer/aws-elastic-load-balancer-pki-sync-schemas.ts b/backend/src/services/pki-sync/aws-elastic-load-balancer/aws-elastic-load-balancer-pki-sync-schemas.ts
index 8fd00a9de3..fd9eb8b26d 100644
--- a/backend/src/services/pki-sync/aws-elastic-load-balancer/aws-elastic-load-balancer-pki-sync-schemas.ts
+++ b/backend/src/services/pki-sync/aws-elastic-load-balancer/aws-elastic-load-balancer-pki-sync-schemas.ts
@@ -27,6 +27,7 @@ const AwsElasticLoadBalancerPkiSyncOptionsSchema = z.object({
preserveArn: z.boolean().default(true),
includeRootCa: z.boolean().default(false),
certificateNameSchema: z.string().optional(),
+ preflightCommand: HostCommandSchema,
postSyncCommand: HostCommandSchema
});
diff --git a/backend/src/services/pki-sync/aws-secrets-manager/aws-secrets-manager-pki-sync-schemas.ts b/backend/src/services/pki-sync/aws-secrets-manager/aws-secrets-manager-pki-sync-schemas.ts
index b0aba850db..f18a684e4a 100644
--- a/backend/src/services/pki-sync/aws-secrets-manager/aws-secrets-manager-pki-sync-schemas.ts
+++ b/backend/src/services/pki-sync/aws-secrets-manager/aws-secrets-manager-pki-sync-schemas.ts
@@ -27,6 +27,7 @@ const AwsSecretsManagerPkiSyncOptionsSchema = z.object({
includeRootCa: z.boolean().default(false),
preserveSecretOnRenewal: z.boolean().default(true),
updateExistingCertificates: z.boolean().default(true),
+ preflightCommand: HostCommandSchema,
postSyncCommand: HostCommandSchema,
certificateNameSchema: z
.string()
diff --git a/backend/src/services/pki-sync/azure-key-vault/azure-key-vault-pki-sync-schemas.ts b/backend/src/services/pki-sync/azure-key-vault/azure-key-vault-pki-sync-schemas.ts
index 4fb0e5467b..e601661395 100644
--- a/backend/src/services/pki-sync/azure-key-vault/azure-key-vault-pki-sync-schemas.ts
+++ b/backend/src/services/pki-sync/azure-key-vault/azure-key-vault-pki-sync-schemas.ts
@@ -21,6 +21,7 @@ export const AzureKeyVaultPkiSyncOptionsSchema = z.object({
canRemoveCertificates: z.boolean().default(true),
includeRootCa: z.boolean().default(false),
enableVersioning: z.boolean().default(true),
+ preflightCommand: HostCommandSchema,
postSyncCommand: HostCommandSchema,
certificateNameSchema: z
.string()
diff --git a/backend/src/services/pki-sync/cloudflare-custom-certificate/cloudflare-custom-certificate-pki-sync-schemas.ts b/backend/src/services/pki-sync/cloudflare-custom-certificate/cloudflare-custom-certificate-pki-sync-schemas.ts
index 261eaac9c3..3c8f50f02e 100644
--- a/backend/src/services/pki-sync/cloudflare-custom-certificate/cloudflare-custom-certificate-pki-sync-schemas.ts
+++ b/backend/src/services/pki-sync/cloudflare-custom-certificate/cloudflare-custom-certificate-pki-sync-schemas.ts
@@ -16,6 +16,7 @@ export const CloudflareCustomCertificatePkiSyncConfigSchema = z.object({
// API-facing schema - only exposes user-configurable options
export const CloudflareCustomCertificatePkiSyncOptionsSchema = z.object({
canRemoveCertificates: z.boolean().default(true),
+ preflightCommand: HostCommandSchema,
postSyncCommand: HostCommandSchema,
certificateNameSchema: z
.string()
diff --git a/backend/src/services/pki-sync/nutanix-prism-central/nutanix-prism-central-pki-sync-schemas.ts b/backend/src/services/pki-sync/nutanix-prism-central/nutanix-prism-central-pki-sync-schemas.ts
index b14f819ac1..0cd575e7db 100644
--- a/backend/src/services/pki-sync/nutanix-prism-central/nutanix-prism-central-pki-sync-schemas.ts
+++ b/backend/src/services/pki-sync/nutanix-prism-central/nutanix-prism-central-pki-sync-schemas.ts
@@ -14,6 +14,7 @@ export const NutanixPrismCentralPkiSyncConfigSchema = z.object({
export const NutanixPrismCentralPkiSyncOptionsSchema = z.object({
canImportCertificates: z.literal(false).default(false),
canRemoveCertificates: z.literal(false).default(false),
+ preflightCommand: HostCommandSchema,
postSyncCommand: HostCommandSchema
});
diff --git a/backend/src/services/pki-sync/pki-sync-dal.ts b/backend/src/services/pki-sync/pki-sync-dal.ts
index cdb61d022e..567bdce2b1 100644
--- a/backend/src/services/pki-sync/pki-sync-dal.ts
+++ b/backend/src/services/pki-sync/pki-sync-dal.ts
@@ -338,8 +338,7 @@ export const pkiSyncDALFactory = (db: TDbClient) => {
.where((builder) => {
// eslint-disable-next-line @typescript-eslint/no-misused-promises
void builder
- .whereNot("syncStatus", PkiSyncStatus.Failed)
- .orWhereNull("lastSyncMessage")
+ .whereNull("lastSyncMessage")
.orWhereRaw(`left("lastSyncMessage", ?) = ?`, [failurePrefix.length, failurePrefix]);
})
.update({ syncStatus: PkiSyncStatus.Failed, lastSyncMessage: message });
diff --git a/backend/src/services/pki-sync/pki-sync-host-command-fns.ts b/backend/src/services/pki-sync/pki-sync-host-command-fns.ts
index 173fda038e..3c8fb7f957 100644
--- a/backend/src/services/pki-sync/pki-sync-host-command-fns.ts
+++ b/backend/src/services/pki-sync/pki-sync-host-command-fns.ts
@@ -253,19 +253,19 @@ export const runHostCommand = async (args: {
}
};
-export const hostCommandFailurePrefix = (kind: HostCommandKind): string => `${sentenceCase(kind)} failed`;
+export const hostCommandMessageSubject = (kind: HostCommandKind): string => sentenceCase(kind);
export const buildHostCommandFailureMessage = (
kind: HostCommandKind,
result: THostCommandResult,
- failurePrefix: string = hostCommandFailurePrefix(kind)
+ subject: string = hostCommandMessageSubject(kind)
): string => {
const detail = result.failureDetail ?? firstNonEmptyLine(result.output);
+
if (result.exitCode === undefined) {
- const reason = detail ?? result.error;
- return reason ? `${failurePrefix}: ${truncate(reason, MAX_FAILURE_DETAIL_CHARS)}` : failurePrefix;
+ return `${subject} could not run: the destination host could not be reached`;
}
- const prefix = `${failurePrefix} (exit ${result.exitCode})`;
+ const prefix = `${subject} failed (exit ${result.exitCode})`;
return detail ? `${prefix}: ${truncate(detail, MAX_FAILURE_DETAIL_CHARS)}` : prefix;
};
diff --git a/backend/src/services/pki-sync/pki-sync-post-sync-command-fns.test.ts b/backend/src/services/pki-sync/pki-sync-post-sync-command-fns.test.ts
index a86e07eb22..6f8ea2234d 100644
--- a/backend/src/services/pki-sync/pki-sync-post-sync-command-fns.test.ts
+++ b/backend/src/services/pki-sync/pki-sync-post-sync-command-fns.test.ts
@@ -41,8 +41,6 @@ describe("buildPostSyncCommandPlan", () => {
{ paths: ["/etc/ssl/certs/b.pem"], commonName: "b.example.com" }
];
- // A certificate can write some of its files and then fail. Those files are on the host, so the
- // command is told about them even though their certificate is reported failed.
test("lists every file actually written, including one whose certificate later failed", () => {
const plan = buildPostSyncCommandPlan({
...baseArgs,
@@ -339,16 +337,15 @@ describe("buildPostSyncCommandFailureMessage", () => {
expect(message).toBe("Post-sync command failed (exit 42)");
});
- test("falls back to the error when the command never ran, so there is no exit code", () => {
+ test("does not blame the command, or leak the transport error, when it never ran", () => {
const message = buildPostSyncCommandFailureMessage({
status: PkiSyncStatus.Failed,
durationMs: 10,
error: "Running a command on the host requires the SSH connection to use a gateway."
});
- expect(message).toBe(
- "Post-sync command failed: Running a command on the host requires the SSH connection to use a gateway."
- );
+ expect(message).toBe("Post-sync command could not run: the destination host could not be reached");
+ expect(message).not.toContain("SSH connection");
});
test("truncates a long detail so it fits the sync message column", () => {
diff --git a/backend/src/services/pki-sync/pki-sync-preflight-command-fns.test.ts b/backend/src/services/pki-sync/pki-sync-preflight-command-fns.test.ts
index 6122054ddc..75dd0942dc 100644
--- a/backend/src/services/pki-sync/pki-sync-preflight-command-fns.test.ts
+++ b/backend/src/services/pki-sync/pki-sync-preflight-command-fns.test.ts
@@ -3,8 +3,8 @@ import { describe, expect, test, vi } from "vitest";
import { PkiSyncStatus } from "./pki-sync-enums";
import { PemCertificateExtension, PkiSyncExportFormat } from "./pki-sync-export-fns";
import {
- hostCommandFailurePrefix,
HostCommandKind,
+ hostCommandMessageSubject,
renderHostCommandContext,
toPosixShellLiteral,
toPowerShellLiteral
@@ -20,7 +20,7 @@ import {
normalizeNewPreflightCommand,
PREFLIGHT_COMMAND_TIMEOUT_MS,
runPreflightCommand,
- SCHEDULED_PREFLIGHT_FAILURE_PREFIX
+ SCHEDULED_PREFLIGHT_MESSAGE_SUBJECT
} from "./pki-sync-preflight-command-fns";
import { TCertificateMap } from "./pki-sync-types";
@@ -146,7 +146,6 @@ describe("buildPreflightCommandPlan", () => {
test("allows run-wide variables for any number of certificates", () => {
const plan = planFor("echo {{certificateFiles}} in {{certificateDirectory}}", twoCertificates);
- // Only the first has a chain, so the file list is per-certificate rather than a fixed shape.
expect(plan?.context.certificateFiles).toEqual([
"/etc/ssl/certs/app.example.com.pem",
"/etc/ssl/certs/app.example.com.chain.pem",
@@ -274,19 +273,19 @@ describe("the scheduled check owns a prefix distinct from a sync run's", () => {
test("a run's blocked preflight does not match the scheduled prefix, so a later check cannot clear it", () => {
const fromRun = buildPreflightCommandFailureMessage(failure);
- expect(fromRun.startsWith(SCHEDULED_PREFLIGHT_FAILURE_PREFIX)).toBe(false);
+ expect(fromRun.startsWith(SCHEDULED_PREFLIGHT_MESSAGE_SUBJECT)).toBe(false);
});
test("the scheduled check's own message matches, so it can take over and clear it", () => {
const fromSchedule = buildScheduledPreflightFailureMessage(failure);
- expect(fromSchedule.startsWith(SCHEDULED_PREFLIGHT_FAILURE_PREFIX)).toBe(true);
+ expect(fromSchedule.startsWith(SCHEDULED_PREFLIGHT_MESSAGE_SUBJECT)).toBe(true);
expect(fromSchedule).toContain("nginx is down");
});
});
describe("preflight failure messages carry the prefix the DAL matches on", () => {
test("every failure shape starts with the prefix, so a check can take over and clear its own status", () => {
- const prefix = hostCommandFailurePrefix(HostCommandKind.Preflight);
+ const prefix = hostCommandMessageSubject(HostCommandKind.Preflight);
const shapes = [
{ status: PkiSyncStatus.Failed as const, exitCode: 3, durationMs: 12, failureDetail: "nginx is down" },
{ status: PkiSyncStatus.Failed as const, exitCode: 1, durationMs: 5 },
@@ -321,14 +320,14 @@ describe("buildPreflightCommandFailureMessage", () => {
).toBe("Preflight check failed (exit 1)");
});
- test("omits the exit code when the command never ran", () => {
+ test("says the check could not run, rather than blaming it, when the host was unreachable", () => {
expect(
buildPreflightCommandFailureMessage({
status: PkiSyncStatus.Failed,
durationMs: 10_001,
error: "command timed out after 10s"
})
- ).toBe("Preflight check failed: command timed out after 10s");
+ ).toBe("Preflight check could not run: the destination host could not be reached");
});
});
diff --git a/backend/src/services/pki-sync/pki-sync-preflight-command-fns.ts b/backend/src/services/pki-sync/pki-sync-preflight-command-fns.ts
index 199de328f6..f182b9083b 100644
--- a/backend/src/services/pki-sync/pki-sync-preflight-command-fns.ts
+++ b/backend/src/services/pki-sync/pki-sync-preflight-command-fns.ts
@@ -102,10 +102,10 @@ export const runPreflightCommand = (args: {
export const buildPreflightCommandFailureMessage = (result: TPreflightCommandResult): string =>
buildHostCommandFailureMessage(HostCommandKind.Preflight, result);
-export const SCHEDULED_PREFLIGHT_FAILURE_PREFIX = "Scheduled preflight check failed";
+export const SCHEDULED_PREFLIGHT_MESSAGE_SUBJECT = "Scheduled preflight check";
export const buildScheduledPreflightFailureMessage = (result: TPreflightCommandResult): string =>
- buildHostCommandFailureMessage(HostCommandKind.Preflight, result, SCHEDULED_PREFLIGHT_FAILURE_PREFIX);
+ buildHostCommandFailureMessage(HostCommandKind.Preflight, result, SCHEDULED_PREFLIGHT_MESSAGE_SUBJECT);
export const didPreflightCheckFail = (result: TPreflightCommandResult | undefined): boolean =>
result?.status === PkiSyncStatus.Failed;
diff --git a/backend/src/services/pki-sync/pki-sync-preflight-queue.ts b/backend/src/services/pki-sync/pki-sync-preflight-queue.ts
index 975e702c8b..291f57c658 100644
--- a/backend/src/services/pki-sync/pki-sync-preflight-queue.ts
+++ b/backend/src/services/pki-sync/pki-sync-preflight-queue.ts
@@ -28,7 +28,7 @@ import {
buildScheduledPreflightFailureMessage,
didPreflightCheckFail,
getPreflightCommand,
- SCHEDULED_PREFLIGHT_FAILURE_PREFIX,
+ SCHEDULED_PREFLIGHT_MESSAGE_SUBJECT,
TPreflightCommandResult
} from "./pki-sync-preflight-command-fns";
import { TCertificateMap, TPkiSyncRaw } from "./pki-sync-types";
@@ -126,7 +126,7 @@ export const pkiSyncPreflightQueueFactory = ({
const $recordCheckResult = async (pkiSync: TPkiSyncRaw, result: TPreflightCommandResult, isFinalAttempt: boolean) => {
if (!didPreflightCheckFail(result)) {
- const cleared = await pkiSyncDAL.clearReportedPreflightFailure(pkiSync.id, SCHEDULED_PREFLIGHT_FAILURE_PREFIX);
+ const cleared = await pkiSyncDAL.clearReportedPreflightFailure(pkiSync.id, SCHEDULED_PREFLIGHT_MESSAGE_SUBJECT);
if (cleared) {
logger.info(
`cron[${CronJobName.PkiSyncPreflightCheck}]: host recovered, cleared the reported failure [syncId=${pkiSync.id}]`
@@ -146,7 +146,7 @@ export const pkiSyncPreflightQueueFactory = ({
const reported = await pkiSyncDAL.reportPreflightFailure(
pkiSync.id,
truncateSyncMessage(buildScheduledPreflightFailureMessage(result)),
- SCHEDULED_PREFLIGHT_FAILURE_PREFIX
+ SCHEDULED_PREFLIGHT_MESSAGE_SUBJECT
);
if (!reported) {
logger.info(
@@ -187,10 +187,7 @@ export const pkiSyncPreflightQueueFactory = ({
)
.catch(() => null);
if (!connectionLock) {
- logger.info(
- `cron[${CronJobName.PkiSyncPreflightCheck}]: connection still busy after waiting, deferring to the next run [syncId=${syncId}] [connectionId=${pkiSync.connectionId}]`
- );
- return;
+ throw new Error(`Another check is already running on connection ${pkiSync.connectionId}`);
}
let lock: Awaited<ReturnType<typeof keyStore.acquireLock>> | null = null;
@@ -204,10 +201,7 @@ export const pkiSyncPreflightQueueFactory = ({
CONNECTION_SLOT_TTL_S
)) !== -1;
if (!admittedSlot) {
- logger.info(
- `cron[${CronJobName.PkiSyncPreflightCheck}]: connection is at its concurrency limit, skipping [syncId=${syncId}]`
- );
- return;
+ throw new Error(`Connection ${pkiSync.connectionId} is at its concurrency limit`);
}
lock = await keyStore
diff --git a/backend/src/services/pki-sync/pki-sync-service.ts b/backend/src/services/pki-sync/pki-sync-service.ts
index 85b05288ec..4d197e9da5 100644
--- a/backend/src/services/pki-sync/pki-sync-service.ts
+++ b/backend/src/services/pki-sync/pki-sync-service.ts
@@ -559,6 +559,9 @@ export const pkiSyncServiceFactory = ({
effectiveConnection = await appConnectionService.connectAppConnectionById(destinationApp, connectionId, actor);
}
+ const isDestinationConfigChanging =
+ Boolean(destinationConfig) && JSON.stringify(destinationConfig) !== JSON.stringify(pkiSync.destinationConfig);
+
const storedSyncOptions = pkiSync.syncOptions as Record<string, unknown> | undefined;
let resolvedSyncOptions = syncOptions;
if (syncOptions) {
@@ -591,7 +594,7 @@ export const pkiSyncServiceFactory = ({
pkiSync,
subscriberName: currentSubscriber?.name,
actor,
- isExecutionTargetChanging: Boolean(effectiveConnection),
+ isExecutionTargetChanging: Boolean(effectiveConnection) || isDestinationConfigChanging,
resolveConnection: async () =>
effectiveConnection ??
appConnectionService.connectAppConnectionById(
diff --git a/frontend/src/hooks/api/auditLogs/constants.tsx b/frontend/src/hooks/api/auditLogs/constants.tsx
index 017aa657a6..353c963b7b 100644
--- a/frontend/src/hooks/api/auditLogs/constants.tsx
+++ b/frontend/src/hooks/api/auditLogs/constants.tsx
@@ -190,6 +190,7 @@ export const eventToNameMap: { [K in EventType]: string } = {
[EventType.PKI_SYNC_SYNC_CERTIFICATES]: "PKI Sync synced certificates",
[EventType.PKI_SYNC_IMPORT_CERTIFICATES]: "PKI Sync imported certificates",
[EventType.PKI_SYNC_REMOVE_CERTIFICATES]: "PKI Sync removed certificates",
+ [EventType.PKI_SYNC_PREFLIGHT_CHECK]: "PKI Sync preflight check ran",
[EventType.OIDC_GROUP_MEMBERSHIP_MAPPING_ASSIGN_USER]:
"OIDC group membership mapping assigned user to groups",
[EventType.OIDC_GROUP_MEMBERSHIP_MAPPING_REMOVE_USER]:
diff --git a/frontend/src/hooks/api/auditLogs/enums.tsx b/frontend/src/hooks/api/auditLogs/enums.tsx
index 0d4f2ab1b9..146f3b3480 100644
--- a/frontend/src/hooks/api/auditLogs/enums.tsx
+++ b/frontend/src/hooks/api/auditLogs/enums.tsx
@@ -200,6 +200,7 @@ export enum EventType {
PKI_SYNC_SYNC_CERTIFICATES = "pki-sync-sync-certificates",
PKI_SYNC_IMPORT_CERTIFICATES = "pki-sync-import-certificates",
PKI_SYNC_REMOVE_CERTIFICATES = "pki-sync-remove-certificates",
+ PKI_SYNC_PREFLIGHT_CHECK = "pki-sync-preflight-check",
OIDC_GROUP_MEMBERSHIP_MAPPING_ASSIGN_USER = "oidc-group-membership-mapping-assign-user",
OIDC_GROUP_MEMBERSHIP_MAPPING_REMOVE_USER = "oidc-group-membership-mapping-remove-user",
CREATE_KMIP_CLIENT = "create-kmip-client",
diff --git a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsx b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsx
index 20cf7966ac..4b537cef5b 100644
--- a/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsx
+++ b/frontend/src/pages/cert-manager/PkiSyncDetailsByIDPage/components/PkiSyncAuditLogsSection.tsx
@@ -10,7 +10,8 @@ import { LogsSection } from "@app/pages/organization/AuditLogsPage/components/Lo
const PKI_SYNC_EVENTS = [
EventType.PKI_SYNC_SYNC_CERTIFICATES,
EventType.PKI_SYNC_IMPORT_CERTIFICATES,
- EventType.PKI_SYNC_REMOVE_CERTIFICATES
+ EventType.PKI_SYNC_REMOVE_CERTIFICATES,
+ EventType.PKI_SYNC_PREFLIGHT_CHECK
];
type Props = {