Skip to content

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

fix: remove PII leakage from MachineIdentityUpdated/Deleted events

Devin AI165b36e2d968
diff --git a/backend/src/server/routes/v1/identity-router.ts b/backend/src/server/routes/v1/identity-router.ts
index cc9535027f..cf050dbce4 100644
--- a/backend/src/server/routes/v1/identity-router.ts
+++ b/backend/src/server/routes/v1/identity-router.ts
@@ -173,8 +173,7 @@ export const registerIdentityRouter = async (server: FastifyZodProvider) => {
identityId: identity.id,
orgId: identity.orgId,
name: identity.name,
- hasDeleteProtection: identity.hasDeleteProtection,
- ...req.auditLogInfo
+ hasDeleteProtection: identity.hasDeleteProtection
}
})
.catch(() => {});
@@ -237,8 +236,7 @@ export const registerIdentityRouter = async (server: FastifyZodProvider) => {
organizationId: identity.orgId,
properties: {
identityId: identity.id,
- orgId: identity.orgId,
- ...req.auditLogInfo
+ orgId: identity.orgId
}
})
.catch(() => {});