Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Add Role based access control to running workflows - update StartOptions endpoint #821

Open
1 task
wouter1975 opened this issue Feb 11, 2025 · 0 comments
Labels
feature Request for new feature

Comments

@wouter1975
Copy link
Contributor

wouter1975 commented Feb 11, 2025

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 Start 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": "create_core_link",
                    "isAllowed":"true",
                    "products": [
                        {
                            "productType": "Corelink",
                            "productId": "7dc2a409-465b-4844-b858-083a8fe371da",
                            "name": "SN8 Corelink"
                        }
                    ]
                },
                {
                    "name": "create_node",
                    "isAllowed":"false",
                    "products": [
                        {
                            "productType": "Node",
                            "productId": "a0a6c2b1-fcb9-4c5c-9293-5867f06a6356",
                            "name": "SN8 Node"
                        }
                    ]
                },

In other tickets:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request for new feature
Projects
None yet
Development

No branches or pull requests

2 participants