Project

General

Profile

Actions

Feature #7289

open

ACL who can add a host to hostgroup.

Added by Steve Traylen over 9 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Users, Roles and Permissions
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

With foreman 1.4 if a user had edit rights to a host due to a filter applied to a subset of hostgroups
they could

  • Move a host to any hostgroup via API
  • however when editing via web interface they were at least only
    presented with hosgroups to which they were enabled in filter.

With foreman 1.5 the first point is still true that via API a host can be put in any hostgroup
but also the drop down box contains all hostgroups so it's a bit more obvious.

Having set up a role like the following with 1.5.

Resource Permissions Search
hostgroup view_hostgroups, create_hostgroups, edit_hostgroups, destroy_hostgroups title = cvmfs or title ~ cvmfs/%
Host/managed view_hosts, create_hosts, destroy_hosts, console_hosts, build_hosts, edit_hosts, ipmi_boot, power_hosts, puppetrun_hosts hostgroup_title = cvmfs or hostgroup_title ~ cvmfs/%

You also get the slightly bizare consequence that a user can edit a host in such a way that they then no longer
have access to it.

The RFE is to request to somehow control which hostgroups a user is permitted to put hosts in. Returning to old
1.4 behaviour where the drop down box was limited to hostgroups that can be viewed would also be good.


Related issues 4 (1 open3 closed)

Related to Foreman - Feature #4477: Improve permissions on resources in host creation/editing formClosedTomer Brisker02/27/2014Actions
Related to Foreman - Bug #14248: Unable to control where users can build hostsDuplicateTomer Brisker03/17/2016Actions
Related to Foreman - Bug #6760: Models should ensure the authorization of associated objects before associating them to the modelNew07/23/2014Actions
Has duplicate Foreman - Bug #12349: Filtering host groups does not work in the host creation screenDuplicate10/29/2015Actions
Actions

Also available in: Atom PDF