Open
Description
Currently, there is no implementation in place to handle situations where a user attempts to access a namespace without the necessary permissions through their kubeconfig. We need to implement a clear and informative alert system to notify users when they do not have the required permissions to access a namespace.
Problem
- Users may encounter situations where they attempt to access a namespace for which they lack the appropriate permissions.
- Without proper alerts, users may be confused or left without clear information about why they cannot access certain namespaces.
Expected Behavior
- When a user tries to access a namespace that they do not have permission to view or interact with, a clear and informative alert should be displayed.
- The alert should explain that the user does not have the necessary permissions and provide guidance on possible next steps (e.g., contacting an administrator).
Steps to Reproduce
- Configure a kubeconfig file with a user who does not have permissions to access certain namespaces.
- Attempt to navigate to or interact with one of these restricted namespaces.
- Observe that no specific alert or message is provided regarding the permission issue.
Acceptance Criteria
-
Permission Alert:
- Implement an alert that triggers when a user without permissions tries to access a namespace.
- The alert should clearly state that the user does not have access and provide a brief explanation.
-
User Guidance:
- The alert should suggest potential actions, such as contacting an administrator or checking with their team for access permissions.
-
Testing:
- Verify that the alert is displayed correctly when access is denied due to insufficient permissions.
- Ensure that the alert is informative and provides actionable guidance.
- Test the alert under various scenarios to confirm it works as expected.
Additional Information
Review the current handling of namespace access to integrate the permission alert. Ensure the alert system is consistent with the overall user interface and provides a helpful user experience.