mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 04:26:33 +00:00
misc: added role ID tracking
This commit is contained in:
@@ -77,6 +77,7 @@ export const registerDeprecatedProjectRoleRouter = async (server: FastifyZodProv
|
|||||||
event: {
|
event: {
|
||||||
type: EventType.CREATE_PROJECT_ROLE,
|
type: EventType.CREATE_PROJECT_ROLE,
|
||||||
metadata: {
|
metadata: {
|
||||||
|
roleId: role.id,
|
||||||
slug: role.slug,
|
slug: role.slug,
|
||||||
name: role.name,
|
name: role.name,
|
||||||
description: role.description,
|
description: role.description,
|
||||||
@@ -149,7 +150,7 @@ export const registerDeprecatedProjectRoleRouter = async (server: FastifyZodProv
|
|||||||
event: {
|
event: {
|
||||||
type: EventType.UPDATE_PROJECT_ROLE,
|
type: EventType.UPDATE_PROJECT_ROLE,
|
||||||
metadata: {
|
metadata: {
|
||||||
originalName: role.name,
|
roleId: role.id,
|
||||||
slug: req.body.slug,
|
slug: req.body.slug,
|
||||||
name: req.body.name,
|
name: req.body.name,
|
||||||
description: req.body.description,
|
description: req.body.description,
|
||||||
@@ -202,6 +203,7 @@ export const registerDeprecatedProjectRoleRouter = async (server: FastifyZodProv
|
|||||||
event: {
|
event: {
|
||||||
type: EventType.DELETE_PROJECT_ROLE,
|
type: EventType.DELETE_PROJECT_ROLE,
|
||||||
metadata: {
|
metadata: {
|
||||||
|
roleId: role.id,
|
||||||
slug: role.slug,
|
slug: role.slug,
|
||||||
name: role.name
|
name: role.name
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export const registerOrgRoleRouter = async (server: FastifyZodProvider) => {
|
|||||||
event: {
|
event: {
|
||||||
type: EventType.CREATE_ORG_ROLE,
|
type: EventType.CREATE_ORG_ROLE,
|
||||||
metadata: {
|
metadata: {
|
||||||
|
roleId: role.id,
|
||||||
slug: req.body.slug,
|
slug: req.body.slug,
|
||||||
name: req.body.name,
|
name: req.body.name,
|
||||||
description: req.body.description,
|
description: req.body.description,
|
||||||
@@ -139,7 +140,7 @@ export const registerOrgRoleRouter = async (server: FastifyZodProvider) => {
|
|||||||
event: {
|
event: {
|
||||||
type: EventType.UPDATE_ORG_ROLE,
|
type: EventType.UPDATE_ORG_ROLE,
|
||||||
metadata: {
|
metadata: {
|
||||||
originalName: role.name,
|
roleId: role.id,
|
||||||
slug: req.body.slug,
|
slug: req.body.slug,
|
||||||
name: req.body.name,
|
name: req.body.name,
|
||||||
description: req.body.description,
|
description: req.body.description,
|
||||||
@@ -184,7 +185,7 @@ export const registerOrgRoleRouter = async (server: FastifyZodProvider) => {
|
|||||||
orgId: req.permission.orgId,
|
orgId: req.permission.orgId,
|
||||||
event: {
|
event: {
|
||||||
type: EventType.DELETE_ORG_ROLE,
|
type: EventType.DELETE_ORG_ROLE,
|
||||||
metadata: { slug: role.slug, name: role.name }
|
metadata: { roleId: role.id, slug: role.slug, name: role.name }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ export const registerProjectRoleRouter = async (server: FastifyZodProvider) => {
|
|||||||
event: {
|
event: {
|
||||||
type: EventType.CREATE_PROJECT_ROLE,
|
type: EventType.CREATE_PROJECT_ROLE,
|
||||||
metadata: {
|
metadata: {
|
||||||
|
roleId: role.id,
|
||||||
slug: req.body.slug,
|
slug: req.body.slug,
|
||||||
name: req.body.name,
|
name: req.body.name,
|
||||||
description: req.body.description,
|
description: req.body.description,
|
||||||
@@ -151,7 +152,7 @@ export const registerProjectRoleRouter = async (server: FastifyZodProvider) => {
|
|||||||
event: {
|
event: {
|
||||||
type: EventType.UPDATE_PROJECT_ROLE,
|
type: EventType.UPDATE_PROJECT_ROLE,
|
||||||
metadata: {
|
metadata: {
|
||||||
originalName: role.name,
|
roleId: role.id,
|
||||||
slug: req.body.slug,
|
slug: req.body.slug,
|
||||||
name: req.body.name,
|
name: req.body.name,
|
||||||
description: req.body.description,
|
description: req.body.description,
|
||||||
@@ -206,6 +207,7 @@ export const registerProjectRoleRouter = async (server: FastifyZodProvider) => {
|
|||||||
event: {
|
event: {
|
||||||
type: EventType.DELETE_PROJECT_ROLE,
|
type: EventType.DELETE_PROJECT_ROLE,
|
||||||
metadata: {
|
metadata: {
|
||||||
|
roleId: role.id,
|
||||||
slug: role.slug,
|
slug: role.slug,
|
||||||
name: role.name
|
name: role.name
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ export const registerDeprecatedProjectRoleRouter = async (server: FastifyZodProv
|
|||||||
event: {
|
event: {
|
||||||
type: EventType.CREATE_PROJECT_ROLE,
|
type: EventType.CREATE_PROJECT_ROLE,
|
||||||
metadata: {
|
metadata: {
|
||||||
|
roleId: role.id,
|
||||||
slug: req.body.slug,
|
slug: req.body.slug,
|
||||||
name: req.body.name,
|
name: req.body.name,
|
||||||
description: req.body.description,
|
description: req.body.description,
|
||||||
@@ -151,7 +152,7 @@ export const registerDeprecatedProjectRoleRouter = async (server: FastifyZodProv
|
|||||||
event: {
|
event: {
|
||||||
type: EventType.UPDATE_PROJECT_ROLE,
|
type: EventType.UPDATE_PROJECT_ROLE,
|
||||||
metadata: {
|
metadata: {
|
||||||
originalName: role.name,
|
roleId: role.id,
|
||||||
slug: req.body.slug,
|
slug: req.body.slug,
|
||||||
name: req.body.name,
|
name: req.body.name,
|
||||||
description: req.body.description,
|
description: req.body.description,
|
||||||
@@ -206,6 +207,7 @@ export const registerDeprecatedProjectRoleRouter = async (server: FastifyZodProv
|
|||||||
event: {
|
event: {
|
||||||
type: EventType.DELETE_PROJECT_ROLE,
|
type: EventType.DELETE_PROJECT_ROLE,
|
||||||
metadata: {
|
metadata: {
|
||||||
|
roleId: role.id,
|
||||||
slug: role.slug,
|
slug: role.slug,
|
||||||
name: role.name
|
name: role.name
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3513,6 +3513,7 @@ interface ProjectDeleteEvent {
|
|||||||
interface ProjectRoleCreateEvent {
|
interface ProjectRoleCreateEvent {
|
||||||
type: EventType.CREATE_PROJECT_ROLE;
|
type: EventType.CREATE_PROJECT_ROLE;
|
||||||
metadata: {
|
metadata: {
|
||||||
|
roleId: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
name: string;
|
name: string;
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
@@ -3523,7 +3524,7 @@ interface ProjectRoleCreateEvent {
|
|||||||
interface ProjectRoleUpdateEvent {
|
interface ProjectRoleUpdateEvent {
|
||||||
type: EventType.UPDATE_PROJECT_ROLE;
|
type: EventType.UPDATE_PROJECT_ROLE;
|
||||||
metadata: {
|
metadata: {
|
||||||
originalName: string;
|
roleId: string;
|
||||||
slug?: string;
|
slug?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
@@ -3534,6 +3535,7 @@ interface ProjectRoleUpdateEvent {
|
|||||||
interface ProjectRoleDeleteEvent {
|
interface ProjectRoleDeleteEvent {
|
||||||
type: EventType.DELETE_PROJECT_ROLE;
|
type: EventType.DELETE_PROJECT_ROLE;
|
||||||
metadata: {
|
metadata: {
|
||||||
|
roleId: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
@@ -3542,6 +3544,7 @@ interface ProjectRoleDeleteEvent {
|
|||||||
interface OrgRoleCreateEvent {
|
interface OrgRoleCreateEvent {
|
||||||
type: EventType.CREATE_ORG_ROLE;
|
type: EventType.CREATE_ORG_ROLE;
|
||||||
metadata: {
|
metadata: {
|
||||||
|
roleId: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
name: string;
|
name: string;
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
@@ -3552,7 +3555,7 @@ interface OrgRoleCreateEvent {
|
|||||||
interface OrgRoleUpdateEvent {
|
interface OrgRoleUpdateEvent {
|
||||||
type: EventType.UPDATE_ORG_ROLE;
|
type: EventType.UPDATE_ORG_ROLE;
|
||||||
metadata: {
|
metadata: {
|
||||||
originalName: string;
|
roleId: string;
|
||||||
slug?: string;
|
slug?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
@@ -3563,6 +3566,7 @@ interface OrgRoleUpdateEvent {
|
|||||||
interface OrgRoleDeleteEvent {
|
interface OrgRoleDeleteEvent {
|
||||||
type: EventType.DELETE_ORG_ROLE;
|
type: EventType.DELETE_ORG_ROLE;
|
||||||
metadata: {
|
metadata: {
|
||||||
|
roleId: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user