kubeshop / testkube

☸️ Kubernetes-native testing framework for test execution and orchestration
https://testkube.io
Other
1.33k stars 130 forks source link

Dashboard - user-friendly messages for 401 (Unauthorized) #4081

Open tkonieczny opened 1 year ago

tkonieczny commented 1 year ago

Describe the bug Currently, when user tries to execute actions that are blocked on the ingress level (most of the POST requests) like creating trigger the unknown error error is displayed. It's confusing, and the reason is completely unclear. Specific, permission-related error message should be displayed instead, like Unauthorized: no permissions to execute this action

To Reproduce Steps to reproduce the behavior:

rangoo94 commented 11 months ago

On the other side, I'm not sure if that should be the front-end. Shouldn't we rather return regular JSON error message from the ingress level?