Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow roles to filter for the currently logged in user #3493

Closed
chas0rde opened this issue Jun 28, 2018 · 2 comments · Fixed by #3553
Closed

Allow roles to filter for the currently logged in user #3493

chas0rde opened this issue Jun 28, 2018 · 2 comments · Fixed by #3553
Labels
area/authentication Affects user authentication or authorization enhancement New feature or improvement
Milestone

Comments

@chas0rde
Copy link

In nagios it was possible to limit the hosts/services visible to a logged in user based on contact information. e.g. if userA was logged into the webfrontend he would only see hosts and services with her/him assigned as a contact.
This allows users to see only systems they are actually responsible for instead of having to somehow filter away issues of system out of their responsibility.

It would be nice to have something similar in icingaweb2.

Context

e.g. we assign hosts AND services custom variables via icinga director, that respresent

  • responsible <-- single string value
  • deputy <-- single string value
  • additional informational users <-- array of string values

These vars are then pulled (among other vars) by notfication assign-where's to map the required notifications thus allowing easy deployment.

It would be great to have a functionality that allows e.g. filtering like
host.vars.responsible=="$currentUser$" || host.vars.deputy=="$currentUser$"||"$currentUser$" in host.vars.addition_users

Your Environment

  • Icinga Web 2 version and modules (System - About): 2.5.3
  • Version used (icinga2 --version): r2.8.4-1
  • Operating System and version: ubuntu 16 LTS
  • Enabled features (icinga2 feature list):
    Disabled features: compatlog elasticsearch gelf icingastatus influxdb livestatus opentsdb perfdata statusdata syslog
    Enabled features: api checker command debuglog graphite ido-mysql mainlog notification
  • Config validation (icinga2 daemon -C):
  • If you run multiple Icinga 2 instances, the zones.conf file (or icinga2 object list --type Endpoint and icinga2 object list --type Zone) from all affected nodes.
@chas0rde
Copy link
Author

@lippserd
Copy link
Member

Hi,

Thanks for the report. We consider this for our next feature release. But I don't have an exact schedule yet though.

Best,
Eric

@lippserd lippserd added the enhancement New feature or improvement label Nov 19, 2018
@lippserd lippserd changed the title [Feature request] Allow roles to be filter on hosts/services based on currently logged in user Allow roles to filter for the currently logged in user Nov 19, 2018
@lippserd lippserd added this to the 2.7.0 milestone Nov 20, 2018
@nilmerg nilmerg added the area/authentication Affects user authentication or authorization label Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/authentication Affects user authentication or authorization enhancement New feature or improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants