Skip to content

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

feat: audit logs event metadata & remapping support

Daniel Hougaard8f3b7e1698bb
diff --git a/frontend/src/views/Org/UserPage/components/UserProjectsSection/UserAuditLogsSection.tsx b/frontend/src/views/Org/UserPage/components/UserProjectsSection/UserAuditLogsSection.tsx
index dcfd0553ca..f63aceb05a 100644
--- a/frontend/src/views/Org/UserPage/components/UserProjectsSection/UserAuditLogsSection.tsx
+++ b/frontend/src/views/Org/UserPage/components/UserProjectsSection/UserAuditLogsSection.tsx
@@ -40,9 +40,14 @@ export const UserAuditLogsSection = withPermission(
</Tooltip>
</div>
<LogsSection
+ remappedHeaders={{
+ Metadata: "Status"
+ }}
showFilters={showFilter}
filterClassName="bg-mineshaft-900 static"
- presetActor={orgMembership.user.id}
+ presets={{
+ actorId: orgMembership.user.id
+ }}
isOrgAuditLogs
/>
</div>
diff --git a/frontend/src/views/Project/AuditLogsPage/components/types.tsx b/frontend/src/views/Project/AuditLogsPage/components/types.tsx
index 73d0aef473..f1165c80f8 100644
--- a/frontend/src/views/Project/AuditLogsPage/components/types.tsx
+++ b/frontend/src/views/Project/AuditLogsPage/components/types.tsx
@@ -4,7 +4,8 @@ import { EventType, UserAgentType } from "@app/hooks/api/auditLogs/enums";
export const auditLogFilterFormSchema = yup
.object({
- eventType: yup.string().oneOf(Object.values(EventType), "Invalid event type"),
+ eventMetadata: yup.object({}).optional(),
+ eventType: yup.array(yup.string().oneOf(Object.values(EventType), "Invalid event type")),
actor: yup.string(),
userAgentType: yup.string().oneOf(Object.values(UserAgentType), "Invalid user agent type"),
startDate: yup.date(),