Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
improvement(pki): add daily expiration alert (#5552)
Saif Ur Rahman100ff8bcb1e5
diff --git a/backend/src/db/migrations/20260227184714_add-notification-config-to-pki-alerts-v2.ts b/backend/src/db/migrations/20260227184714_add-notification-config-to-pki-alerts-v2.tsnew file mode 100644index 0000000000..2fea8ffbb5--- /dev/null+++ b/backend/src/db/migrations/20260227184714_add-notification-config-to-pki-alerts-v2.ts@@ -0,0 +1,27 @@+import { Knex } from "knex";++import { TableName } from "../schemas";++export async function up(knex: Knex): Promise<void> {+ const hasTable = await knex.schema.hasTable(TableName.PkiAlertsV2);+ if (hasTable) {+ const hasColumn = await knex.schema.hasColumn(TableName.PkiAlertsV2, "notificationConfig");+ if (!hasColumn) {+ await knex.schema.alterTable(TableName.PkiAlertsV2, (table) => {+ table.jsonb("notificationConfig").nullable().defaultTo(null);+ });+ }+ }+}++export async function down(knex: Knex): Promise<void> {+ const hasTable = await knex.schema.hasTable(TableName.PkiAlertsV2);+ if (hasTable) {+ const hasColumn = await knex.schema.hasColumn(TableName.PkiAlertsV2, "notificationConfig");+ if (hasColumn) {+ await knex.schema.alterTable(TableName.PkiAlertsV2, (table) => {+ table.dropColumn("notificationConfig");+ });+ }+ }+}diff --git a/backend/src/db/schemas/pki-alerts-v2.ts b/backend/src/db/schemas/pki-alerts-v2.tsindex cbb28220c5..25804d1fc8 100644--- a/backend/src/db/schemas/pki-alerts-v2.ts+++ b/backend/src/db/schemas/pki-alerts-v2.ts@@ -17,7 +17,8 @@ export const PkiAlertsV2Schema = z.object({enabled: z.boolean().default(true).nullable().optional(),projectId: z.string(),createdAt: z.date(),- updatedAt: z.date()+ updatedAt: z.date(),+ notificationConfig: z.unknown().nullable().optional()});export type TPkiAlertsV2 = z.infer<typeof PkiAlertsV2Schema>;diff --git a/backend/src/server/routes/v1/pki-alert-router.ts b/backend/src/server/routes/v1/pki-alert-router.tsindex 4e5f5b0dde..4cbb194a88 100644--- a/backend/src/server/routes/v1/pki-alert-router.ts+++ b/backend/src/server/routes/v1/pki-alert-router.ts@@ -8,6 +8,7 @@ import { AuthMode } from "@app/services/auth/auth-type";import {CreatePkiAlertV2Schema,createSecureAlertBeforeValidator,+ NotificationConfigSchema,PkiAlertChannelType,PkiAlertEventType,PkiAlertRunStatus,@@ -42,6 +43,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {filters: z.array(PkiFilterRuleSchema),enabled: z.boolean(),projectId: z.string().uuid(),+ notificationConfig: NotificationConfigSchema.nullable(),channels: z.array(z.object({id: z.string().uuid(),@@ -116,6 +118,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {alertBefore: z.string(),filters: z.array(PkiFilterRuleSchema),enabled: z.boolean(),+ notificationConfig: NotificationConfigSchema.nullable(),channels: z.array(z.object({id: z.string().uuid(),@@ -180,6 +183,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {filters: z.array(PkiFilterRuleSchema),enabled: z.boolean(),projectId: z.string().uuid(),+ notificationConfig: NotificationConfigSchema.nullable(),channels: z.array(z.object({id: z.string().uuid(),@@ -247,6 +251,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {filters: z.array(PkiFilterRuleSchema),enabled: z.boolean(),projectId: z.string().uuid(),+ notificationConfig: NotificationConfigSchema.nullable(),channels: z.array(z.object({id: z.string().uuid(),@@ -317,6 +322,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {filters: z.array(PkiFilterRuleSchema),enabled: z.boolean(),projectId: z.string().uuid(),+ notificationConfig: NotificationConfigSchema.nullable(),channels: z.array(z.object({id: z.string().uuid(),diff --git a/backend/src/server/routes/v2/pki-alert-router.ts b/backend/src/server/routes/v2/pki-alert-router.tsindex 786496e57f..fcf51c0de0 100644--- a/backend/src/server/routes/v2/pki-alert-router.ts+++ b/backend/src/server/routes/v2/pki-alert-router.ts@@ -8,6 +8,7 @@ import { AuthMode } from "@app/services/auth/auth-type";import {CreatePkiAlertV2Schema,createSecureAlertBeforeValidator,+ NotificationConfigSchema,PkiAlertChannelType,PkiAlertEventType,PkiAlertRunStatus,@@ -41,6 +42,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {filters: z.array(PkiFilterRuleSchema),enabled: z.boolean(),projectId: z.string().uuid(),+ notificationConfig: NotificationConfigSchema.nullable(),channels: z.array(z.object({id: z.string().uuid(),@@ -114,6 +116,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {alertBefore: z.string(),filters: z.array(PkiFilterRuleSchema),enabled: z.boolean(),+ notificationConfig: NotificationConfigSchema.nullable(),channels: z.array(z.object({id: z.string().uuid(),@@ -177,6 +180,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {filters: z.array(PkiFilterRuleSchema),enabled: z.boolean(),projectId: z.string().uuid(),+ notificationConfig: NotificationConfigSchema.nullable(),channels: z.array(z.object({id: z.string().uuid(),@@ -243,6 +247,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {filters: z.array(PkiFilterRuleSchema),enabled: z.boolean(),projectId: z.string().uuid(),+ notificationConfig: NotificationConfigSchema.nullable(),channels: z.array(z.object({id: z.string().uuid(),@@ -312,6 +317,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {filters: z.array(PkiFilterRuleSchema),enabled: z.boolean(),projectId: z.string().uuid(),+ notificationConfig: NotificationConfigSchema.nullable(),channels: z.array(z.object({id: z.string().uuid(),diff --git a/backend/src/services/pki-alert-v2/pki-alert-history-dal.ts b/backend/src/services/pki-alert-v2/pki-alert-history-dal.tsindex ceb2820c42..1855ed3c2a 100644--- a/backend/src/services/pki-alert-v2/pki-alert-history-dal.ts+++ b/backend/src/services/pki-alert-v2/pki-alert-history-dal.ts@@ -82,8 +82,10 @@ export const pkiAlertHistoryDALFactory = (db: TDbClient) => {try {if (certificateIds.length === 0) return [];+ const DEDUP_DRIFT_BUFFER_MINUTES = 15;const cutoffDate = new Date();cutoffDate.setHours(cutoffDate.getHours() - withinHours);+ cutoffDate.setMinutes(cutoffDate.getMinutes() + DEDUP_DRIFT_BUFFER_MINUTES);const results = (await db.replicaNode()diff --git a/backend/src/services/pki-alert-v2/pki-alert-v2-dal.ts b/backend/src/services/pki-alert-v2/pki-alert-v2-dal.tsindex 73266f619e..bddd6c3bb5 100644--- a/backend/src/services/pki-alert-v2/pki-alert-v2-dal.ts+++ b/backend/src/services/pki-alert-v2/pki-alert-v2-dal.ts@@ -45,7 +45,8 @@ export const pkiAlertV2DALFactory = (db: TDbClient) => {try {const serializedData = {...data,- filters: data.filters ? JSON.stringify(data.filters) : null+ filters: data.filters ? JSON.stringify(data.filters) : null,+ notificationConfig: data.notificationConfig ? JSON.stringify(data.notificationConfig) : data.notificationConfig};const [res] = await (tx || db)(TableName.PkiAlertsV2).insert(serializedData).returning("*");@@ -57,9 +58,17 @@ export const pkiAlertV2DALFactory = (db: TDbClient) => {const updateById = async (id: string, data: TPkiAlertsV2Update, tx?: Knex): Promise<TPkiAlertsV2> => {try {+ let serializedNotificationConfig: unknown;+ if (data.notificationConfig !== undefined) {+ serializedNotificationConfig = data.notificationConfig+ ? JSON.stringify(data.notificationConfig)+ : data.notificationConfig;+ }+const serializedData: Record<string, unknown> = {...data,- filters: data.filters !== undefined ? JSON.stringify(data.filters) : undefined+ filters: data.filters !== undefined ? JSON.stringify(data.filters) : undefined,+ notificationConfig: serializedNotificationConfig};Object.keys(serializedData).forEach((key) => {if (serializedData[key] === undefined) {@@ -415,6 +424,8 @@ export const pkiAlertV2DALFactory = (db: TDbClient) => {}}+ certCountQuery = certCountQuery.whereNull(`${TableName.Certificate}.renewedByCertificateId`);+if (options?.excludeAlerted && options?.alertId) {certCountQuery = certCountQuery.whereNotExists((tx || db.replicaNode())@@ -480,6 +491,8 @@ export const pkiAlertV2DALFactory = (db: TDbClient) => {}}+ certificateQuery = certificateQuery.whereNull(`${TableName.Certificate}.renewedByCertificateId`);+if (options?.excludeAlerted && options?.alertId) {certificateQuery = certificateQuery.whereNotExists((tx || db.replicaNode())diff --git a/backend/src/services/pki-alert-v2/pki-alert-v2-queue.ts b/backend/src/services/pki-alert-v2/pki-alert-v2-queue.tsindex a1e2dac960..55067ee3ec 100644--- a/backend/src/services/pki-alert-v2/pki-alert-v2-queue.ts+++ b/backend/src/services/pki-alert-v2/pki-alert-v2-queue.ts@@ -8,7 +8,7 @@ import { TPkiAlertHistoryDALFactory } from "./pki-alert-history-dal";import { TPkiAlertV2DALFactory } from "./pki-alert-v2-dal";import { parseTimeToDays, parseTimeToPostgresInterval } from "./pki-alert-v2-filter-utils";import { TPkiAlertV2ServiceFactory } from "./pki-alert-v2-service";-import { CertificateOrigin, PkiAlertEventType, TPkiFilterRule } from "./pki-alert-v2-types";+import { CertificateOrigin, PkiAlertEventType, TNotificationConfig, TPkiFilterRule } from "./pki-alert-v2-types";type TPkiAlertV2QueueServiceFactoryDep = {queueService: TQueueServiceFactory;@@ -26,7 +26,9 @@ export const pkiAlertV2QueueServiceFactory = ({pkiAlertHistoryDAL}: TPkiAlertV2QueueServiceFactoryDep) => {const appCfg = getConfig();- const calculateDeduplicationWindow = (alertBefore: string): number => {+ const calculateDeduplicationWindow = (alertBefore: string, enableDailyNotification = false): number => {+ if (enableDailyNotification) return 24;+const alertDays = parseTimeToDays(alertBefore);if (alertDays === 0) {@@ -67,6 +69,7 @@ export const pkiAlertV2QueueServiceFactory = ({eventType: string;alertBefore: string;filters: TPkiFilterRule[];+ notificationConfig?: TNotificationConfig | null;},projectId: string): Promise<{ shouldNotify: boolean; certificateIds: string[] }> => {@@ -89,7 +92,8 @@ export const pkiAlertV2QueueServiceFactory = ({.filter((cert) => cert.enrollmentType !== CertificateOrigin.CA).map((cert) => cert.id);- const deduplicationHours = calculateDeduplicationWindow(alert.alertBefore);+ const enableDailyNotification = alert.notificationConfig?.enableDailyNotification ?? false;+ const deduplicationHours = calculateDeduplicationWindow(alert.alertBefore, enableDailyNotification);const recentlyAlertedIds = await pkiAlertHistoryDAL.findRecentlyAlertedCertificates(alert.id,allCertificateIds,@@ -133,27 +137,30 @@ export const pkiAlertV2QueueServiceFactory = ({let notificationsSent = 0;for (const alert of alerts) {- const typedAlert = alert as {- id: string;- name: string;- eventType: string;- alertBefore: string;- filters: TPkiFilterRule[];- };try {- const { shouldNotify, certificateIds } = await evaluateAlert(typedAlert, projectId);+ const { shouldNotify, certificateIds } = await evaluateAlert(+ {+ id: alert.id,+ name: alert.name,+ eventType: alert.eventType,+ alertBefore: alert.alertBefore ?? "",+ filters: (alert.filters ?? []) as TPkiFilterRule[],+ notificationConfig: alert.notificationConfig as TNotificationConfig | null+ },+ projectId+ );if (shouldNotify && certificateIds.length > 0) {- await pkiAlertV2Service.sendAlertNotifications(typedAlert.id, certificateIds);+ await pkiAlertV2Service.sendAlertNotifications(alert.id, certificateIds);notificationsSent += 1;logger.info(- `Sent notification for alert ${typedAlert.id} (${typedAlert.name}) with ${certificateIds.length} certificates`+ `Sent notification for alert ${alert.id} (${alert.name}) with ${certificateIds.length} certificates`);}alertsProcessed += 1;} catch (error) {- logger.error(error, `Failed to process alert ${typedAlert.id} (${typedAlert.name})`);+ logger.error(error, `Failed to process alert ${alert.id} (${alert.name})`);}}diff --git a/backend/src/services/pki-alert-v2/pki-alert-v2-service.ts b/backend/src/services/pki-alert-v2/pki-alert-v2-service.tsindex 0e125fd054..73cfb75bb7 100644--- a/backend/src/services/pki-alert-v2/pki-alert-v2-service.ts+++ b/backend/src/services/pki-alert-v2/pki-alert-v2-service.ts@@ -145,6 +145,7 @@ export const pkiAlertV2ServiceFactory = ({updatedAt: channel.updatedAt};}),+ notificationConfig: (alert.notificationConfig as { enableDailyNotification: boolean }) ?? null,lastRun: alert.lastRunData? {timestamp: alert.lastRunData.triggeredAt,@@ -168,6 +169,7 @@ export const pkiAlertV2ServiceFactory = ({alertBefore,filters,enabled = true,+ notificationConfig,channels,actorId,actorAuthMethod,@@ -219,7 +221,8 @@ export const pkiAlertV2ServiceFactory = ({eventType,alertBefore,filters,- enabled+ enabled,+ notificationConfig},tx);@@ -318,6 +321,7 @@ export const pkiAlertV2ServiceFactory = ({alertBefore,filters,enabled,+ notificationConfig,channels,actorId,actorAuthMethod,@@ -353,6 +357,7 @@ export const pkiAlertV2ServiceFactory = ({alertBefore?: string;filters?: TPkiFilterRule[];enabled?: boolean;+ notificationConfig?: { enableDailyNotification: boolean } | null;} = {};if (name !== undefined) updateData.name = name;if (description !== undefined) updateData.description = description;@@ -360,6 +365,7 @@ export const pkiAlertV2ServiceFactory = ({if (alertBefore !== undefined) updateData.alertBefore = alertBefore;if (filters !== undefined) updateData.filters = filters;if (enabled !== undefined) updateData.enabled = enabled;+ if (notificationConfig !== undefined) updateData.notificationConfig = notificationConfig;// Validate webhook and Slack URLs early to provide immediate SSRF feedbackif (channels) {diff --git a/backend/src/services/pki-alert-v2/pki-alert-v2-types.ts b/backend/src/services/pki-alert-v2/pki-alert-v2-types.tsindex 2d7a5dc262..72c1f13262 100644--- a/backend/src/services/pki-alert-v2/pki-alert-v2-types.ts+++ b/backend/src/services/pki-alert-v2/pki-alert-v2-types.ts@@ -112,6 +112,12 @@ export type TPkiWebhookPayload = {};};+export const NotificationConfigSchema = z.object({+ enableDailyNotification: z.boolean().default(false)+});++export type TNotificationConfig = z.infer<typeof NotificationConfigSchema>;+export const PkiFilterRuleSchema = z.object({field: z.nativeEnum(PkiFilterField),operator: z.nativeEnum(PkiFilterOperator),@@ -198,6 +204,7 @@ export const CreatePkiAlertV2Schema = z.object({alertBefore: z.string().refine(createSecureAlertBeforeValidator(), "Must be in format like '30d', '1w', '3m', '1y'"),filters: PkiFiltersSchema,enabled: z.boolean().default(true),+ notificationConfig: NotificationConfigSchema.nullable().optional(),channels: z.array(CreateChannelSchema).min(1, "At least one notification channel is required")@@ -291,6 +298,7 @@ export type TAlertV2Response = {createdAt: Date;updatedAt: Date;}>;+ notificationConfig: { enableDailyNotification: boolean } | null;lastRun: TLastRun | null;createdAt: Date;updatedAt: Date;diff --git a/docs/documentation/platform/pki/alerting/overview.mdx b/docs/documentation/platform/pki/alerting/overview.mdxindex 120654fad9..470aba0f96 100644--- a/docs/documentation/platform/pki/alerting/overview.mdx+++ b/docs/documentation/platform/pki/alerting/overview.mdx@@ -24,6 +24,11 @@ Here's some guidance for each field in the alert configuration sequence:- **Alert Name**: A slug-friendly name for the alert such as `tls-expiry-alert`.- **Description**: An optional description for the alert.- **Alert Before**: The time before certificate expiration to trigger the alert such as 30 days denoted by `30d`.+- **Daily Alerts**: When not enabled, a single notification is sent when the threshold is first reached. Enabling this option sends notifications every day until the certificate expires or is renewed.++<Warning>+ For certificates that cannot be renewed through Infisical, daily alerts will continue to be sent each day until the original expiration date.+</Warning>- **Filters**: A list of filters that determine which certificates the alert applies to. Each row includes a **Field**, **Operator**, and **Value** to match against. For example, you can filter for certificates with a common name containing `example.com` by setting the field to **Common Name**, the operator to **Contains**, and the value to `example.com`.### Notification Channelsdiff --git a/docs/images/platform/pki/alerting/alert-create-modal.png b/docs/images/platform/pki/alerting/alert-create-modal.pngindex 8bd285b569..21fc44d8e0 100644Binary files a/docs/images/platform/pki/alerting/alert-create-modal.png and b/docs/images/platform/pki/alerting/alert-create-modal.png differdiff --git a/frontend/src/hooks/api/pkiAlertsV2/types.ts b/frontend/src/hooks/api/pkiAlertsV2/types.tsindex 5226b54501..c7b511295b 100644--- a/frontend/src/hooks/api/pkiAlertsV2/types.ts+++ b/frontend/src/hooks/api/pkiAlertsV2/types.ts@@ -95,6 +95,7 @@ export interface TPkiAlertV2 {alertBefore?: string;filters: TPkiFilterRuleV2[];enabled: boolean;+ notificationConfig: { enableDailyNotification: boolean } | null;channels: TPkiAlertChannelV2[];lastRun: TLastRun | null;createdAt: string;@@ -139,6 +140,7 @@ export interface TCreatePkiAlertV2 {alertBefore?: string;filters: TPkiFilterRuleV2[];enabled?: boolean;+ notificationConfig?: { enableDailyNotification: boolean } | null;channels: TPkiAlertChannelInput[];}@@ -150,6 +152,7 @@ export interface TUpdatePkiAlertV2 {alertBefore?: string;filters?: TPkiFilterRuleV2[];enabled?: boolean;+ notificationConfig?: { enableDailyNotification: boolean } | null;channels?: TPkiAlertChannelInput[];}@@ -290,6 +293,7 @@ export const createPkiAlertV2Schema = z.object({.optional(),filters: z.array(pkiFilterRuleV2Schema),enabled: z.boolean().default(true),+ notificationConfig: z.object({ enableDailyNotification: z.boolean() }).nullable().optional(),channels: z.array(pkiAlertChannelV2Schema).min(1, "At least one notification channel is required")diff --git a/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2FormSteps.tsx b/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2FormSteps.tsxindex 668fb470a1..4bab804c86 100644--- a/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2FormSteps.tsx+++ b/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2FormSteps.tsx@@ -390,6 +390,28 @@ export const CreatePkiAlertV2FormSteps = ({)}/>)}++ {watchedEventType === PkiAlertEventTypeV2.EXPIRATION && (+ <Controller+ control={control}+ name="notificationConfig.enableDailyNotification"+ render={({ field }) => (+ <div className="flex items-center justify-between">+ <div className="flex flex-col gap-1">+ <span className="text-sm text-bunker-300">Daily Alerts</span>+ <p className="text-xs text-bunker-400">+ Send notifications daily from the alert threshold until expiry+ </p>+ </div>+ <Switch+ id="daily-alerts"+ isChecked={field.value}+ onCheckedChange={field.onChange}+ />+ </div>+ )}+ />+ )}</div></Tab.Panel>@@ -959,6 +981,11 @@ export const CreatePkiAlertV2FormSteps = ({{formatAlertBefore(watch("alertBefore"))}</GenericFieldLabel>)}+ {watchedEventType === PkiAlertEventTypeV2.EXPIRATION && (+ <GenericFieldLabel label="Daily Alerts">+ {watch("notificationConfig.enableDailyNotification") ? "Enabled" : "Disabled"}+ </GenericFieldLabel>+ )}{watch("description") && (<GenericFieldLabel label="Description">{watch("description")}</GenericFieldLabel>)}diff --git a/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2Modal.tsx b/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2Modal.tsxindex 4151a0d804..7e66d9cb8b 100644--- a/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2Modal.tsx+++ b/frontend/src/views/PkiAlertsV2Page/components/CreatePkiAlertV2Modal.tsx@@ -39,7 +39,7 @@ const FORM_TABS: { name: string; key: string; fields: (keyof TFormData)[] }[] ={name: "Details",key: "basicInfo",- fields: ["eventType", "name", "description", "alertBefore"]+ fields: ["eventType", "name", "description", "alertBefore", "notificationConfig"]},{ name: "Filters", key: "filterRules", fields: ["filters"] },{ name: "Preview", key: "preview", fields: [] },@@ -72,6 +72,7 @@ export const CreatePkiAlertV2Modal = ({ isOpen, onOpenChange, alertToEdit, alertalertBefore: "30d",filters: [],enabled: true,+ notificationConfig: { enableDailyNotification: false },channels: []},reValidateMode: "onBlur"@@ -104,6 +105,7 @@ export const CreatePkiAlertV2Modal = ({ isOpen, onOpenChange, alertToEdit, alertalertBefore: editingAlert.alertBefore || "30d",filters: editingAlert.filters || [],enabled: editingAlert.enabled,+ notificationConfig: editingAlert.notificationConfig ?? { enableDailyNotification: false },channels:editingAlert.channels?.map(({ createdAt, updatedAt, ...channel }) => {if (channel.channelType === PkiAlertChannelTypeV2.EMAIL) {@@ -138,6 +140,7 @@ export const CreatePkiAlertV2Modal = ({ isOpen, onOpenChange, alertToEdit, alertalertBefore: "30d",filters: [],enabled: true,+ notificationConfig: { enableDailyNotification: false },channels: []});}diff --git a/frontend/src/views/PkiAlertsV2Page/components/ViewPkiAlertV2Modal.tsx b/frontend/src/views/PkiAlertsV2Page/components/ViewPkiAlertV2Modal.tsxindex 65b87155e4..c0cd3d7732 100644--- a/frontend/src/views/PkiAlertsV2Page/components/ViewPkiAlertV2Modal.tsx+++ b/frontend/src/views/PkiAlertsV2Page/components/ViewPkiAlertV2Modal.tsx@@ -24,6 +24,7 @@ import {import { Badge } from "@app/components/v3";import {PkiAlertChannelTypeV2,+ PkiAlertEventTypeV2,TPkiAlertChannelConfigEmail,TPkiAlertChannelConfigWebhookResponse,useGetPkiAlertV2ById,@@ -150,6 +151,19 @@ export const ViewPkiAlertV2Modal = ({ isOpen, onOpenChange, alertId }: Props) =></span></div>+ {alert.eventType === PkiAlertEventTypeV2.EXPIRATION && (+ <div>+ <div className="mb-1 block text-sm font-medium text-gray-400">+ Daily Alerts+ </div>+ <span className="text-gray-300">+ {alert.notificationConfig?.enableDailyNotification+ ? "Enabled"+ : "Disabled"}+ </span>+ </div>+ )}+<div><div className="mb-1 block text-sm font-medium text-gray-400">Created</div><span className="text-gray-300">{formatDate(alert.createdAt)}</span>