devtron
devtron copied to clipboard
Bug: [Prod]Able to trigger jobs with "View only" permission
📜 Description
It is a production bug related to user permission
👟 Reproduction steps
- Go to user permission, in devtron apps give manager permission to a particular project.
- In jobs , select the same project as devtron apps and select all for other permissions and select view only.
- Now login with the user and try to trigger the jobs of that project.
👍 Expected behavior
The jobs should not be triggered with view only permission.
👎 Actual Behavior
The jobs are getting triggered with view only permission.
☸ Kubernetes version
EKS 1.23
Cloud provider
Cloud
🌍 Browser
Chrome
🧱 Your Environment
No response
✅ Proposed Solution
No response
👀 Have you spent some time to check if this issue has been raised before?
- [X] I checked and didn't find any similar issue
🏢 Have you read the Code of Conduct?
- [X] I have read the Code of Conduct
Similar Issue: [prod]Able to create a job after giving "view" permission.
- Go to user permissions under authentication of Global Configuraton
- After selecting specific permission for the desired email id, I went to the 'direct permissions' section.
- In devtron apps, select any project and all the environments and all the applications and give admin/Manager permission.
- In jobs, select all the jobs and environments and give view only / run job.
Expected result: The user should not be able to create new jobs .
Actual result: The user is able to create new jobs but not the workflows.
Fixed Reverted In https://github.com/devtron-labs/devtron/pull/5206