Hi All
I’m trying to hide these buttons because users don’t have access to them.
ROR conf
kibana_hide_apps: [“Machine Learning”, “Management”, “Elasticsearch”, “Stack Management”]
kibana => Discover
My suggestions:**
Check out context-aware Discover -** Should be hidden when specifying Management, since the user no longer has access to the space. Try ES|QL - Maybe we should create a feature that hides all the functionality not available in the basic subscription
**
P.S.**
When I write in kibana_hide “Management”, it doesn’t hide the “Stack Management” button. I don’t know if this is a bug or a feature. But I write “Stack Management” separately.**
**
{“customer_id”: “6c4a385b-2ae8-4f02-a9cd-ef24addfb5b3”, “subscription_id”: “32d4073f-dc2f-4056-a868-842727c637cd”}
When I write in kibana_hide “Management”, it doesn’t hide the “Stack Management” button. I don’t know if this is a bug or a feature. But I write “Stack Management” separately.**
That’s strange, I used the exact list as you ["Machine Learning", "Management", "Elasticsearch"], and it works as expected (I needed to replace a quote from “ to ", but maybe it’s a problem with the forum text formatting)
We require a license. Perhaps this is a problem only with cross-cluster search.
Then please tell me how to hide this button.
It looks like the problem was with the browser cache.
Now it’s hidden for me too. But yesterday, when I was setting it up and constantly changing clients, “Stack Management” kept showing up. Thanks for checking.
There is no native plugin mechanism to disable this button; however, you can write your own solution, thanks to inject custom JS in Kibana mechanism. You can define in your kibana.yml file the path to your custom JS logic
readonlyrest_kbn.kibana_custom_js_inject_file: '<PATH_TO_YOUR_FILE>' # e.g. /usr/share/kibana/custom_kibana.js
And it works on my side with all other custom style rules. Could you try this inline version?.
BTW. The MutationObserver approach is crucial to make this solution work since we need to listen to discover page appears on the page appears, to be able to hide it dynamically