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 2098187 - Add warning for empty targetattr when creating ACI with RBAC
Summary: Add warning for empty targetattr when creating ACI with RBAC
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.6
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 2108223 2148379
TreeView+ depends on / blocked
 
Reported: 2022-06-17 14:12 UTC by Aleksandr Sharov
Modified: 2023-05-16 09:30 UTC (History)
7 users (show)

Fixed In Version: ipa-4.9.10-8.module+el8.8.0+17351+9a3fb056
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2108223 2148379 (view as bug list)
Environment:
Last Closed: 2023-05-16 08:28:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-8371 0 None None None 2022-06-17 14:21:02 UTC
Red Hat Issue Tracker RHELPLAN-125606 0 None None None 2022-06-17 14:21:08 UTC
Red Hat Product Errata RHBA-2023:2794 0 None None None 2023-05-16 08:29:36 UTC

Description Aleksandr Sharov 2022-06-17 14:12:11 UTC
Description of problem:
When we create RBAC permission, with CLI or WebUI, we can create permission with empty target attribute list. 

This will act as we didn't permit any attributes to be accessed, so permission without attributes won't do anything.


Version-Release number of selected component (if applicable):
RHEL 8.6
ipa-server-4.9.8-7
389-ds-base-1.4.3.28-6

How reproducible:
always

Expected results:
we should probably add a warning that empty target attributes are not really meaningful. Or just make this mandatory.

Additional info:

Comment 3 Rob Crittenden 2022-06-22 15:13:16 UTC
Linked to upstream issue https://pagure.io/freeipa/issue/9188

Comment 4 Florence Blanc-Renaud 2022-07-15 15:01:34 UTC
Fixed upstream
master:
https://pagure.io/freeipa/c/dc73813b8afccb82b513c49b29de35b7864819b6

Comment 5 Florence Blanc-Renaud 2022-07-15 15:06:38 UTC
Note to QA: the xmlrpc tests already check that the warning is displayed:

ipatests/test_xmlrpc/test_old_permission_plugin.py::test_old_permission
ipatests/test_xmlrpc/test_permission_plugin.py::test_permission_bindtype and ::test_permission_filters
ipatests/test_xmlrpc/test_privilege_plugin.py::test_privilege

Comment 13 errata-xmlrpc 2023-05-16 08:28:45 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 (idm:client and idm:DL1 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:2794


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