Skip to content

Conversation

@migmartri
Copy link
Member

Summary

Adds support for filtering workflow runs by project name alone in the WorkflowRunServiceListRequest, without requiring a workflow name to be specified.

Changes

  • Added ProjectUseCase to WorkflowRunService to enable project lookup by name
  • Implemented validateAndGetProjectID helper method that validates project access against RBAC permissions
  • Updated WorkflowRunService.List to handle filtering by project name when only project_name is provided
  • Wire configuration automatically updated to inject ProjectUseCase dependency

Implementation Details

The implementation ensures RBAC compliance by:

  1. Looking up the project by name using FindProjectByReference
  2. Verifying the project ID exists in the user's visible projects list
  3. Only returning workflow runs from authorized projects

Add support for filtering workflow runs by project name alone
without requiring a workflow name. The filter now respects RBAC
permissions by validating the project is in the user's visible
projects list.

Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
@migmartri migmartri requested review from javirln and jiparis January 21, 2026 10:56
@migmartri migmartri changed the title Add project name filtering to workflow run list feat: add project name filtering to workflow run list Jan 21, 2026
@migmartri migmartri requested a review from Piskoo January 21, 2026 15:01
@migmartri migmartri merged commit 2afdf8c into chainloop-dev:main Jan 21, 2026
13 checks passed
@migmartri migmartri deleted the fix-filter-by-project branch January 21, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants