Skip to content

[Feature]: Add Role based access control to running workflows - update task dropdown endpoint #822

Closed as duplicate of#821
@wouter1975

Description

@wouter1975

Refinement of ticket after discussion on 11-2:

Requirements:

  • Ability to assign privileges per group
  • Ability to check privileges halfway a workflow
  • Make it possible to check authorization at each input type step
    like suspend, callback input steps (iow when a user/proces changes the workflow into running state)
  • Dropped requirement: ability to change the minimal rights in the UI. This should be a handled by the auth implementation of the application

Suggested solution

  • Extend the graphql calls for populating the Tasks dropdown menu items, to include a state flag (eg isAllowed bool) to rendering the workflow item in normal or disabled state.
    "data": {
        "workflows": {
            "page": [
                {
                    "name": "task_clean_up_tasks",
                    "description": "Clean up old tasks",
                    "isAllowed": "true" ------------------> add this attribute
                },
                {
                    "name": "task_resume_workflows",
                    "description": "Resume all workflows that are stuck on tasks with the status 'waiting'"
                    "isAllowed": "false" ------------------> add this attribute
                },

In other tickets:

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureRequest for new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions