Skip to content

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

chore: remove unused GATEWAY_ENROLLMENT_TOKEN_DELETE and GATEWAY_RE_ENROLL audit events

bernie-g7663a7d60e46
diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.ts
index 0fa5eb605d..09a57f375f 100644
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@ -737,9 +737,7 @@ export enum EventType {
// Gateway Enrollment Tokens
GATEWAY_CREATE = "gateway-create",
GATEWAY_ENROLLMENT_TOKEN_CREATE = "gateway-enrollment-token-create",
- GATEWAY_ENROLLMENT_TOKEN_DELETE = "gateway-enrollment-token-delete",
- GATEWAY_ENROLL = "gateway-enroll",
- GATEWAY_RE_ENROLL = "gateway-re-enroll"
+ GATEWAY_ENROLL = "gateway-enroll"
}
// Maps each actor type to the JSONB key that holds the actor's primary ID in actorMetadata.
@@ -5799,14 +5797,6 @@ interface GatewayEnrollmentTokenCreateEvent {
};
}
-interface GatewayEnrollmentTokenDeleteEvent {
- type: EventType.GATEWAY_ENROLLMENT_TOKEN_DELETE;
- metadata: {
- tokenId: string;
- name: string;
- };
-}
-
interface GatewayEnrollEvent {
type: EventType.GATEWAY_ENROLL;
metadata: {
@@ -5815,14 +5805,6 @@ interface GatewayEnrollEvent {
};
}
-interface GatewayReEnrollEvent {
- type: EventType.GATEWAY_RE_ENROLL;
- metadata: {
- gatewayId: string;
- name: string;
- };
-}
-
export type Event =
| CreateSubOrganizationEvent
| UpdateSubOrganizationEvent
@@ -6347,6 +6329,4 @@ export type Event =
| SecretValidationRuleDeleteEvent
| GatewayCreateEvent
| GatewayEnrollmentTokenCreateEvent
- | GatewayEnrollmentTokenDeleteEvent
- | GatewayEnrollEvent
- | GatewayReEnrollEvent;
+ | GatewayEnrollEvent;