Bug 2117601

Summary: [WebUI] Add basic support for acl
Product: Red Hat Enterprise Linux 9 Reporter: Ivan Devat <idevat>
Component: pcsAssignee: Ivan Devat <idevat>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: cluster-maint, idevat, mlisik, mmazoure, mpospisi, omular, svalasti, tojeline
Target Milestone: rcKeywords: Triaged
Target Release: 9.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.11.4-1.el9 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 07:18:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ivan Devat 2022-08-11 12:36:22 UTC
There is no support for acl in webui. Add basic support for it.

Comment 2 Miroslav Lisik 2022-10-26 13:32:06 UTC
DevTestResults:

[root@r92-1 ~]# rpm -q pcs
pcs-0.11.3-5.el9.x86_64

There is new ACLs tab on the cluster page where you can enable/disable ACL and manage roles, users and groups.

Comment 3 Miroslav Lisik 2022-10-26 14:23:18 UTC
Cannot create ACL role. No request is sent from pcs web ui after completing the create role wizard.

Comment 5 Michal Pospisil 2022-11-24 12:19:08 UTC
DevTestResults:
ACL roles can be created with the create role wizard now.

Comment 9 svalasti 2023-01-30 11:14:13 UTC
[root@virt-594 ~]# rpm -q pcs
pcs-0.11.4-4.el9.x86_64

Only a basic check of this implemented feature has been performed. Our priority at the moment is to automate the tasks that are possible by using the GUI.
For ACL management, there is a dedicated tab that allows you to manage roles, users, and groups and allows you to enable/disable ACL.
The creation of a role requires the specification of a role name and the specification of permissions of this role (by using id or xpath, available permissions are: read, write and deny).
To create a user, you have to specify the user name, and then you can assign available user roles to the user.
Similarly, to create a user group, you need to specify the name of the group, and then you can assign the available roles to the group.
To enable or disable an ACL, you need to click on the small button at the top left of the page next to the "Create User" button, and then you need to click on the task (enable ACL / disable ACL) you want.
Managing an existing role allows you to assign/unassign a user/group to this role. There is also an option to add permissions to this role.
Managing an existing user allows you to assign/unassign a role for that user, as well as the ability to delete a user.
Managing an existing group allows you to assign/unassign a role for that group, as well as the ability to delete a group.

> Marking as VERIFIED SanityOnly for pcs-0.11.4-4.el9

Comment 11 errata-xmlrpc 2023-05-09 07:18:34 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 (pcs bug fix and enhancement update), 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://access.redhat.com/errata/RHBA-2023:2151