elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.76k stars 8.16k forks source link

Cross Cluster Replication UI for unprivileged user appears as error #155390

Open jeramysoucy opened 1 year ago

jeramysoucy commented 1 year ago

Kibana version: 8.7.0

Describe the bug: When logged in as a user without the 'manage_ccr' cluster privilege and navigating to the CCR page via the sidebar, the UI presented appears as an error message. It does state "forbidden" under the error declaration, but I don't think we usually present insufficient privilege as an error to the user.

Expected behavior: It looks like the CCR link visibility relies on a license check and both the xpack.ccr.ui.enabled and xpack.remote_clusters.ui.enabled settings, but not on privilege. Solution could be to either hide the link based on privilege, or to display a more meaningful message to the user.

Screenshots (if relevant):

Screenshot 2023-04-19 at 1 31 23 PM
elasticmachine commented 1 year ago

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

elasticmachine commented 2 weeks ago

Pinging @elastic/kibana-management (Team:Kibana Management)