devtron-labs / devtron

The only Kubernetes dashboard you need
https://devtron.ai
Apache License 2.0
4.43k stars 484 forks source link

Access control #1779

Open snehith57624 opened 2 years ago

snehith57624 commented 2 years ago

Checklist:

Describe the bug When user is restricted of accessing other environments the CI CD pipelines view still getting shown(without data incase of ci with a error message Unauthorised while cd view shows unauthorised in the opened view)

To Reproduce User should open application which has 2 workflows in different environment. user should be restricted to have access for one of either environments. Now try accessing ci or cd pipeline details view.

Expected behaviour

View should not get opened and show pop up of unauthorised.

Current behaviour

ci pipeline detail view is showing view with no data and unauthorised message on the right while cd pipeline shows inside the view that it is unauthorised

Screenshots Screenshot 2022-05-30 at 1 04 43 PM Screenshot 2022-05-30 at 1 05 05 PM

AB#303

anupdhiran commented 2 years ago

To be worked upon by Gireesh