Icinga / icingaweb2-module-elasticsearch

This module will not be updated by Icinga anymore. Please don't attempt to use it.
GNU General Public License v2.0
29 stars 9 forks source link

Missing permission elasticsearch/events #30

Closed matthenning closed 5 years ago

matthenning commented 6 years ago

Expected Behavior

I can create a read only user with permission to see the host action "Elasticsearch Events"

Current Behavior

Even though I assign every permission except "Allow everything (*)" I cannot see the host action.

Possible Solution

The HostAction hook checks for elasticsearch/events permission but the permission is not configurable: https://github.com/Icinga/icingaweb2-module-elasticsearch/blob/aaa383a20ec4dd54692717543890651663f6fcc5/library/Elasticsearch/ProvidedHook/Monitoring/HostActions.php#L17

Steps to Reproduce (for bugs)

  1. Assign all permissions except "Allow everything (*)" to a user
  2. Open a host and notice the missing Elasticsearch Link under Actions

    Your Environment

    • Module version (System - About): 1.0.0
    • Icinga Web 2 version and modules (System - About): 2.5.1