Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1158571 - user and group support in gui - permissions to clusters managed by pcsd
user and group support in gui - permissions to clusters managed by pcsd
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs (Show other bugs)
7.1
Unspecified Unspecified
high Severity high
: rc
: ---
Assigned To: Tomas Jelinek
cluster-qe@redhat.com
: FutureFeature
Depends On: 1158577
Blocks: 1114809
  Show dependency treegraph
 
Reported: 2014-10-29 12:41 EDT by Tomas Jelinek
Modified: 2015-11-19 04:33 EST (History)
4 users (show)

See Also:
Fixed In Version: pcs-0.9.143-8.el7
Doc Type: Enhancement
Doc Text:
Feature: Add a possibility to set permissions for users and groups to clusters managed by web UI. Reason: Pcsd web UI can be used to manage multiple clusters. It is needed that specific users can access only specific clusters depending on their role in an organization. Result: It is possible to set the permissions.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-19 04:33:19 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
proposed fix (240.26 KB, patch)
2015-08-10 08:58 EDT, Tomas Jelinek
no flags Details | Diff
proposed fix 2 (4.33 KB, patch)
2015-09-04 08:54 EDT, Tomas Jelinek
no flags Details | Diff
proposed fix 3 (3.18 KB, patch)
2015-09-04 10:03 EDT, Tomas Jelinek
no flags Details | Diff
proposed fix 4 (840 bytes, patch)
2015-09-07 10:44 EDT, Tomas Jelinek
no flags Details | Diff
proposed fix 5 (840 bytes, patch)
2015-09-08 04:32 EDT, Tomas Jelinek
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2290 normal SHIPPED_LIVE Moderate: pcs security, bug fix, and enhancement update 2015-11-19 04:43:53 EST

  None (edit)
Description Tomas Jelinek 2014-10-29 12:41:45 EDT
Add ability to set read only/write/admin access to each cluster managed by pcsd instance.
Comment 1 Tomas Jelinek 2015-08-10 08:58:26 EDT
Created attachment 1061040 [details]
proposed fix
Comment 2 Tomas Jelinek 2015-08-10 09:17:11 EDT
Before Fix:
[root@rh71-node1 ~]# rpm -q pcs
pcs-0.9.142-2.el7.x86_64

No support for users and groups permissions to clusters in web UI apart from pacemakers ACLs.



After Fix:
[root@rh71-node1:~]# rpm -q pcs
pcs-0.9.143-1.el7.x86_64

There is a new tab "Permissions" on the main page of the web UI. It allows to view and edit permissions for clusters managed by the web UI. It is possible to grant permissions for each cluster to users and groups, meaning of each permission is explained in a tooltip. Permissions are enforced throughout the web UI. If user tries to execute an action which is not allowed for him/her to run, an error message is displayed.
Comment 7 Tomas Jelinek 2015-09-04 08:54:17 EDT
Created attachment 1070256 [details]
proposed fix 2
Comment 8 Tomas Jelinek 2015-09-04 10:03:37 EDT
Created attachment 1070281 [details]
proposed fix 3
Comment 10 Tomas Jelinek 2015-09-07 05:13:20 EDT
Before Fix:
[root@rh71-node1 ~]# rpm -q pcs
pcs-0.9.143-6.el7.x86_64

Web UI does not inform about unsaved changes in a cluster permissions form.

Pcsd checks user's group membership upon login only. It does not react on changes done while user is logged in.



After Fix:
[root@rh71-node1:~]# rpm -q pcs
pcs-0.9.143-7.el7.x86_64

Web UI informs about unsaved changes in a cluster permissions form by displaying an asterisk next to the cluster name.

Let's have user user1 who is member of adm and haclient groups. Set permissions in pcsd to:
user user1 - read
group adm - full
User1 is able to log in to web UI and change cluster settings. If user1's membership in adm group is revoked while the user is logged in, the user is no longer able to change the cluster settings. If user1's membership in haclient group is revoked, a login dialog is displayed to the user.
Comment 13 Tomas Jelinek 2015-09-07 10:44:15 EDT
Created attachment 1071049 [details]
proposed fix 4
Comment 16 Tomas Jelinek 2015-09-08 04:32:55 EDT
Created attachment 1071234 [details]
proposed fix 5

Let's have a cluster consisting from rh71-node1 and rh71-node2, and a web UI host rh71-node3.
[root@rh71-node1:~]# id user1
uid=1000(user1) gid=1000(user1) groups=1000(user1)
[root@rh71-node2:~]# id user1
uid=1000(user1) gid=1000(user1) groups=1000(user1)
[root@rh71-node3:~]# id user1
uid=1000(user1) gid=1000(user1) groups=1000(user1),189(haclient)


Before Fix:
[root@rh71-node1 ~]# rpm -q pcs
pcs-0.9.143-7.el7.x86_64
Status of the cluster in the web UI is "unknown" and it id not possible do view nor change its settings.


After Fix:
[root@rh71-node1:~]# rpm -q pcs
pcs-0.9.143-8.el7.x86_64
Log in to web UI on node3 as user1. You are able to manage the cluster.
Comment 20 errata-xmlrpc 2015-11-19 04:33:19 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-2290.html

Note You need to log in before you can comment on or make changes to this bug.