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

Relationships

#2006 Workflow list endpoints authorize against workflow:* instead of per-workflow

Opened by stack72 · 9/4/2026

Reported in swamp-club#1957 as a separate concern.

workflow.search, workflow.approvals, workflow.history.search, and workflow.run.search all authorize against workflow:* (wildcard resource) rather than the individual workflow. This means a grant scoped to a specific workflow (e.g. actions: [read], resource: workflow:my-workflow) satisfies workflow.get but leaves every list endpoint empty with 'does not have read on workflow:*'.

The expected behavior is that a per-workflow read grant should let the user see that workflow in list results. The list endpoints should either post-filter results by the caller's grants or check authorization per-resource rather than requiring a blanket workflow:* grant.

Relevant handlers in src/serve/handlers/workflow_handlers.ts pass name: '*' to authorizeOrReject:

  • workflow.search (handleWorkflowSearch)
  • workflow.approvals (handleWorkflowApprovals)
  • workflow.history.search (handleWorkflowHistorySearch)
  • workflow.run.search (handleWorkflowRunSearch)
  • workflow.schema (handleWorkflowSchema)
02Bog Flow
OPENTRIAGEDIN PROGRESSCLOSED+ 1 MOREASSIGNED+ 9 MOREREVIEW

Closed

9/9/2026, 12:34:28 AM

No activity in this phase yet.

03Sludge Pulse
stack72 assigned stack729/4/2026, 8:53:45 PM

Sign in to post a ripple.