Open MisterMountain opened 1 year ago
ref/NC/776097
You're combining multiple restriction mechanisms:
director/monitoring/hosts
grants access to all Hosts available to this user in the Icinga monitoring moduledirector/hosts
grants access to all Hosts in the Director and to the "Hosts" view. The restriction director/filter/hostgroups
filters those hostsWith this combination, a single Host view succeeds, if either such a given filter matches - or the monitoring module allows to see a Host. Does this match what you're seeing in this setup?
NB: director/monitoring/hosts
and director/hosts
are usually exclusive, normally you grant only one of them.
Good to know that its common practice to only use one of those (director/monitoring/hosts might be kind of deprecated, as the monitoring module and IDO is).
Even if only apply only one of these filters, i can still see all hosts in the overview, even those i am not allowed to see: https://imgur.com/a/MNNH595 Is there an option to see only the hosts in the Host Overview i am allowed to see in detail/can see without an error message?
I'm not following the "best" practice of deprecating software and components, before their successor becomes stable. Without director/hosts
you should neither see the "Hosts" menu entry, nor related dashlets, your screenshot doesn't fit what you're describing.
@MisterMountain: could you please give the current master a try? I discovered some bug related to monitoring-module-related permissions, and pushed quite some changes. Grant just director/monitoring/hosts
, and director/monitoring/services
if you want. Don't grant director/hosts
, as it would grant access to all hosts.
Hi Tom, i try do test your last comment, but with current master, without grant ondirector/hosts
i didn't see any hosts. if i activate this grant, i can see all hosts, but i just can edit the host from the testgroup which should be restricted and at the others i get the same error messages from the top, with monitoring module or just with icingadb, quite the same result, does i configure something wrong?
Any News on this?
Hi,
tried this on the current master Git commit 12cca3ebcf520b5502378a95b16bd2db362163a1
This is also fixed in v1.11.0 a6f0a08
No longer an issue.
Was fixed in https://github.com/Icinga/icingaweb2-module-director/commit/91b99d8e46045f26992bddce46eb813165edea23
Can be closed
Hello,
if you have a User in Icingaweb2, that is restricted to only view a single hostgroup, you can still see all other hosts being not in the mentioned single hostgroup.
Expected Behavior
Host should not be visible in the Overview
Current Behavior
All hosts are visible in the Overview (icingaweb2/director/hosts), although not all of them are in the only allowed hostgroup
Possible Solution
Steps to Reproduce (for bugs)
[test] users = "test" permissions = module/director,director/hosts,director/inspect,director/monitoring/hosts,monitoring/*,module/monitoring" director/filter/hostgroups = "testgroup" director/service_set/filter-by-name = "testgroup"
Your Environment
icinga2 --version
): 2.13.6-1