Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1283309 - Multi-tenancy: Parent tenant cannot view child tenant elements
Multi-tenancy: Parent tenant cannot view child tenant elements
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance (Show other bugs)
5.5.0
Unspecified Unspecified
high Severity high
: GA
: 5.6.0
Assigned To: Gregg Tanzillo
Pavol Kotvan
tenant_cfme:rbac
:
Depends On:
Blocks: 1287849
  Show dependency treegraph
 
Reported: 2015-11-18 11:44 EST by Pavol Kotvan
Modified: 2016-06-29 11:09 EDT (History)
9 users (show)

See Also:
Fixed In Version: 5.6.0.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1287849 (view as bug list)
Environment:
Last Closed: 2016-06-29 11:09:39 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: Bug
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 14:50:04 EDT

  None (edit)
Description Pavol Kotvan 2015-11-18 11:44:12 EST
Description of problem:
Parent tenant cannot see elements of all child tenants. Administrator of each tenant or child tenant can manage only its own resources.

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

How reproducible:
always

Steps to Reproduce:

1. Configure root tenant (gcloud), child tenant smals and onp, create project1 under smals tenant 

2. One group is attached to each tenant

 gcloud-admins -> gcloud
 smals-admins -> smals
 onp-admins -> onp
 project1-admins -> project1


3. Each group has the role EvmRole-super_administrator

We took a cloud instance and changed ownership.

These are test results of Smals customer, however when I tried to reproduce it, I got different results (marked with PK:):

a. Owner Group:   "Tenant gcloud access"  or  "gcloud-admins"   =>   Only member of tenant gcloud can view this instance   => OK
PK: - OK

b. Owner Group:   "Tenant gcloud/smals access"  or  "smals-admins"   => Only member of tenant gcloud  or tenant smals can view this instance   => OK
PK: - when owner group is set to "Tenant gcloud/smals access", user belonging to gcloud group cannot see intance. => NOK

c. Owner Group:   "Tenant gcloud/smals/project1 access"  or "project1-admins"
   =>   Only member of tenant gcloud  or project "project1" can view this instance   => NOK
PK:  When owner group is set to "Tenant gcloud/smals/project1 access" or to "project1-admins", this is what happens:
  - Member of gcloud group cannot see instance - NOK
  - Member of smals group cannot see instance - NOK
  - Member of project1 can see instance - OK


Actual results:
-

Expected results:
We expect that members of a parent tenant can interact with resources of a
child tenant and that feature seems to be only available to the root
tenant.

Additional info:
Same results when using role "EvmRole-tenant_administrator". It seems that parent tenant cannot manage resource of child tenants.
Comment 2 Dave Johnson 2015-11-24 12:13:02 EST
Triage call decided this is not a block and something we can address in the next z-stream
Comment 3 Gregg Tanzillo 2015-12-01 17:27:32 EST
Created PR: https://github.com/ManageIQ/manageiq/pull/5671
Comment 4 CFME Bot 2015-12-02 14:46:03 EST
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/068c96899aeda1882fcffa10bd28deb0f535af3d

commit 068c96899aeda1882fcffa10bd28deb0f535af3d
Author:     Gregg Tanzillo <gtanzill@redhat.com>
AuthorDate: Tue Dec 1 17:26:12 2015 -0500
Commit:     Gregg Tanzillo <gtanzill@redhat.com>
CommitDate: Tue Dec 1 17:26:12 2015 -0500

    Fixing tenant accessibility for subclassed objects
    
    - Accessibility strategy was nil for subclasses of classes listed in TENANT_ACCESS_STRATEGY hash keys
    - Added call to base_model normalize class name before lookup to ensure it will match the appropriate base class in the hash
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1283309

 app/models/rbac.rb       |  2 +-
 spec/models/rbac_spec.rb | 20 ++++++++++++++++----
 2 files changed, 17 insertions(+), 5 deletions(-)
Comment 7 errata-xmlrpc 2016-06-29 11:09:39 EDT
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, 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-2016:1348

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