sni / lmd

Livestatus Multitool Daemon - Create livestatus federation from multiple sources
https://labs.consol.de/omd/packages/lmd/
GNU General Public License v3.0
42 stars 31 forks source link

Add support for the AuthUser header #71

Closed jacobbaungard closed 5 years ago

jacobbaungard commented 5 years ago

This commit adds support for setting the AuthUser header option. The option is used for limiting the rows returned, based on whether the username set in the AuthUser header is a contact on the objects requested.

The two settings ServieAuthorization and GroupAuthorization allows some customization of the behaviour, and reflects the options present in livestatus.

jacobbaungard commented 5 years ago

Tests failed after 45436f5f7a56772a4a7d19d81fc9cda62784a20f due to the extra column on hosts and services. This PR also includes a fix for that.

jacobbaungard commented 5 years ago

thanks, i have a few marks added. Mostyl coding style.

Thanks for the review! Should have addressed everything.

sni commented 5 years ago

thanks