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

Access configuration to Business Process overwritten #200

Closed
lx183 opened this issue Jan 21, 2019 · 5 comments
Closed

Access configuration to Business Process overwritten #200

lx183 opened this issue Jan 21, 2019 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@lx183
Copy link

lx183 commented Jan 21, 2019

Access for user, who should have access to all Business Process Views is restricted by group membership in another group, which has businessprocess/prefix filter set.

Expected Behavior

User belonging to two different groups, one a group which has no filter set for business processes in Configuration-> Authentication and one group with restricted for a specific prefix, should be able to see all Business Process Views. Even if membership in one group with businessprocess prefix filter would restrict it.

Current Behavior

User is only able see the restricted business process views.

Possible Solution

Do not overwrite access configuration, if one group grants full access.

Steps to Reproduce (for bugs)

Add a user to two groups:

  1. One group has full access to all business process views
  2. One has only access to a filtered list of business process views (businessprocess/prefix)

Context

User has restricted rights and therefore not able to see businessprocess views

Your Environment

BP Version 2.1.0
icingaweb2-2.6.2-1.el7.icinga.noarch
icinga2 - The Icinga 2 network monitoring daemon (version: r2.10.2-1)

System information:
Platform: Red Hat Enterprise Linux Server
Platform version: 7.6 (Maipo)
Kernel: Linux
Kernel version: 3.10.0-957.1.3.el7.x86_64
Architecture: x86_64

httpd-2.4.6-88.el7.x86_64

@lx183
Copy link
Author

lx183 commented Jan 21, 2019

User in both Roles via two groups
l_856b tmp

l_16b0 tmp
l_ecd2 tmp

@lx183
Copy link
Author

lx183 commented Jan 21, 2019

Would assume the issue is located here:

library/Businessprocess/Web/Form/BpConfigBaseForm.php

l_c0f5 tmp

@nilmerg nilmerg added the bug Something isn't working label Jan 22, 2019
@nilmerg
Copy link
Member

nilmerg commented Jan 22, 2019

Hi, yes, that's an issue. Thanks for the report.

@slalomsk8er
Copy link

I have the same Problem but maybe I just didn't get the syntax right. I tired to give the group with more rights multiple prefixes - x|y|z. This didn't work like it did for monitoring/filter/objects.
Maybe I'm to stupid or this stuff could use some better documentation.

@nilmerg
Copy link
Member

nilmerg commented Feb 18, 2019

Fixed in the master soon. Users with memberships in multiple roles/groups are supposed to have a consolidated list of restricted prefixes. If one role permits full access, it can do so by providing the permission businessprocess/showall. This permission is already configurable, but has not the promised effect yet.

@slalomsk8er There is currently no support for multiple prefixes per role.

@nilmerg nilmerg added this to the 2.2.0 milestone Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants