Bug 1448857 - Dialog for creating cloud volumes does not filter cloud tenants
Summary: Dialog for creating cloud volumes does not filter cloud tenants
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: GA
: 5.9.0
Assignee: Libor Pichler
QA Contact: Pavol Kotvan
URL:
Whiteboard: cfme_tenant:volume
Depends On:
Blocks: CVE-2017-7497
TreeView+ depends on / blocked
 
Reported: 2017-05-08 12:44 UTC by Gellert Kis
Modified: 2021-06-10 12:17 UTC (History)
14 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-06 15:10:43 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gellert Kis 2017-05-08 12:44:36 UTC
Description of problem:

Dialog for creating cloud volumes (cinder provider) does not filter cloud tenants for user. In this way users can create storage volumes in any tenant. Not only in their own tenant.

User can select any cloud tenant placement , not just only his own tenant ,when "Add new cloud volume" 


Version-Release number of selected component (if applicable):

How reproducible:


Steps to Reproduce:
1. Create more user ,each with tenant
2. Add new cloud volume
3. Select any tenant from placemant list 

Actual results:

Not Filter tenant.

Expected results:

Filter tenant.



Additional info:

Comment 2 ITD27M01 2017-05-10 11:25:24 UTC
Hi Guys.
I found that the problem has much greater coverage. The user can perform any operation on the cloud volumes from other tenants. Apparently the limitations of the tenants do not work for Storage Providers. The user can create, attach, and detach any cloud volume from/to any instances in the cloud (openstack) provider. Not only in his own tenant. In this case, I have to completely turn off this functionality (cloud volumes management by CFME users) to avoid data loss.

Comment 3 Kurt Seifried 2017-05-11 16:49:24 UTC
CVE assigned, do we have an ETA on when we can fix this?

Comment 6 ITD27M01 2017-05-20 20:54:53 UTC
In the environment with multiple OpenStack Regions CMFE display cloud tenant multiple times for each OpenStack Keystone region. In this way this string of code does not work for multi-region environments:

https://github.com/lpichler/manageiq/blob/fce2cbfd43bff2fc540424a458fbaa6c86557244/app/controllers/cloud_volume_controller.rb#L267

because hash value for the same tenant name get the last selected tenant id from CloudTenants array. And not all tenants are displayed. For correct work there should be some additional value for Cloud Tenant Region (For MIQ it is just another provider - ext_management_system) like this:

Rbac.filtered(CloudTenant).each { |tenant| @cloud_tenant_choices["#{tenant.name} - #{tenant.ext_management_system.name}"] = tenant.id }


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