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 1034297 - RFE: add role to IPA that allows users to add/remove/delete "their own" hosts
Summary: RFE: add role to IPA that allows users to add/remove/delete "their own" hosts
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 14:47 UTC by David Jaša
Modified: 2018-12-04 16:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-04 16:28:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Jaša 2013-11-25 14:47:50 UTC
Description of problem:
It would be nice to have a privilege in IPA that would be a high-level match of what RHEV Self-service portal allows to its users: add hosts and modify/delete hosts that the respective user have added, without ability to view/modify/delete hosts that were added by other users with this role (or by admin).

Version-Release number of selected component (if applicable):
RHEL 6.4 / ipa-server-3.0.0-26.el6_4.4.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Dmitri Pal 2013-11-25 16:31:46 UTC
Can this be configured via delegations?

IMO the solution would be for RHEV-M to create a host group in IdM per user and place hosts into that host group. It would also create a delegation allowing user to manage hosts only in the given group.

I suspect this all can be accomplished using existing software.
But IMO this is a good candidate for an integration effort.

Comment 2 Rob Crittenden 2013-11-25 17:20:55 UTC
We have the creatorsName attribute in LDAP so we'll know who made it, but I just wonder if this won't be precise enough for all use cases.

The visibility won't be possible until at earliest IPA 3.4 when the access control mechanism is changed not grant read by default to all authenticated users.

And note that this is 3 separate ACIs:

- grant ability to add a host (already exists)
- grant ability to modify host where creatorsName == bound user (needs to be written, should be trivial)
- grant ability to delete host where creatorsName == bound user (needs to be written, may be just as easy)

Note that deleting a host also means revoking any certificates for that host and deleting services for that host, so even simple things can be complex.

Comment 3 Martin Kosek 2013-11-26 08:20:49 UTC
True, creatorsName attribute is the key to solve this RFE. I double checked the attribute and it should indeed work fine:

# ldapsearch -h localhost -D "cn=Directory Manager" -x -w Secret123 -b "fqdn=foo.example.com,cn=computers,cn=accounts,dc=example,dc=com" -s base creatorsName
...
# foo.example.com, computers, accounts, example.com
dn: fqdn=foo.example.com,cn=computers,cn=accounts,dc=example,dc=com
creatorsName: uid=admin,cn=users,cn=accounts,dc=example,dc=com

I will clone this request upstream.

Comment 4 Martin Kosek 2013-11-26 13:06:19 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/4054

Comment 5 Martin Kosek 2014-01-23 12:48:16 UTC
The ticket was triaged by the upstream and scheduled to milestone for current milestone. However, the work has not started yet due to different prioritization. This request is thus not likely to be finished in next months. Additionally, when the request is finished, it is not planned to be added to RHEL-6.x product, but rather introduced in RHEL-7.x product (which does not harm, given that the permission would be replicated to all servers).

I am moving this Bugzilla to RHEL-7 product to narrow the expectations.

Comment 7 Petr Vobornik 2017-02-23 15:18:50 UTC
The bugzilla doesn't have high enough priority in comparison to other bugs/RFEs for 7.4. Moving to next release. Without sufficient justification it can be moved again later.

Comment 10 Rob Crittenden 2018-12-04 16:28:39 UTC
Thank you taking your time and submitting this request for Red Hat Enterprise Linux. The request was cloned to the upstream tracker a long time ago (see link to the upstream ticket above), but it was unfortunately not given priority either in the upstream project, nor in Red Hat Enterprise Linux.

Given that this request is not planned for a close release, it is highly unlikely it will be fixed in this major version of Red Hat Enterprise Linux. We are therefore closing the request as WONTFIX.

To request that Red Hat reconsiders the decision, please reopen the Bugzilla with the help of Red Hat Customer Service and provide additional business and/or technical details about it's importance to you. Please note that you can still track this request or even offer help in the referred upstream Pagure ticket to expedite the solution.


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