Keeping up with Icinga Web Permissions and Restrictions

by | Aug 4, 2021

This blogpost is a followup to the blogpost Icinga Web permissions and restrictions (how do they work, examples). In Icinga web 2 version 2.9, there are two cool updates to Permissions and Restrictions, namely Role Inheritance and Permission Refusal as explained by Johannes in Web Access Control Redefined and also in These two additions provide flexibility to manage web access control.

Requirement: Icinga Web2 version 2.9

In this blogpost I will illustrate these two additions in Icinga Web 2 Application. 

Role Inheritance

Role inheritance allows us to inherit permissions and restrictions for modules from another role which is similar to the new role, but with few changes required. This is illustrated in this section.

  • Login to Icinga Web 2 with admin credentials.
  • Go to Configuration->Access Control->Users. Create users dave, jdoe and raj.

  • Now, navigate to Configuration->Access Control->Roles. 
  • Create a new role monitoring-view-berlin, with basic monitoring permissions and host location restricted to Berlin. And add dave to this role.

Create one more role monitoring-support-berlin, inheriting the role monitoring-view-berlin and some additional important permissions for monitoring support. Add jdoe to this role.

Now, if you login with dave’s credentials you will be only able to view the monitored hosts and services with host location Berlin.

But if you login with jdoe’s credentials you will be also have additional permissions but the host location will still be restricted to Berlin as this role is inherited from monitoring-view-berlin.

Permission Refusal

Permission refusal is nothing but refusing permissions to a role. For example, say there are users with role to support monitoring. And now I need a user with a role to support monitoring, but does not want him to add comments to hosts or services. All I need to do is inherit the role configured to support monitoring and deny the permission to add comments to hosts or services. This is illustrated in this section.

Now create one more role, monitoring-no-comment-berlin; inheriting monitoring-support-berlin but permission to comment is denied. Add raj to this role. 

Now login with raj’s credentials to verify his role. You will be able to see, that raj has no permission to add comments to hosts and services.

So, that’s it! Simple but a lot effective. Read the updated documentation to learn how to configure permission refusals in configuration file and more.

You May Also Like…

Icinga Camp Berlin 2023

It’s time to spread some monitoring love! We’re super happy to announce our next Icinga Camp in Berlin, on May 17th, 2023

IPL: How to use ipl-html

IPL: How to use ipl-html

In my previous blogpost I briefly explained the IPL and the tasks that these individual libs can perform. Today I want...

Subscribe to our Newsletter

A monthly digest of the latest Icinga news, releases, articles and community topics.