Skip to content

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

feat: refine roles structure in CreateIdentityEvent

Victor Hugo dos Santosdb7ae2db917c
diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.ts
index 514ece8ba1..d244f92ba6 100644
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@ -1426,7 +1426,16 @@ interface CreateIdentityEvent {
name: string;
hasDeleteProtection: boolean;
metadata?: { key: string; value: string }[];
- roles?: { role: string; isTemporary: boolean }[];
+ roles?: (
+ | { role: string; isTemporary: false }
+ | {
+ role: string;
+ isTemporary: true;
+ temporaryMode: string;
+ temporaryRange: string;
+ temporaryAccessStartTime: string;
+ }
+ )[];
};
}