testkube
testkube copied to clipboard
Dashboard - user-friendly messages for 401 (Unauthorized)
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:
- Try to create a test trigger at demo.
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?