mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 06:34:57 +00:00
misc: added audit logs for project and org role management operations
This commit is contained in:
@@ -478,6 +478,14 @@ export enum EventType {
|
||||
UPDATE_PROJECT = "update-project",
|
||||
DELETE_PROJECT = "delete-project",
|
||||
|
||||
CREATE_PROJECT_ROLE = "create-project-role",
|
||||
UPDATE_PROJECT_ROLE = "update-project-role",
|
||||
DELETE_PROJECT_ROLE = "delete-project-role",
|
||||
|
||||
CREATE_ORG_ROLE = "create-org-role",
|
||||
UPDATE_ORG_ROLE = "update-org-role",
|
||||
DELETE_ORG_ROLE = "delete-org-role",
|
||||
|
||||
CREATE_SECRET_REMINDER = "create-secret-reminder",
|
||||
GET_SECRET_REMINDER = "get-secret-reminder",
|
||||
DELETE_SECRET_REMINDER = "delete-secret-reminder"
|
||||
@@ -3502,6 +3510,64 @@ interface ProjectDeleteEvent {
|
||||
};
|
||||
}
|
||||
|
||||
interface ProjectRoleCreateEvent {
|
||||
type: EventType.CREATE_PROJECT_ROLE;
|
||||
metadata: {
|
||||
slug: string;
|
||||
name: string;
|
||||
description?: string | null;
|
||||
permissions: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface ProjectRoleUpdateEvent {
|
||||
type: EventType.UPDATE_PROJECT_ROLE;
|
||||
metadata: {
|
||||
originalName: string;
|
||||
slug?: string;
|
||||
name?: string;
|
||||
description?: string | null;
|
||||
permissions?: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface ProjectRoleDeleteEvent {
|
||||
type: EventType.DELETE_PROJECT_ROLE;
|
||||
metadata: {
|
||||
slug: string;
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface OrgRoleCreateEvent {
|
||||
type: EventType.CREATE_ORG_ROLE;
|
||||
metadata: {
|
||||
slug: string;
|
||||
name: string;
|
||||
description?: string | null;
|
||||
permissions: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface OrgRoleUpdateEvent {
|
||||
type: EventType.UPDATE_ORG_ROLE;
|
||||
metadata: {
|
||||
originalName: string;
|
||||
slug?: string;
|
||||
name?: string;
|
||||
description?: string | null;
|
||||
permissions?: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface OrgRoleDeleteEvent {
|
||||
type: EventType.DELETE_ORG_ROLE;
|
||||
metadata: {
|
||||
slug: string;
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
|
||||
export type Event =
|
||||
| GetSecretsEvent
|
||||
| GetSecretEvent
|
||||
@@ -3818,4 +3884,10 @@ export type Event =
|
||||
| ProjectDeleteEvent
|
||||
| SecretReminderCreateEvent
|
||||
| SecretReminderGetEvent
|
||||
| SecretReminderDeleteEvent;
|
||||
| SecretReminderDeleteEvent
|
||||
| ProjectRoleCreateEvent
|
||||
| ProjectRoleUpdateEvent
|
||||
| ProjectRoleDeleteEvent
|
||||
| OrgRoleCreateEvent
|
||||
| OrgRoleUpdateEvent
|
||||
| OrgRoleDeleteEvent;
|
||||
|
||||
Reference in New Issue
Block a user