Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
f2ef7d7
feat(ee): add enterprise audit logs settings page with server-side se…
waleedlatif1 Apr 11, 2026
1d13c4d
lint
waleedlatif1 Apr 11, 2026
3eb6b30
fix(ee): fix build error and address PR review comments
waleedlatif1 Apr 11, 2026
36a1aa4
lint
waleedlatif1 Apr 11, 2026
b9ea27d
fix(ee): fix type error with unknown metadata in JSX expression
waleedlatif1 Apr 11, 2026
01dfe81
fix(ee): align skeleton filter width with actual component layout
waleedlatif1 Apr 11, 2026
bc4788a
lint
waleedlatif1 Apr 11, 2026
a325138
feat(audit): add audit logging for passwords, credentials, and schedules
waleedlatif1 Apr 11, 2026
18352d9
fix(audit): align metadata with established recordAudit patterns
waleedlatif1 Apr 11, 2026
e0ab844
fix(testing): sync audit mock with new AuditAction and AuditResourceT…
waleedlatif1 Apr 11, 2026
6c2495b
refactor(audit-logs): derive resource type filter from AuditResourceType
waleedlatif1 Apr 11, 2026
4021cb2
feat(audit): enrich all recordAudit calls with structured metadata
waleedlatif1 Apr 11, 2026
e7d1d0c
fix(audit): remove redundant metadata fields duplicating top-level au…
waleedlatif1 Apr 11, 2026
231df15
fix(audit): split audit types from server-only log module
waleedlatif1 Apr 11, 2026
6f60475
fix(audit): escape LIKE wildcards in audit log search query
waleedlatif1 Apr 11, 2026
bb514a6
fix(audit): use actual deletedCount in bulk API key revoke description
waleedlatif1 Apr 11, 2026
4a996f4
fix(audit-logs): fix OAuth label displaying as "Oauth" in filter drop…
waleedlatif1 Apr 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(audit): remove redundant metadata fields duplicating top-level au…
…dit fields

Remove metadata entries that duplicate resourceName, workspaceId, or
other top-level recordAudit fields. Also remove noisy fileNames arrays
from bulk document upload audits (kept fileCount).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
  • Loading branch information
waleedlatif1 and claude committed Apr 11, 2026
commit e7d1d0c76e0a0b356c9b5eae9f84f3f39bc1459f
1 change: 0 additions & 1 deletion apps/sim/app/api/credential-sets/[id]/members/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ export async function DELETE(req: NextRequest, { params }: { params: Promise<{ i
memberUserId: memberToRemove.userId,
targetEmail: memberToRemove.email ?? undefined,
providerId: result.set.providerId,
credentialSetName: result.set.name,
},
request: req,
})
Expand Down
3 changes: 0 additions & 3 deletions apps/sim/app/api/knowledge/[id]/documents/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,6 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
metadata: {
knowledgeBaseName: accessCheck.knowledgeBase?.name,
fileCount: createdDocuments.length,
fileNames: createdDocuments.map((doc) => doc.filename),
Comment thread
waleedlatif1 marked this conversation as resolved.
uploadType: 'bulk',
},
request: req,
})
Expand Down Expand Up @@ -364,7 +362,6 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
fileName: validatedData.filename,
fileType: validatedData.mimeType,
fileSize: validatedData.fileSize,
uploadType: 'single',
},
request: req,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ export async function POST(
description: `Reverted workflow to deployment version ${version}`,
metadata: {
targetVersion: version,
workflowName: workflowRecord?.name ?? undefined,
workspaceId: workflowRecord?.workspaceId ?? undefined,
},
request,
})
Expand Down
2 changes: 0 additions & 2 deletions apps/sim/app/api/workflows/[id]/duplicate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
metadata: {
sourceWorkflowId,
newWorkflowId: result.id,
newWorkflowName: result.name,
workspaceId: workspaceId || undefined,
folderId: folderId || undefined,
},
request: req,
Expand Down
1 change: 0 additions & 1 deletion apps/sim/lib/workflows/orchestration/chat-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ export async function performChatUndeploy(
resourceName: chatRecord.title || chatId,
description: `Deleted chat deployment "${chatRecord.title || chatId}"`,
metadata: {
chatTitle: chatRecord.title || undefined,
workflowId: chatRecord.workflowId || undefined,
identifier: chatRecord.identifier || undefined,
authType: chatRecord.authType || undefined,
Expand Down
5 changes: 0 additions & 5 deletions apps/sim/lib/workflows/orchestration/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ export async function performFullDeploy(
metadata: {
deploymentVersionId,
version: deployResult.version,
workflowName: (workflowData.name as string) || undefined,
previousVersionId: previousVersionId || undefined,
triggerWarnings: triggerSaveResult.warnings?.length ? triggerSaveResult.warnings : undefined,
},
Expand Down Expand Up @@ -291,9 +290,6 @@ export async function performFullUndeploy(
resourceId: workflowId,
resourceName: (workflowData.name as string) || undefined,
description: `Undeployed workflow "${(workflowData.name as string) || workflowId}"`,
metadata: {
workflowName: (workflowData.name as string) || undefined,
},
})

return { success: true }
Expand Down Expand Up @@ -487,7 +483,6 @@ export async function performActivateVersion(
version,
deploymentVersionId: versionRow.id,
previousVersionId: previousVersionId || undefined,
workflowName: (workflow.name as string) || undefined,
},
})

Expand Down
2 changes: 0 additions & 2 deletions apps/sim/lib/workflows/orchestration/workflow-lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,8 @@ export async function performDeleteWorkflow(
resourceName: workflowRecord.name,
description: `Archived workflow "${workflowRecord.name}"`,
metadata: {
workflowName: workflowRecord.name,
archived: archiveResult.archived,
templateAction,
workspaceId: workflowRecord.workspaceId || undefined,
},
})

Expand Down
Loading