Merge pull request #4984 from Infisical/fix/audit-log-identity-change

fix(api): resolved identity name missing in audit log
This commit is contained in:
Akhil Mohan
2025-12-04 02:06:00 +05:30
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -195,7 +195,7 @@ export const injectIdentity = fp(
rootOrgId: identity.rootOrgId,
parentOrgId: identity.parentOrgId,
identityId: identity.identityId,
identityName: identity.name,
identityName: identity.identityName,
authMethod: null,
isInstanceAdmin: serverCfg?.adminIdentityIds?.includes(identity.identityId),
token

View File

@@ -19,6 +19,7 @@ export const identityAccessTokenDALFactory = (db: TDbClient) => {
.join(TableName.Identity, `${TableName.Identity}.id`, `${TableName.IdentityAccessToken}.identityId`)
.select(selectAllTableCols(TableName.IdentityAccessToken))
.select(db.ref("orgId").withSchema(TableName.Identity).as("identityScopeOrgId"))
.select(db.ref("name").withSchema(TableName.Identity).as("identityName"))
.first();
return doc;