Skip to content

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

Rename select org audit log event name

Carlos Monastyrskiabe4b127f9ee
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 2dc683b58d..0d5182097a 100644
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@ -366,7 +366,7 @@ export enum EventType {
ORG_ADMIN_ACCESS_PROJECT = "org-admin-accessed-project",
ORG_ADMIN_BYPASS_SSO = "org-admin-bypassed-sso",
USER_LOGIN = "user-login",
- USER_SELECT_ORGANIZATION = "user-select-organization",
+ SELECT_ORGANIZATION = "select-organization",
CREATE_CERTIFICATE_TEMPLATE = "create-certificate-template",
UPDATE_CERTIFICATE_TEMPLATE = "update-certificate-template",
DELETE_CERTIFICATE_TEMPLATE = "delete-certificate-template",
@@ -2672,8 +2672,8 @@ interface UserLoginEvent {
};
}
-interface UserSelectOrganizationEvent {
- type: EventType.USER_SELECT_ORGANIZATION;
+interface SelectOrganizationEvent {
+ type: EventType.SELECT_ORGANIZATION;
metadata: {
email: string;
userAgent: string;
@@ -4564,4 +4564,4 @@ export type Event =
| AutomatedRenewCertificate
| AutomatedRenewCertificateFailed
| UserLoginEvent
- | UserSelectOrganizationEvent;
+ | SelectOrganizationEvent;
diff --git a/backend/src/services/auth/auth-login-service.ts b/backend/src/services/auth/auth-login-service.ts
index 1c06dcb965..8895933e8a 100644
--- a/backend/src/services/auth/auth-login-service.ts
+++ b/backend/src/services/auth/auth-login-service.ts
@@ -686,7 +686,7 @@ export const authLoginServiceFactory = ({
}
},
event: {
- type: EventType.USER_SELECT_ORGANIZATION,
+ type: EventType.SELECT_ORGANIZATION,
metadata: {
email: user.email || "",
userAgent,