RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1158571 - user and group support in gui - permissions to clusters managed by pcsd
Summary: user and group support in gui - permissions to clusters managed by pcsd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs
Version: 7.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Tomas Jelinek
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 1158577
Blocks: 1114809
TreeView+ depends on / blocked
 
Reported: 2014-10-29 16:41 UTC by Tomas Jelinek
Modified: 2020-02-14 17:26 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2015-11-19 09:33:19 UTC
Target Upstream Version:
Embargoed:


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


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1114809 0 medium CLOSED RFE: Centralise authentication of RHEL-HA (pacemaker) 2023-09-14 02:10:49 UTC
Red Hat Product Errata RHSA-2015:2290 0 normal SHIPPED_LIVE Moderate: pcs security, bug fix, and enhancement update 2015-11-19 09:43:53 UTC

Internal Links: 1114809

Description Tomas Jelinek 2014-10-29 16:41:45 UTC
Add ability to set read only/write/admin access to each cluster managed by pcsd instance.

Comment 1 Tomas Jelinek 2015-08-10 12:58:26 UTC
Created attachment 1061040 [details]
proposed fix

Comment 2 Tomas Jelinek 2015-08-10 13:17:11 UTC
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 12:54:17 UTC
Created attachment 1070256 [details]
proposed fix 2

Comment 8 Tomas Jelinek 2015-09-04 14:03:37 UTC
Created attachment 1070281 [details]
proposed fix 3

Comment 10 Tomas Jelinek 2015-09-07 09:13:20 UTC
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 14:44:15 UTC
Created attachment 1071049 [details]
proposed fix 4

Comment 16 Tomas Jelinek 2015-09-08 08:32:55 UTC
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 09:33:19 UTC
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.