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
Audit log cert-manager alert improvement
Carlos Monastyrskia8e689109b79
diff --git a/backend/CLAUDE.md b/backend/CLAUDE.mdindex d3b1419aa9..bf5de5e3dd 100644--- a/backend/CLAUDE.md+++ b/backend/CLAUDE.md@@ -709,7 +709,7 @@ Invariants worth knowing before extending it:- **The alert module owns no CASL subject.** Each provider reuses its own resource's existing permissions inside `assertPermission`, so authorization stays with the domain that owns the resource.- **New delivery mediums are channel definitions**, not providers: add one under `src/services/alert/channels/` and register it in `ALERT_CHANNEL_REGISTRY`. `directed: true` means the channel addresses principals and needs recipients (email); undirected channels carry their destination in config. `secretFields` drives masking on read and merge-from-stored on update.- **Channel configs are encrypted** with the org/project KMS cipher (`alert-channel-crypto-fns.ts`) — never store or return them in plaintext.-- **One alert per `(scope, resource, event)` for resource-bound alerts**, enforced by the partial `alert_unique_scope_resource_event_bound` index. A provider that sets `supportsScopeWideAlerts` also accepts alerts with no `resourceId`: such an alert watches every resource of its type in scope, several can watch the same event because they differ by condition, and `assertConditionInScope` is where the provider checks the IDs inside a condition, on create and on update (newly added IDs only). `findEnabledForEvent` matches exactly: the bound alerts for a `resourceId`, or the resource-less ones when it is null. To let a scope-wide provider hear another provider's events without a second outbox write, an event definition can declare `sourceEvent: { resourceType, eventKey }`; the consumer then runs the source resource's alerts plus the resource-less alerts of every event sourced from it (`alertProviderRegistry.findEventsBySource`), each under its own `eventType`. Certificate Manager-wide (`cert-manager`) and signer (`cert-manager.signer`) alerts are scope-wide providers, and creating or editing either requires the project Admin role, since PKI permissions are admin or member, not granular. **Every provider hook is opt-in, and its absence must reproduce the behaviour identity alerts had before any other provider existed.** `recipientPolicy` decides who can receive: `atOrgScope` validates and resolves user and group recipients against the org instead of the alert's project, and `allowEmailAddresses` accepts plain `EMAIL` recipients and makes test sends validate recipients like create and update do, instead of silently dropping out-of-scope ones (application alerts set both). `includeLastRun` adds `lastRun` to alert responses, and `resourceName` is only returned by providers that implement `getResourceNames`, and `filters` (read-only `{ id, name }` lists for the IDs inside a condition, keyed by kind, such as `applications` and `profiles` on a Certificate Manager-wide alert, with a null name for deleted IDs, matching how approval policies return approvers) only by providers that implement `getFilters`. Resolve such names there rather than adding ID filters to another domain's list endpoint. `assertChannelTypesAllowed` is where a provider gates paid channel types on create and on update (new, retyped, or re-enabled channels only, so a downgraded org can still edit the alert). `getResourceNames` (batched) supplies the resource's display name for alert responses and for a provider's own audit events. `resolveProjectId` lets create, list and test sends omit `projectId` when the resource already belongs to one project (`resolveAlertProjectId` in `alert-provider-registry.ts`). `getTelemetryEvent` lets a provider map alert create, update and delete to its own PostHog event, so the shared router never branches on a resource type. `getAuditEvent` does the same for audit logs: a provider that needs distinct event types (application alerts log `create-pki-application-alert` and its siblings, with the application's ID and name) returns its own event, and every other provider falls back to the generic `create-alert` family via `buildGenericAlertAuditEvent`. Add a provider's own event interfaces next to the generic ones; never widen the generic ones. The deprecated `pki/alerts` and `applications/:applicationId/alerts` routes only serve legacy PKI Alerts V2 rows. Add features to `/api/v1/alerts`, not to them.+- **One alert per `(scope, resource, event)` for resource-bound alerts**, enforced by the partial `alert_unique_scope_resource_event_bound` index. A provider that sets `supportsScopeWideAlerts` also accepts alerts with no `resourceId`: such an alert watches every resource of its type in scope, several can watch the same event because they differ by condition, and `assertConditionInScope` is where the provider checks the IDs inside a condition, on create and on update (newly added IDs only). `findEnabledForEvent` matches exactly: the bound alerts for a `resourceId`, or the resource-less ones when it is null. To let a scope-wide provider hear another provider's events without a second outbox write, an event definition can declare `sourceEvent: { resourceType, eventKey }`; the consumer then runs the source resource's alerts plus the resource-less alerts of every event sourced from it (`alertProviderRegistry.findEventsBySource`), each under its own `eventType`. Certificate Manager-wide (`cert-manager`) and signer (`cert-manager.signer`) alerts are scope-wide providers, and creating or editing either requires the project Admin role, since PKI permissions are admin or member, not granular. **Every provider hook is opt-in, and its absence must reproduce the behaviour identity alerts had before any other provider existed.** `recipientPolicy` decides who can receive: `atOrgScope` validates and resolves user and group recipients against the org instead of the alert's project, and `allowEmailAddresses` accepts plain `EMAIL` recipients and makes test sends validate recipients like create and update do, instead of silently dropping out-of-scope ones (application alerts set both). `includeLastRun` adds `lastRun` to alert responses, and `resourceName` is only returned by providers that implement `getResourceNames`, and `filters` (read-only `{ id, name }` lists for the IDs inside a condition, keyed by kind, such as `applications` and `profiles` on a Certificate Manager-wide alert, with a null name for deleted IDs, matching how approval policies return approvers) only by providers that implement `getFilters`. Resolve such names there rather than adding ID filters to another domain's list endpoint. `assertChannelTypesAllowed` is where a provider gates paid channel types on create and on update (new, retyped, or re-enabled channels only, so a downgraded org can still edit the alert). `getResourceNames` (batched) supplies the resource's display name for alert responses. `resolveProjectId` lets create, list and test sends omit `projectId` when the resource already belongs to one project (`resolveAlertProjectId` in `alert-provider-registry.ts`). `getTelemetryEvent` lets a provider map alert create, update and delete to its own PostHog event, so the shared router never branches on a resource type. Audit logs are not a provider hook: every alert, whatever its resource type, logs the generic `create-alert`, `update-alert`, `delete-alert` and `test-alert-channel` events (`getAuditEvent` in `alert-service.ts`), which carry `resourceType` so admins can tell them apart. Do not add per-provider audit event types. The deprecated `pki/alerts` and `applications/:applicationId/alerts` routes only serve legacy PKI Alerts V2 rows. Add features to `/api/v1/alerts`, not to them.- **Email channels accept plain addresses as `EMAIL` recipients when the provider opts in** (`recipientPolicy.allowEmailAddresses`), with the address as `principalId`, besides users and groups. Every address must be on one of the org's verified email domains, checked on create, update and test sends (`alert-channel-service.ts`), and again at send time, so an address on a domain the org has since removed stops receiving alerts. The resolver sends to them directly and skips an address that a user recipient on the same channel already covers.- **`findScheduledTargets` must return most-urgent-first.** The engine's per-channel `maxTargetsPerRun` cap keeps the head of the list and defers the tail, so ordering is what guarantees the closest-to-expiry targets are never the dropped ones.- **A `findScheduledTargets` that caps its own row count must honour `alreadyAlerted`.** The engine passes `{ alertId, channelIds, since }` (the alert's enabled channels and its dedup cutoff), and the provider drops targets every one of those channels already delivered since then, in SQL before the limit. Dedup otherwise runs after the fetch, so once more targets are due than the cap, the same head of the list comes back every run, is deduped, and nothing past it is ever alerted. For dedup windows shorter than the scan interval (daily reminders), also order least-recently-notified first. `scanExpiringCertificates` (`cert-manager-expiring-certificates-fns.ts`) does both.diff --git a/backend/src/ee/services/audit-log/audit-log-event-classes.test.ts b/backend/src/ee/services/audit-log/audit-log-event-classes.test.tsindex 74300b3865..6ad57fba62 100644--- a/backend/src/ee/services/audit-log/audit-log-event-classes.test.ts+++ b/backend/src/ee/services/audit-log/audit-log-event-classes.test.ts@@ -53,8 +53,8 @@ describe("audit log event classes", () => {[EventType.CREATE_ALERT, AuditLogEventClass.Management],[EventType.TEST_ALERT_CHANNEL, AuditLogEventClass.Management],[EventType.DELETE_PKI_ALERT, AuditLogEventClass.Management],- [EventType.UPDATE_PKI_APPLICATION_ALERT, AuditLogEventClass.Management],- [EventType.TEST_PKI_APPLICATION_ALERT_CHANNEL, AuditLogEventClass.Management],+ [EventType.UPDATE_ALERT, AuditLogEventClass.Management],+ [EventType.DELETE_ALERT, AuditLogEventClass.Management],[EventType.GET_PKI_ALERT, AuditLogEventClass.DataAccess],[EventType.USER_LOGIN, AuditLogEventClass.Authentication],[EventType.LOGIN_IDENTITY_UNIVERSAL_AUTH_FAILED, AuditLogEventClass.Authentication],diff --git a/backend/src/ee/services/audit-log/audit-log-event-classes.ts b/backend/src/ee/services/audit-log/audit-log-event-classes.tsindex 60cdf41e45..ec072c6354 100644--- a/backend/src/ee/services/audit-log/audit-log-event-classes.ts+++ b/backend/src/ee/services/audit-log/audit-log-event-classes.ts@@ -85,11 +85,7 @@ const EXPLICIT_MANAGEMENT_EVENT_TYPES: readonly EventType[] = [EventType.CREATE_ALERT,EventType.UPDATE_ALERT,EventType.DELETE_ALERT,- EventType.TEST_ALERT_CHANNEL,- EventType.CREATE_PKI_APPLICATION_ALERT,- EventType.UPDATE_PKI_APPLICATION_ALERT,- EventType.DELETE_PKI_APPLICATION_ALERT,- EventType.TEST_PKI_APPLICATION_ALERT_CHANNEL+ EventType.TEST_ALERT_CHANNEL];const DATA_ACCESS_EVENT_TYPES: readonly EventType[] = [diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.tsindex 2069242d74..70ba8a6e52 100644--- a/backend/src/ee/services/audit-log/audit-log-types.ts+++ b/backend/src/ee/services/audit-log/audit-log-types.ts@@ -993,18 +993,6 @@ export enum EventType {UPDATE_ALERT = "update-alert",DELETE_ALERT = "delete-alert",TEST_ALERT_CHANNEL = "test-alert-channel",- CREATE_PKI_APPLICATION_ALERT = "create-pki-application-alert",- UPDATE_PKI_APPLICATION_ALERT = "update-pki-application-alert",- DELETE_PKI_APPLICATION_ALERT = "delete-pki-application-alert",- TEST_PKI_APPLICATION_ALERT_CHANNEL = "test-pki-application-alert-channel",- CREATE_CERTIFICATE_MANAGER_ALERT = "create-certificate-manager-alert",- UPDATE_CERTIFICATE_MANAGER_ALERT = "update-certificate-manager-alert",- DELETE_CERTIFICATE_MANAGER_ALERT = "delete-certificate-manager-alert",- TEST_CERTIFICATE_MANAGER_ALERT_CHANNEL = "test-certificate-manager-alert-channel",- CREATE_SIGNER_ALERT = "create-signer-alert",- UPDATE_SIGNER_ALERT = "update-signer-alert",- DELETE_SIGNER_ALERT = "delete-signer-alert",- TEST_SIGNER_ALERT_CHANNEL = "test-signer-alert-channel",// AuthorizationPERMISSION_DENIED = "permission-denied",@@ -7990,123 +7978,11 @@ interface TestAlertChannelEvent {};}-type TPkiApplicationAlertEventMetadata = {- applicationId: string | null;- applicationName: string | null;-};--interface CreatePkiApplicationAlertEvent {- type: EventType.CREATE_PKI_APPLICATION_ALERT;- metadata: TPkiApplicationAlertEventMetadata & { alertId: string; name: string; eventType: string };-}--interface UpdatePkiApplicationAlertEvent {- type: EventType.UPDATE_PKI_APPLICATION_ALERT;- metadata: TPkiApplicationAlertEventMetadata & { alertId: string; name: string; eventType: string };-}--interface DeletePkiApplicationAlertEvent {- type: EventType.DELETE_PKI_APPLICATION_ALERT;- metadata: TPkiApplicationAlertEventMetadata & { alertId: string; name: string; eventType: string };-}--interface TestPkiApplicationAlertEvent {- type: EventType.TEST_PKI_APPLICATION_ALERT_CHANNEL;- metadata: TPkiApplicationAlertEventMetadata & {- alertId?: string;- alertName?: string | null;- channelId?: string;- channelName?: string | null;- channelType: string;- success: boolean;- deliveredTo?: number;- error?: string;- };-}--type TCertificateManagerAlertEventMetadata = {- alertId: string;- name: string;- eventType: string;- applications: { id: string; name: string | null }[];- profiles: { id: string; name: string | null }[];- sources: string[];-};--interface CreateCertificateManagerAlertEvent {- type: EventType.CREATE_CERTIFICATE_MANAGER_ALERT;- metadata: TCertificateManagerAlertEventMetadata;-}--interface UpdateCertificateManagerAlertEvent {- type: EventType.UPDATE_CERTIFICATE_MANAGER_ALERT;- metadata: TCertificateManagerAlertEventMetadata;-}--interface DeleteCertificateManagerAlertEvent {- type: EventType.DELETE_CERTIFICATE_MANAGER_ALERT;- metadata: TCertificateManagerAlertEventMetadata;-}--type TAlertChannelTestEventMetadata = {- alertId?: string;- alertName?: string | null;- channelId?: string;- channelName?: string | null;- channelType: string;- success: boolean;- deliveredTo?: number;- error?: string;-};--interface TestCertificateManagerAlertEvent {- type: EventType.TEST_CERTIFICATE_MANAGER_ALERT_CHANNEL;- metadata: TAlertChannelTestEventMetadata;-}--type TSignerAlertEventMetadata = {- alertId: string;- name: string;- eventType: string;-};--interface CreateSignerAlertEvent {- type: EventType.CREATE_SIGNER_ALERT;- metadata: TSignerAlertEventMetadata;-}--interface UpdateSignerAlertEvent {- type: EventType.UPDATE_SIGNER_ALERT;- metadata: TSignerAlertEventMetadata;-}--interface DeleteSignerAlertEvent {- type: EventType.DELETE_SIGNER_ALERT;- metadata: TSignerAlertEventMetadata;-}--interface TestSignerAlertEvent {- type: EventType.TEST_SIGNER_ALERT_CHANNEL;- metadata: TAlertChannelTestEventMetadata;-}-export type Event =| CreateAlertEvent| UpdateAlertEvent| DeleteAlertEvent| TestAlertChannelEvent- | CreatePkiApplicationAlertEvent- | UpdatePkiApplicationAlertEvent- | DeletePkiApplicationAlertEvent- | TestPkiApplicationAlertEvent- | CreateCertificateManagerAlertEvent- | UpdateCertificateManagerAlertEvent- | DeleteCertificateManagerAlertEvent- | TestCertificateManagerAlertEvent- | CreateSignerAlertEvent- | UpdateSignerAlertEvent- | DeleteSignerAlertEvent- | TestSignerAlertEvent| CreateSubOrganizationEvent| UpdateSubOrganizationEvent| DeleteSubOrganizationEventdiff --git a/backend/src/server/routes/v1/alert-router.ts b/backend/src/server/routes/v1/alert-router.tsindex 7ff015e723..6d2f05f54d 100644--- a/backend/src/server/routes/v1/alert-router.ts+++ b/backend/src/server/routes/v1/alert-router.ts@@ -161,14 +161,13 @@ export const registerAlertRouter = async (server: FastifyZodProvider) => {},onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN, AuthMode.OAUTH]),handler: async (req) => {- const { projectId, resourceName, alertName, channelName, ...result } =- await server.services.alertChannelTest.testChannel({- ...req.body,- actor: req.permission.type,- actorId: req.permission.id,- actorAuthMethod: req.permission.authMethod,- actorOrgId: req.permission.orgId- });+ const { projectId, ...result } = await server.services.alertChannelTest.testChannel({+ ...req.body,+ actor: req.permission.type,+ actorId: req.permission.id,+ actorAuthMethod: req.permission.authMethod,+ actorOrgId: req.permission.orgId+ });await server.services.auditLog.createAuditLog({...req.auditLogInfo,@@ -178,11 +177,7 @@ export const registerAlertRouter = async (server: FastifyZodProvider) => {test: {resourceType: req.body.resourceType,resourceId: req.body.resourceId,- resourceName,- alertId: req.body.alertId,- alertName,channelId: req.body.channelId,- channelName,channelType: req.body.channelType,success: result.success,deliveredTo: result.deliveredTo,diff --git a/backend/src/services/alert/alert-channel-test-service.test.ts b/backend/src/services/alert/alert-channel-test-service.test.tsindex 6ee09d0c66..c0a355bc4f 100644--- a/backend/src/services/alert/alert-channel-test-service.test.ts+++ b/backend/src/services/alert/alert-channel-test-service.test.ts@@ -205,10 +205,7 @@ describe("alertChannelTestService", () => {expect(result).toEqual({success: true,deliveredTo: 1,- projectId: null,- resourceName: null,- alertName: null,- channelName: null+ projectId: null});expect(sent).toHaveLength(1);expect(sent[0].config).toEqual({ webhookUrl: "https://hooks.slack.com/services/T/B/x" });@@ -468,10 +465,7 @@ describe("alertChannelTestService", () => {await expect(service.testChannel(dto)).resolves.toEqual({success: true,deliveredTo: 1,- projectId: null,- resourceName: null,- alertName: null,- channelName: null+ projectId: null});await expect(service.testChannel(dto)).rejects.toThrow(/Try again in 60s/);} finally {@@ -505,10 +499,7 @@ describe("alertChannelTestService", () => {).resolves.toEqual({success: true,deliveredTo: 1,- projectId: null,- resourceName: null,- alertName: null,- channelName: null+ projectId: null});} finally {restoreSlack();@@ -535,10 +526,7 @@ describe("alertChannelTestService", () => {expect(result).toEqual({success: false,error: "connect ECONNREFUSED",- projectId: null,- resourceName: null,- alertName: null,- channelName: null+ projectId: null});} finally {restore();diff --git a/backend/src/services/alert/alert-channel-test-service.ts b/backend/src/services/alert/alert-channel-test-service.tsindex 16d192f068..8191e3b436 100644--- a/backend/src/services/alert/alert-channel-test-service.ts+++ b/backend/src/services/alert/alert-channel-test-service.ts@@ -15,7 +15,7 @@ import { TAlertChannelServiceFactory } from "./alert-channel-service";import { TAlertChannelDeps, TAlertRecipient } from "./alert-channel-types";import { TAlertDALFactory } from "./alert-dal";import { getRecipientScope } from "./alert-principal-scope-fns";-import { getAlertResourceName, resolveAlertProjectId, TAlertProviderRegistry } from "./alert-provider-registry";+import { resolveAlertProjectId, TAlertProviderRegistry } from "./alert-provider-registry";import { TAlertRecipientResolver } from "./alert-recipient-resolver";import { TTestAlertChannelDTO, TTestAlertChannelResponse, TTestAlertChannelResult } from "./alert-service-types";import { buildTestAlertPayload } from "./alert-test-payload-fns";@@ -95,7 +95,7 @@ export const alertChannelTestServiceFactory = ({if (!dto.channelId) {assertChannelConfigValid(definition, dto.channelType, incoming);- return { config: incoming, channelName: null };+ return incoming;}const channel = await alertChannelDAL.findById(dto.channelId);@@ -118,7 +118,7 @@ export const alertChannelTestServiceFactory = ({const merged = mergeChannelConfigWithStored(dto.channelType, incoming, stored);assertChannelConfigValid(definition, dto.channelType, merged);- return { config: merged, channelName: channel.name };+ return merged;};const $resolveRecipients = async (@@ -209,7 +209,6 @@ export const alertChannelTestServiceFactory = ({resourceId: dto.resourceId});- let alertName: string | null = null;if (dto.alertId) {const alert = await alertDAL.findActiveById(dto.alertId);if (@@ -221,7 +220,6 @@ export const alertChannelTestServiceFactory = ({) {throw new NotFoundError({ message: `Alert with ID '${dto.alertId}' was not found in this scope` });}- alertName = alert.name;}await provider.assertPermission({@@ -237,10 +235,9 @@ export const alertChannelTestServiceFactory = ({await provider.assertChannelTypesAllowed?.({ orgId: dto.actorOrgId, channelTypes: [dto.channelType] });}- const { config, channelName } = await $resolveConfig(dto, projectId);- const resourceName = await getAlertResourceName(provider, dto.actorOrgId, dto.resourceId);+ const config = await $resolveConfig(dto, projectId);const result = await $sendTest(dto, projectId, provider, config);- return { ...result, projectId, resourceName, alertName, channelName };+ return { ...result, projectId };};return { testChannel };diff --git a/backend/src/services/alert/alert-service-types.ts b/backend/src/services/alert/alert-service-types.tsindex d768945ef2..42561d3d46 100644--- a/backend/src/services/alert/alert-service-types.ts+++ b/backend/src/services/alert/alert-service-types.ts@@ -57,9 +57,6 @@ export type TTestAlertChannelResponse = {export type TTestAlertChannelResult = TTestAlertChannelResponse & {projectId: string | null;- resourceName: string | null;- alertName: string | null;- channelName: string | null;};export type TAlertResponse = {diff --git a/backend/src/services/alert/alert-service.test.ts b/backend/src/services/alert/alert-service.test.tsindex 034911fdf8..85ca801107 100644--- a/backend/src/services/alert/alert-service.test.ts+++ b/backend/src/services/alert/alert-service.test.ts@@ -306,14 +306,13 @@ describe("alert service", () => {expect(orgScoped.recipientProjectIds).toEqual([null, null]);});- test("falls back to the generic alert audit events when the provider defines none", () => {+ test("builds the generic alert audit events", () => {const { service } = buildService();const alert = {id: "alert-1",name: "expiry",resourceType: RESOURCE_TYPE,resourceId: "resource-1",- resourceName: "Resource One",eventType: "test.resource.expiration"};@@ -327,6 +326,15 @@ describe("alert service", () => {eventType: "test.resource.expiration"}});+ expect(service.getAuditEvent({ action: AlertAuditAction.Update, alert })).toEqual({+ type: "update-alert",+ metadata: {+ alertId: "alert-1",+ name: "expiry",+ resourceType: RESOURCE_TYPE,+ eventType: "test.resource.expiration"+ }+ });expect(service.getAuditEvent({ action: AlertAuditAction.Delete, alert })).toEqual({type: "delete-alert",metadata: {diff --git a/backend/src/services/alert/alert-service.ts b/backend/src/services/alert/alert-service.tsindex dfaeb152b6..bc25c49409 100644--- a/backend/src/services/alert/alert-service.ts+++ b/backend/src/services/alert/alert-service.ts@@ -58,7 +58,7 @@ export type TAlertServiceFactoryDep = {export type TAlertServiceFactory = ReturnType<typeof alertServiceFactory>;-const buildGenericAlertAuditEvent = (input: TAlertAuditInput): TAuditEvent => {+const getAuditEvent = (input: TAlertAuditInput): TAuditEvent => {if (input.action === AlertAuditAction.TestChannel) {const { test } = input;return {@@ -627,12 +627,6 @@ export const alertServiceFactory = ({eventType: alert.eventType});- const getAuditEvent = (input: TAlertAuditInput): TAuditEvent => {- const resourceType =- input.action === AlertAuditAction.TestChannel ? input.test.resourceType : input.alert.resourceType;- return alertProviderRegistry.get(resourceType)?.getAuditEvent?.(input) ?? buildGenericAlertAuditEvent(input);- };-return {getTelemetryEvent,getAuditEvent,diff --git a/backend/src/services/alert/alert-types.ts b/backend/src/services/alert/alert-types.tsindex 7cfd027017..4a8b0f6235 100644--- a/backend/src/services/alert/alert-types.ts+++ b/backend/src/services/alert/alert-types.ts@@ -1,6 +1,5 @@import { z } from "zod";-import { Event as TAuditEvent } from "@app/ee/services/audit-log/audit-log-types";import { TGenericPermission } from "@app/lib/types";import { TPostHogEvent } from "@app/services/telemetry/telemetry-types";@@ -137,22 +136,15 @@ export enum AlertAuditAction {type TAlertAuditAlert = {id: string;name: string;- condition?: unknown;- filters?: TAlertFilters;resourceType: string;resourceId: string | null;- resourceName?: string | null;eventType: string;};type TAlertChannelTestAudit = {resourceType: string;resourceId?: string | null;- resourceName?: string | null;- alertId?: string;- alertName?: string | null;channelId?: string;- channelName?: string | null;channelType: string;success: boolean;deliveredTo?: number;@@ -239,8 +231,6 @@ export interface IResourceAlertProvider<TTarget = unknown> {getWebhookSource?: (input: { alertId: string; resourceId?: string | null }) => string | undefined;- getAuditEvent?(input: TAlertAuditInput): TAuditEvent;-getResourceNames?(input: { orgId: string; resourceIds: string[] }): Promise<Map<string, string>>;getFilters?(input: {diff --git a/backend/src/services/alert/providers/cert-manager-alert-fns.ts b/backend/src/services/alert/providers/cert-manager-alert-fns.tsindex 120a0d4094..206b5061ee 100644--- a/backend/src/services/alert/providers/cert-manager-alert-fns.ts+++ b/backend/src/services/alert/providers/cert-manager-alert-fns.ts@@ -2,11 +2,9 @@ import { ForbiddenError } from "@casl/ability";import { z } from "zod";import { ActionProjectType, ProjectMembershipRole } from "@app/db/schemas";-import { Event as TAuditEvent, EventType } from "@app/ee/services/audit-log/audit-log-types";import { TLicenseServiceFactory } from "@app/ee/services/license/license-service";import { TPermissionServiceFactory } from "@app/ee/services/permission/permission-service-types";import { ProjectPermissionActions, ProjectPermissionSub } from "@app/ee/services/permission/project-permission";-import { CertificateSource } from "@app/ee/services/pki-discovery/pki-discovery-types";import { BadRequestError, ForbiddenRequestError, NotFoundError } from "@app/lib/errors";import { TCertManagerProjectResolverFactory } from "@app/services/cert-manager-instance/cert-manager-project-resolver";import { getRevocationReasonLabel } from "@app/services/pki-alert-v2/pki-alert-v2-types";@@ -15,11 +13,9 @@ import { PkiAlertScope, PostHogEventTypes } from "@app/services/telemetry/telemeimport { AlertChannelType, TAlertPayload, TAlertSeverity } from "../alert-channel-types";import { durationToDays, expirySeverity, formatUtcDate, humanizeDays } from "../alert-format-fns";import {- AlertAuditAction,AlertPermissionAction,AlertTelemetryAction,DEFAULT_DEDUP_WINDOW_HOURS,- TAlertAuditInput,TAlertContext,TAlertPermissionInput,TAlertTelemetryEvent@@ -136,40 +132,6 @@ export const resolveCertManagerProjectId = async (return projectId;};-type TAlertFilterNames = { id: string; name: string | null }[];--export const toAlertChannelTestAuditMetadata = ({- test-}: Extract<TAlertAuditInput, { action: AlertAuditAction.TestChannel }>) => ({- alertId: test.alertId,- alertName: test.alertName ?? null,- channelId: test.channelId,- channelName: test.channelName ?? null,- channelType: test.channelType,- success: test.success,- deliveredTo: test.deliveredTo,- error: test.error-});--export const buildCertificateManagerAlertAuditEvent = (- input: TAlertAuditInput,- {- applications,- profiles,- sources- }: { applications: TAlertFilterNames; profiles: TAlertFilterNames; sources: CertificateSource[] }-): TAuditEvent => {- if (input.action === AlertAuditAction.TestChannel) {- return { type: EventType.TEST_CERTIFICATE_MANAGER_ALERT_CHANNEL, metadata: toAlertChannelTestAuditMetadata(input) };- }-- const { alert } = input;- const metadata = { alertId: alert.id, name: alert.name, eventType: alert.eventType, applications, profiles, sources };- if (input.action === AlertAuditAction.Create) return { type: EventType.CREATE_CERTIFICATE_MANAGER_ALERT, metadata };- if (input.action === AlertAuditAction.Update) return { type: EventType.UPDATE_CERTIFICATE_MANAGER_ALERT, metadata };- return { type: EventType.DELETE_CERTIFICATE_MANAGER_ALERT, metadata };-};-export const buildPkiAlertTelemetryEvent = (action: AlertTelemetryAction,properties: { orgId: string; projectId: string; applicationId?: string; alertScope: PkiAlertScope },diff --git a/backend/src/services/alert/providers/cert-manager-alert-provider.test.ts b/backend/src/services/alert/providers/cert-manager-alert-provider.test.tsindex 8245c1d4b6..cf353bf3c7 100644--- a/backend/src/services/alert/providers/cert-manager-alert-provider.test.ts+++ b/backend/src/services/alert/providers/cert-manager-alert-provider.test.ts@@ -4,7 +4,7 @@ import { vi } from "vitest";import { PkiAlertScope, PostHogEventTypes } from "@app/services/telemetry/telemetry-types";import { AlertChannelType } from "../alert-channel-types";-import { AlertAuditAction, AlertPermissionAction, AlertTelemetryAction, TAlertContext } from "../alert-types";+import { AlertPermissionAction, AlertTelemetryAction, TAlertContext } from "../alert-types";import { certManagerAlertProviderFactory, TCertManagerAlertProviderDep } from "./cert-manager-alert-provider";import { TAlertCertificate } from "./cert-manager-certificate-alert-dal";@@ -388,62 +388,6 @@ describe("cert manager alert provider", () => {expect(names?.get("alert-2")).toEqual({ applications: [], profiles: [] });});- test("an alert with no application logs Certificate Manager audit events naming its filters", () => {- const { provider } = buildProvider();- const alert = {- id: "alert-1",- name: "prod-expiry",- resourceType: RESOURCE_TYPE,- resourceId: null,- eventType: EXPIRY_EVENT,- condition: {- alertBefore: "30d",- applicationIds: [APPLICATION_ID, OTHER_APPLICATION_ID],- profileIds: [PROFILE_ID],- sources: ["imported"]- },- filters: {- applications: [{ id: APPLICATION_ID, name: "payments-api" }],- profiles: [{ id: PROFILE_ID, name: "tls-server" }]- }- };- const metadata = {- alertId: "alert-1",- name: "prod-expiry",- eventType: EXPIRY_EVENT,- applications: [- { id: APPLICATION_ID, name: "payments-api" },- { id: OTHER_APPLICATION_ID, name: null }- ],- profiles: [{ id: PROFILE_ID, name: "tls-server" }],- sources: ["imported"]- };-- expect(provider.getAuditEvent?.({ action: AlertAuditAction.Create, alert })).toEqual({- type: "create-certificate-manager-alert",- metadata- });- expect(provider.getAuditEvent?.({ action: AlertAuditAction.Delete, alert })).toEqual({- type: "delete-certificate-manager-alert",- metadata- });- expect(- provider.getAuditEvent?.({- action: AlertAuditAction.TestChannel,- test: {- resourceType: RESOURCE_TYPE,- alertId: "alert-1",- alertName: "prod-expiry",- channelType: "email",- success: true- }- })- ).toMatchObject({- type: "test-certificate-manager-alert-channel",- metadata: { alertId: "alert-1", alertName: "prod-expiry", channelType: "email", success: true }- });- });-test("assertPermission requires a project", async () => {const { provider } = buildProvider();await expect(diff --git a/backend/src/services/alert/providers/cert-manager-alert-provider.ts b/backend/src/services/alert/providers/cert-manager-alert-provider.tsindex 2351f6c3be..a469bebf72 100644--- a/backend/src/services/alert/providers/cert-manager-alert-provider.ts+++ b/backend/src/services/alert/providers/cert-manager-alert-provider.ts@@ -17,11 +17,9 @@ import { PkiAlertScope } from "@app/services/telemetry/telemetry-types";import { durationToDays } from "../alert-format-fns";import {ALERT_SCAN_LEAD_INTERVAL,- AlertAuditAction,AlertTriggerType,IEventAlertProvider,IScheduledAlertProvider,- TAlertAuditInput,TAlertContext,TAlertFilters,TAlertPermissionInput,@@ -34,7 +32,6 @@ import {assertCertManagerAlertChannelTypesAllowed,assertNoAlertResource,buildCertificateAlertPayload,- buildCertificateManagerAlertAuditEvent,buildPkiAlertTelemetryEvent,CERTIFICATE_ALERT_KIND_TELEMETRY_TYPES,CertificateAlertKind,@@ -168,24 +165,6 @@ export const certManagerAlertProviderFactory = ({applicationName: null});- const getAuditEvent = (input: TAlertAuditInput) => {- if (input.action === AlertAuditAction.TestChannel) {- return buildCertificateManagerAlertAuditEvent(input, { applications: [], profiles: [], sources: [] });- }- const { applicationIds = [], profileIds = [], sources = [] } = parseFilters(input.alert.condition);- const nameById = new Map(- Object.values(input.alert.filters ?? {})- .flat()- .map((resource) => [resource.id, resource.name])- );- const withNames = (ids: string[]) => ids.map((id) => ({ id, name: nameById.get(id) ?? null }));- return buildCertificateManagerAlertAuditEvent(input, {- applications: withNames(applicationIds),- profiles: withNames(profileIds),- sources- });- };-const getTelemetryEvent = ({ action, orgId, projectId, eventType }: TAlertTelemetryInput) => {if (!projectId) return undefined;return buildPkiAlertTelemetryEvent(@@ -305,7 +284,6 @@ export const certManagerAlertProviderFactory = ({assertChannelTypesAllowed: (input) => assertCertManagerAlertChannelTypesAllowed(licenseService, input),recipientPolicy: { atOrgScope: true, allowEmailAddresses: true },includeLastRun: true,- getAuditEvent,getWebhookSource: getScopeWideAlertWebhookSource,getFilters,resolveProjectId: async ({ orgId, resourceId }) => {diff --git a/backend/src/services/alert/providers/cert-manager-application-alert-provider.test.ts b/backend/src/services/alert/providers/cert-manager-application-alert-provider.test.tsindex 62162ec21b..5f3dfb4f37 100644--- a/backend/src/services/alert/providers/cert-manager-application-alert-provider.test.ts+++ b/backend/src/services/alert/providers/cert-manager-application-alert-provider.test.ts@@ -4,7 +4,7 @@ import { vi } from "vitest";import { PkiAlertScope, PostHogEventTypes } from "@app/services/telemetry/telemetry-types";import { AlertChannelType } from "../alert-channel-types";-import { AlertAuditAction, AlertPermissionAction, AlertTelemetryAction, TAlertContext } from "../alert-types";+import { AlertPermissionAction, AlertTelemetryAction, TAlertContext } from "../alert-types";import {certManagerApplicationAlertProviderFactory,TCertManagerApplicationAlertProviderDep@@ -242,69 +242,6 @@ describe("cert manager application alert provider", () => {]);});- test("emits application-specific audit events carrying the application", () => {- const { provider } = buildProvider();- const alert = {- id: "alert-1",- name: "tls-expiry",- resourceType: "cert-manager.application",- resourceId: "app-1",- resourceName: "payments-api",- eventType: EXPIRY_EVENT- };- const metadata = {- applicationId: "app-1",- applicationName: "payments-api",- alertId: "alert-1",- name: "tls-expiry",- eventType: EXPIRY_EVENT- };-- expect(provider.getAuditEvent?.({ action: AlertAuditAction.Create, alert })).toEqual({- type: "create-pki-application-alert",- metadata- });- expect(provider.getAuditEvent?.({ action: AlertAuditAction.Update, alert })).toEqual({- type: "update-pki-application-alert",- metadata- });- expect(provider.getAuditEvent?.({ action: AlertAuditAction.Delete, alert })).toEqual({- type: "delete-pki-application-alert",- metadata- });- expect(- provider.getAuditEvent?.({- action: AlertAuditAction.TestChannel,- test: {- resourceType: "cert-manager.application",- resourceId: "app-1",- resourceName: "payments-api",- alertId: "alert-1",- alertName: "tls-expiry",- channelId: "channel-1",- channelName: "Email",- channelType: "email",- success: true,- deliveredTo: 1- }- })- ).toEqual({- type: "test-pki-application-alert-channel",- metadata: {- applicationId: "app-1",- applicationName: "payments-api",- alertId: "alert-1",- alertName: "tls-expiry",- channelId: "channel-1",- channelName: "Email",- channelType: "email",- success: true,- deliveredTo: 1,- error: undefined- }- });- });-test("buildViewUrl deep-links to the application and falls back to the applications list", async () => {const { provider } = buildProvider();await expect(provider.buildViewUrl(alertContext())).resolves.toBe(diff --git a/backend/src/services/alert/providers/cert-manager-application-alert-provider.ts b/backend/src/services/alert/providers/cert-manager-application-alert-provider.tsindex a0d58fef54..44894a0473 100644--- a/backend/src/services/alert/providers/cert-manager-application-alert-provider.ts+++ b/backend/src/services/alert/providers/cert-manager-application-alert-provider.ts@@ -2,7 +2,6 @@ import { ForbiddenError } from "@casl/ability";import { z } from "zod";import { ResourceType } from "@app/db/schemas";-import { Event as TAuditEvent, EventType } from "@app/ee/services/audit-log/audit-log-types";import { TLicenseServiceFactory } from "@app/ee/services/license/license-service";import { TPermissionServiceFactory } from "@app/ee/services/permission/permission-service-types";import { ResourcePermissionSub } from "@app/ee/services/permission/resource-permission";@@ -17,11 +16,9 @@ import { PkiAlertScope } from "@app/services/telemetry/telemetry-types";import { durationToDays } from "../alert-format-fns";import {ALERT_SCAN_LEAD_INTERVAL,- AlertAuditAction,AlertTriggerType,IEventAlertProvider,IScheduledAlertProvider,- TAlertAuditInput,TAlertContext,TAlertPermissionInput,TAlertTelemetryInput,@@ -105,38 +102,6 @@ export const certManagerApplicationAlertProviderFactory = ({const getWebhookSource = ({ alertId, resourceId }: { alertId: string; resourceId?: string | null }) =>resourceId ? `/applications/${resourceId}/alerts/${alertId}` : undefined;- const getAuditEvent = (input: TAlertAuditInput): TAuditEvent => {- if (input.action === AlertAuditAction.TestChannel) {- const { test } = input;- return {- type: EventType.TEST_PKI_APPLICATION_ALERT_CHANNEL,- metadata: {- applicationId: test.resourceId ?? null,- applicationName: test.resourceName ?? null,- alertId: test.alertId,- alertName: test.alertName ?? null,- channelId: test.channelId,- channelName: test.channelName ?? null,- channelType: test.channelType,- success: test.success,- deliveredTo: test.deliveredTo,- error: test.error- }- };- }-- const metadata = {- applicationId: input.alert.resourceId,- applicationName: input.alert.resourceName ?? null,- alertId: input.alert.id,- name: input.alert.name,- eventType: input.alert.eventType- };- if (input.action === AlertAuditAction.Create) return { type: EventType.CREATE_PKI_APPLICATION_ALERT, metadata };- if (input.action === AlertAuditAction.Update) return { type: EventType.UPDATE_PKI_APPLICATION_ALERT, metadata };- return { type: EventType.DELETE_PKI_APPLICATION_ALERT, metadata };- };-const getTelemetryEvent = ({ action, orgId, projectId, resourceId, eventType }: TAlertTelemetryInput) => {if (!projectId || !resourceId) return undefined;return buildPkiAlertTelemetryEvent(@@ -240,7 +205,6 @@ export const certManagerApplicationAlertProviderFactory = ({assertChannelTypesAllowed: (input) => assertCertManagerAlertChannelTypesAllowed(licenseService, input),recipientPolicy: { atOrgScope: true, allowEmailAddresses: true },includeLastRun: true,- getAuditEvent,getWebhookSource,resolveProjectId,getResourceNames: async ({ orgId, resourceIds }) =>diff --git a/backend/src/services/alert/providers/cert-manager-signer-alert-provider.test.ts b/backend/src/services/alert/providers/cert-manager-signer-alert-provider.test.tsindex b084244227..85088f968d 100644--- a/backend/src/services/alert/providers/cert-manager-signer-alert-provider.test.ts+++ b/backend/src/services/alert/providers/cert-manager-signer-alert-provider.test.ts@@ -1,11 +1,10 @@import { createMongoAbility } from "@casl/ability";import { vi } from "vitest";-import { EventType } from "@app/ee/services/audit-log/audit-log-types";import { PkiAlertScope, PostHogEventTypes } from "@app/services/telemetry/telemetry-types";import { AlertChannelType } from "../alert-channel-types";-import { AlertAuditAction, AlertPermissionAction, AlertTelemetryAction, TAlertContext } from "../alert-types";+import { AlertPermissionAction, AlertTelemetryAction, TAlertContext } from "../alert-types";import { TSignerAlertCertificate } from "./cert-manager-signer-alert-dal";import {certManagerSignerAlertProviderFactory,@@ -194,23 +193,9 @@ describe("cert manager signer alert provider", () => {expect(payload.items[0].fields?.[0]).toEqual({ label: "Signers", value: "build-signer, release-signer" });});- test("logs its own signer alert audit events and PKI alert telemetry", () => {+ test("maps alert creation to PKI alert telemetry", () => {const provider = buildProvider();- const alert = { ...signerAlert, enabled: true, channels: [] } as never;- expect(provider.getAuditEvent?.({ action: AlertAuditAction.Create, alert })).toEqual({- type: EventType.CREATE_SIGNER_ALERT,- metadata: { alertId: "alert-1", name: "signer-expiry", eventType: EXPIRY_EVENT }- });- expect(provider.getAuditEvent?.({ action: AlertAuditAction.Delete, alert })?.type).toBe(- EventType.DELETE_SIGNER_ALERT- );- expect(- provider.getAuditEvent?.({- action: AlertAuditAction.TestChannel,- test: { resourceType: RESOURCE_TYPE, alertId: "alert-1", channelType: "email", success: true }- })- ).toMatchObject({ type: EventType.TEST_SIGNER_ALERT_CHANNEL, metadata: { alertId: "alert-1", success: true } });expect(provider.getTelemetryEvent?.({action: AlertTelemetryAction.Create,diff --git a/backend/src/services/alert/providers/cert-manager-signer-alert-provider.ts b/backend/src/services/alert/providers/cert-manager-signer-alert-provider.tsindex 4ca4710883..776087c8a2 100644--- a/backend/src/services/alert/providers/cert-manager-signer-alert-provider.ts+++ b/backend/src/services/alert/providers/cert-manager-signer-alert-provider.ts@@ -1,4 +1,3 @@-import { Event as TAuditEvent, EventType } from "@app/ee/services/audit-log/audit-log-types";import { TLicenseServiceFactory } from "@app/ee/services/license/license-service";import { TPermissionServiceFactory } from "@app/ee/services/permission/permission-service-types";import { getConfig } from "@app/lib/config/env";@@ -11,10 +10,8 @@ import { TAlertPayload } from "../alert-channel-types";import { durationToDays, expirySeverity, formatUtcDate, humanizeDays } from "../alert-format-fns";import {ALERT_SCAN_LEAD_INTERVAL,- AlertAuditAction,AlertTriggerType,IScheduledAlertProvider,- TAlertAuditInput,TAlertContext,TAlertPermissionInput,TAlertTelemetryInput,@@ -30,8 +27,7 @@ import {ExpiryFieldsSchema,getScopeWideAlertWebhookSource,resolveCertManagerProjectId,- splitAltNames,- toAlertChannelTestAuditMetadata+ splitAltNames} from "./cert-manager-alert-fns";import { TCertManagerSignerAlertDALFactory, TSignerAlertCertificate } from "./cert-manager-signer-alert-dal";@@ -141,16 +137,6 @@ export const certManagerSignerAlertProviderFactory = ({);};- const getAuditEvent = (input: TAlertAuditInput): TAuditEvent => {- if (input.action === AlertAuditAction.TestChannel) {- return { type: EventType.TEST_SIGNER_ALERT_CHANNEL, metadata: toAlertChannelTestAuditMetadata(input) };- }- const metadata = { alertId: input.alert.id, name: input.alert.name, eventType: input.alert.eventType };- if (input.action === AlertAuditAction.Create) return { type: EventType.CREATE_SIGNER_ALERT, metadata };- if (input.action === AlertAuditAction.Update) return { type: EventType.UPDATE_SIGNER_ALERT, metadata };- return { type: EventType.DELETE_SIGNER_ALERT, metadata };- };-const getTelemetryEvent = ({ action, orgId, projectId }: TAlertTelemetryInput) => {if (!projectId) return undefined;return buildPkiAlertTelemetryEvent(@@ -180,7 +166,6 @@ export const certManagerSignerAlertProviderFactory = ({assertChannelTypesAllowed: (input) => assertCertManagerAlertChannelTypesAllowed(licenseService, input),recipientPolicy: { atOrgScope: true, allowEmailAddresses: true },includeLastRun: true,- getAuditEvent,getWebhookSource: getScopeWideAlertWebhookSource,getTelemetryEvent,resolveProjectId: async ({ orgId, resourceId }) => {diff --git a/docs/api-reference/endpoints/alerts/create.mdx b/docs/api-reference/endpoints/alerts/create.mdxdeleted file mode 100644index b097cc550c..0000000000--- a/docs/api-reference/endpoints/alerts/create.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "Create alert"-openapi: "POST /api/v1/alerts"----diff --git a/docs/api-reference/endpoints/alerts/delete.mdx b/docs/api-reference/endpoints/alerts/delete.mdxdeleted file mode 100644index 79cdc7d851..0000000000--- a/docs/api-reference/endpoints/alerts/delete.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "Delete alert"-openapi: "DELETE /api/v1/alerts/{alertId}"----diff --git a/docs/api-reference/endpoints/alerts/get.mdx b/docs/api-reference/endpoints/alerts/get.mdxdeleted file mode 100644index 1abc74eccc..0000000000--- a/docs/api-reference/endpoints/alerts/get.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "Get alert"-openapi: "GET /api/v1/alerts/{alertId}"----diff --git a/docs/api-reference/endpoints/alerts/list.mdx b/docs/api-reference/endpoints/alerts/list.mdxdeleted file mode 100644index 338f0bb629..0000000000--- a/docs/api-reference/endpoints/alerts/list.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "List alerts"-openapi: "GET /api/v1/alerts"----diff --git a/docs/api-reference/endpoints/alerts/test-channel.mdx b/docs/api-reference/endpoints/alerts/test-channel.mdxdeleted file mode 100644index 3fe10b34d8..0000000000--- a/docs/api-reference/endpoints/alerts/test-channel.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "Test alert channel"-openapi: "POST /api/v1/alerts/channels/test"----diff --git a/docs/api-reference/endpoints/alerts/update.mdx b/docs/api-reference/endpoints/alerts/update.mdxdeleted file mode 100644index 8cb73f6ccb..0000000000--- a/docs/api-reference/endpoints/alerts/update.mdx+++ /dev/null@@ -1,4 +0,0 @@-----title: "Update alert"-openapi: "PATCH /api/v1/alerts/{alertId}"----diff --git a/docs/docs.json b/docs/docs.jsonindex 512580835d..f605102b32 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -3980,17 +3980,6 @@}]},- {- "group": "Alerts",- "pages": [- "api-reference/endpoints/alerts/list",- "api-reference/endpoints/alerts/create",- "api-reference/endpoints/alerts/get",- "api-reference/endpoints/alerts/update",- "api-reference/endpoints/alerts/delete",- "api-reference/endpoints/alerts/test-channel"- ]- },{"group": "Certificate syncs","pages": [@@ -5085,35 +5074,35 @@},{"source": "/api-reference/endpoints/pki/applications/alerts/list",- "destination": "/api-reference/endpoints/alerts/list"+ "destination": "/documentation/platform/pki/applications/alerting/overview"},{"source": "/api-reference/endpoints/pki/applications/alerts/create",- "destination": "/api-reference/endpoints/alerts/create"+ "destination": "/documentation/platform/pki/applications/alerting/overview"},{"source": "/api-reference/endpoints/pki/applications/alerts/update",- "destination": "/api-reference/endpoints/alerts/update"+ "destination": "/documentation/platform/pki/applications/alerting/overview"},{"source": "/api-reference/endpoints/pki/applications/alerts/delete",- "destination": "/api-reference/endpoints/alerts/delete"+ "destination": "/documentation/platform/pki/applications/alerting/overview"},{"source": "/api-reference/endpoints/pki-alerts/create",- "destination": "/api-reference/endpoints/alerts/create"+ "destination": "/documentation/platform/pki/settings/alerts"},{"source": "/api-reference/endpoints/pki-alerts/read",- "destination": "/api-reference/endpoints/alerts/get"+ "destination": "/documentation/platform/pki/settings/alerts"},{"source": "/api-reference/endpoints/pki-alerts/update",- "destination": "/api-reference/endpoints/alerts/update"+ "destination": "/documentation/platform/pki/settings/alerts"},{"source": "/api-reference/endpoints/pki-alerts/delete",- "destination": "/api-reference/endpoints/alerts/delete"+ "destination": "/documentation/platform/pki/settings/alerts"},{"source": "/documentation/platform/pki/alerting",diff --git a/frontend/src/hooks/api/auditLogs/constants.tsx b/frontend/src/hooks/api/auditLogs/constants.tsxindex 482543d04f..30132e567c 100644--- a/frontend/src/hooks/api/auditLogs/constants.tsx+++ b/frontend/src/hooks/api/auditLogs/constants.tsx@@ -120,18 +120,6 @@ export const eventToNameMap: { [K in EventType]: string } = {[EventType.UPDATE_ALERT]: "Update alert",[EventType.DELETE_ALERT]: "Delete alert",[EventType.TEST_ALERT_CHANNEL]: "Test alert channel",- [EventType.CREATE_PKI_APPLICATION_ALERT]: "Create application alert",- [EventType.UPDATE_PKI_APPLICATION_ALERT]: "Update application alert",- [EventType.DELETE_PKI_APPLICATION_ALERT]: "Delete application alert",- [EventType.TEST_PKI_APPLICATION_ALERT_CHANNEL]: "Test application alert channel",- [EventType.CREATE_CERTIFICATE_MANAGER_ALERT]: "Create Certificate Manager alert",- [EventType.UPDATE_CERTIFICATE_MANAGER_ALERT]: "Update Certificate Manager alert",- [EventType.DELETE_CERTIFICATE_MANAGER_ALERT]: "Delete Certificate Manager alert",- [EventType.TEST_CERTIFICATE_MANAGER_ALERT_CHANNEL]: "Test Certificate Manager alert channel",- [EventType.CREATE_SIGNER_ALERT]: "Create signer alert",- [EventType.UPDATE_SIGNER_ALERT]: "Update signer alert",- [EventType.DELETE_SIGNER_ALERT]: "Delete signer alert",- [EventType.TEST_SIGNER_ALERT_CHANNEL]: "Test signer alert channel",[EventType.CREATE_PKI_COLLECTION]: "Create PKI collection",[EventType.GET_PKI_COLLECTION]: "Get PKI collection",[EventType.UPDATE_PKI_COLLECTION]: "Update PKI collection",diff --git a/frontend/src/hooks/api/auditLogs/enums.tsx b/frontend/src/hooks/api/auditLogs/enums.tsxindex 17e6d2d526..f8e4452bfd 100644--- a/frontend/src/hooks/api/auditLogs/enums.tsx+++ b/frontend/src/hooks/api/auditLogs/enums.tsx@@ -136,18 +136,6 @@ export enum EventType {UPDATE_ALERT = "update-alert",DELETE_ALERT = "delete-alert",TEST_ALERT_CHANNEL = "test-alert-channel",- CREATE_PKI_APPLICATION_ALERT = "create-pki-application-alert",- UPDATE_PKI_APPLICATION_ALERT = "update-pki-application-alert",- DELETE_PKI_APPLICATION_ALERT = "delete-pki-application-alert",- TEST_PKI_APPLICATION_ALERT_CHANNEL = "test-pki-application-alert-channel",- CREATE_CERTIFICATE_MANAGER_ALERT = "create-certificate-manager-alert",- UPDATE_CERTIFICATE_MANAGER_ALERT = "update-certificate-manager-alert",- DELETE_CERTIFICATE_MANAGER_ALERT = "delete-certificate-manager-alert",- TEST_CERTIFICATE_MANAGER_ALERT_CHANNEL = "test-certificate-manager-alert-channel",- CREATE_SIGNER_ALERT = "create-signer-alert",- UPDATE_SIGNER_ALERT = "update-signer-alert",- DELETE_SIGNER_ALERT = "delete-signer-alert",- TEST_SIGNER_ALERT_CHANNEL = "test-signer-alert-channel",CREATE_PKI_COLLECTION = "create-pki-collection",GET_PKI_COLLECTION = "get-pki-collection",UPDATE_PKI_COLLECTION = "update-pki-collection",