-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Organization rules for runs start/stop #428
Comments
@alessandro-sorint There're not enough details in this FR. Is it correct that only owners can do actions? Or is it a bug that members cannot do it. What's the meaning to be a member if you cannot do any action? Is this related to RBAC issue #13 ? |
Isn't this issue talking about run actions permissions (start/stop/cancel)? |
I see in the issue In future there could be the possibility to define custom roles there will be in the future the possibility to define a custom rule that can/can't do run actions with issue #13? |
I think the current default behaviour makes sense: only owners should be able to stop / cancel / restart runs by default. |
The purpose of #13 (teams and RBAC) was to cover also such cases. In such case:
|
@sgotti I think we can define the table
APIs updates:
In the the request add this fields:
In the same PR or another we can add APIs to update preferences.
the request can contains this fields:
|
@alessandro-sorint How to implement should come after we choosed what to implement, the behavior and the logic. |
The logic is this:
agola-web will change: in the org/project/projectgroup creation page add 1 check-box for run action permission with filters(not mandatory) and 1 check-box for task action permission with filters(not mandatory). |
secrets and variables are different. They are types that are inherited from parents. This is instead a property. If it's going to be inherited this will cause a lot of confusion with other properties (like PassVarsToForkedPR) and the overriding logic isn't clear:
The cleaner solution will be to just have this config per project like any other config. That's why teams and rbac roles as in #13 were introduced. You have a team of members that have specific roles on specific projects. The inheritance of the permissions was at the level of the teams hierarchy and not at the level of the org/projectgroups/proejcts hierarchy. |
What would you like to be added:
It must be possible for the owner to set an option in
organization scope or project scope that authorize users from the same organization to perform
the actions of start and stop.
Why is this needed:
Currently only the organization owners can perform this actions.
The text was updated successfully, but these errors were encountered: