compliantkubernetes-apps icon indicating copy to clipboard operation
compliantkubernetes-apps copied to clipboard

Users can not create alert monitors with index per namespace enabled

Open davidumea opened this issue 1 year ago • 2 comments

Describe the bug Users mapped to alerting_full_access can not create alert monitors when index per namespace is enabled.

The users can not select an index in the "data source" tab.

These are the required index permissions:

indices_monitor
indices:admin/aliases/get
indices:admin/mappings/get

Problem is that when you grant those permissions to these indices (which we use for other roles):

/^(?!kube-system|gatekeeper-system|other|authlog|\.).*/

the users are still not able to pick any index as datasource when creating an alerting monitor.

It only works if you grant them those permissions on all indices, *.

To Reproduce Steps to reproduce the behavior:

  1. Enable index per namespace
  2. Log in to Opensearch as a user mapped to roles kibana_user, kubernetes_log_reader & alerting_full_access. (Most common non-cluster-admin permissions)
  3. Go to Alerting -> Monitors -> Click "Create monitor"
  4. Try to pick an index (or index pattern) as a datasource.

Expected behavior User with alerting_full_access should be albe to create alerting monitors, with index per namespace enabled.

Version (add all relevant versions):

  • Compliant kubernetes apps version [v0.29.1]

davidumea avatar Apr 27 '23 09:04 davidumea

Waiting for reply to issue upstream

Issue seems to occur with or without index per namespace and no matter what you specify other than "*".

lunkan93 avatar May 26 '23 11:05 lunkan93

Checked back in on this when upgrading the chart - Seems that you can search for indices and select them that way, but the drop-down menu still isn't working correctly.

Screenshot from 2024-03-18 12-46-41

lunkan93 avatar Mar 18 '24 11:03 lunkan93