Skip to main content
← Back to list
01Issue
BugClosedSwamp CLIPublic
AssigneesNone

Relationships

#2058 Audit: many model/data handlers pass wildcard resource name instead of actual model name

Opened by stack72 · 9/8/2026

Multiple handlers in connection.ts pass '' as the audit resource name when the request payload contains modelIdOrName. This makes audit events show 'model:' instead of 'model:hello' in the audit log and dashboard Activity view.

Affected handlers (all using auditOpts with '*' when they have a model name available):

  • model.validate (line 2283)
  • model.search (line 1799)
  • model.output.get, model.output.data, model.output.logs, model.output.search (lines 2192-2231)
  • model.method.history.get, model.method.history.logs, model.method.history.search (lines 2244-2270)
  • model.evaluate (line 2296)
  • model.type.search (line 2829)
  • data.list, data.search (lines 1721, 1747)

The fix is straightforward: change auditOpts('data', 'model', '') to auditOpts('data', 'model', request.payload?.modelIdOrName ?? '') for each handler.

Discovered during Phase 3 (#2049) dashboard testing.

02Bog Flow
OPENTRIAGEDIN PROGRESSCLOSED

Closed

9/8/2026, 6:21:14 AM

No activity in this phase yet.

03Sludge Pulse
Editable. Press Enter to edit.

stack72 commented 9/8/2026, 5:56:03 AM

Also affects workflow handlers — workflow.run shows workflow:* instead of the workflow name. Same pattern: the auditOpts call passes '*' when the payload has the workflow name available.

Sign in to post a ripple.