Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat: add identityName to audit log event and enhance identity token response structure
Piyush Gupta7d6f52d2aed7
diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.tsindex 021da107fa..06fdeebcff 100644--- a/backend/src/ee/services/audit-log/audit-log-types.ts+++ b/backend/src/ee/services/audit-log/audit-log-types.ts@@ -1034,6 +1034,7 @@ interface GetTokenIdentityTokenAuthEvent {type: EventType.GET_TOKEN_IDENTITY_TOKEN_AUTH;metadata: {identityId: string;+ identityName: string;tokenId: string;};}diff --git a/backend/src/server/routes/v1/identity-token-auth-router.ts b/backend/src/server/routes/v1/identity-token-auth-router.tsindex 9906b6b5d5..d7cd86330b 100644--- a/backend/src/server/routes/v1/identity-token-auth-router.ts+++ b/backend/src/server/routes/v1/identity-token-auth-router.ts@@ -312,6 +312,9 @@ export const registerIdentityTokenAuthRouter = async (server: FastifyZodProviderresponse: {200: z.object({accessToken: z.string(),+ expiresIn: z.coerce.number(),+ accessTokenMaxTTL: z.coerce.number(),+ tokenType: z.literal("Bearer"),tokenData: IdentityAccessTokensSchema})}@@ -342,6 +345,9 @@ export const registerIdentityTokenAuthRouter = async (server: FastifyZodProviderreturn {accessToken,+ tokenType: "Bearer" as const,+ expiresIn: identityTokenAuth.accessTokenTTL,+ accessTokenMaxTTL: identityTokenAuth.accessTokenMaxTTL,tokenData: identityAccessToken};}@@ -446,6 +452,7 @@ export const registerIdentityTokenAuthRouter = async (server: FastifyZodProvidertype: EventType.GET_TOKEN_IDENTITY_TOKEN_AUTH,metadata: {identityId: token.identityId,+ identityName: identityMembershipOrg.identity.name,tokenId: token.id}}