There are 3 rule types that has Role Visibility option:
Elasticsearch query, Custom Threshold and Anomaly Detection.
For a user with kibana_system, monitoring_user, kibana_admin roles:
"Stack Rules" option is not displayed in the Role Visibility selectbox.
Above rules are not displayed when they have "Stack Rules" role visibility.
Only Elasticsearch rule becomes visible if a role with Stack Rules kibana privilege is assigned to the user.
This doesn't work for the other two rule types.
To reproduce the issue:
Login with superadmin (elastic)
Create a user with kibana_system, monitoring_user, kibana_admin roles.
Create one of the above rules with "Stack Rules" role visibility.
Logout and login with the user you have created.
Go to Stack Management > Rules page.
The rule is not displayed on the page
Expected behaviour: Rule to be displayed on the page.
This issue has emerged from an SDH.
There are 3 rule types that has
Role Visibility
option:Elasticsearch query
,Custom Threshold
andAnomaly Detection
.For a user with
kibana_system
,monitoring_user
,kibana_admin
roles:Role Visibility
selectbox.Only Elasticsearch rule becomes visible if a role with
Stack Rules
kibana privilege is assigned to the user. This doesn't work for the other two rule types.To reproduce the issue:
kibana_system
,monitoring_user
,kibana_admin
roles.Stack Management > Rules
page.Expected behaviour: Rule to be displayed on the page.