Project

General

Profile

Actions

Bug #1875

open

user restricted to compute resource(s) can create baremetal hosts

Added by Joshua Hoblitt almost 12 years ago. Updated over 9 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
Compute resources
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Testing user permissions on foreman-1.0.1-1.el6.noarch

I setup a test account with a filter that only allows it view and provision VMs on on a single computer research (libvirt). That seems to work as far as actually spawning the VMs but I haven't tested beyond that. However, if I try to create a baremetal instance with this restricted user, it actually does create a host entry (after reporting an error message) which is then invisible to the restricted user as it's not the visible computer resource.

This is fairly scary as a user could create dhcp reservations, dns entries, etc. without knowing it.

[root@ctrl ~]# grep thiswillpuke /var/lib/dhcpd/dhcpd.leases
host thiswillpuke.tuc.noao.edu {
        supersede host-name = "thiswillpuke.tuc.noao.edu";

[root@ctrl ~]# ls -la /tftpboot/pxelinux.cfg/01-00-11-22-33-44-55 
-rw-rw-rw- 1 foreman-proxy foreman-proxy 206 Sep 27 11:19 /tftpboot/pxelinux.cfg/01-00-11-22-33-44-55

Also, deleting these created hosts is subject to Bug #1529 since they (presumably) are never provisioned.


Files

foreman_hosts_as_admin.png View foreman_hosts_as_admin.png 63.5 KB Joshua Hoblitt, 09/27/2012 02:33 PM
foreman_hosts_post_error.png View foreman_hosts_post_error.png 56.9 KB Joshua Hoblitt, 09/27/2012 02:33 PM
foreman_new_host.png View foreman_new_host.png 61.9 KB Joshua Hoblitt, 09/27/2012 02:33 PM
foreman_new_host_error.png View foreman_new_host_error.png 59 KB Joshua Hoblitt, 09/27/2012 02:33 PM

Related issues 2 (1 open1 closed)

Related to Foreman - Feature #6810: Treat bare-metal provisioning the same way as other compute-resourcesNew07/29/2014Actions
Related to Foreman - Feature #4477: Improve permissions on resources in host creation/editing formClosedTomer Brisker02/27/2014Actions
Actions

Also available in: Atom PDF