Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED0CB11BB9 for ; Wed, 16 Apr 2014 17:24:02 +0000 (UTC) Received: (qmail 29538 invoked by uid 500); 16 Apr 2014 17:23:43 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 29415 invoked by uid 500); 16 Apr 2014 17:23:31 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 28556 invoked by uid 500); 16 Apr 2014 17:22:57 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 28044 invoked by uid 99); 16 Apr 2014 17:22:32 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 17:22:32 +0000 Date: Wed, 16 Apr 2014 17:22:32 +0000 (UTC) From: "Min Chen (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-6428) IAM - Domain Admin - When his sub-domainId is passed to the listVirtualMachine command, Vms from all the domains are being listed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-6428?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13971685#comment-13971685 ]=20 Min Chen commented on CLOUDSTACK-6428: -------------------------------------- This is caused by us interpreting DOMAIN scope policy in iam_policy_permiss= ion table just for current domain. This usecase, the domain id passed is th= e subdomain id. Fixed by interpreting that to include the domain tree. This= is also the assumption we have made in RoleBasedEntityAccessChecker for ph= ase I. > IAM - Domain Admin - When his sub-domainId is passed to the listVirtualMa= chine command, Vms from all the domains are being listed. > -------------------------------------------------------------------------= --------------------------------------------------------- > > Key: CLOUDSTACK-6428 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-642= 8 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: API > Affects Versions: 4.4.0 > Reporter: Min Chen > Assignee: Min Chen > Priority: Critical > Fix For: 4.4.0 > > > IAM - Domain Admin - When domainId is passed to the listVirtualMachine co= mmand, Vms from all the domains are being listed. > Set up: > Pre Reqs: > Admin - Creates object > Domain Admin for d1 - D1 - Creates object - d1 > Domain Admin for d1 - D1/D11 > User account for d1 - D1/D111 - Creates object - d111a > Domain Admin for d1 - D1/D12 > Domain Admin for d2 - D2 - Creates object -d2 > User Account in domain D1 - userD1-1 - Creates object -d1a > User Account in domain D1 - userD1-2 - Creates object - d1b > User Account in domain D1/D11 - userD1-a - Creates object - d11a > User Account in domain D1/D11 - userD1-a - Creates object - d11b > User Account in domain D1/D12- userD1-b - Creates object - d12a > User Account in domain D1/D12 - userD-a - Creates object - d12b > As domain admin d1 , tried to list all the Vms for domain - d1/d11. > The Vm list returned has all the Vms including the Vms from domain d2. > GET http://10.223.49.6/client/api?command=3DlistVirtualMachines&domainId= =3D0a0f7c09-2f1a-4939-94ce-88388e197949&listAll=3Dtrue&apiKey=3DHv0VKnmBjXh= yRMKZ7ixI51gG-iqHqRVTp1xCCLU2-gTnZwhuUNWsa4zZLYZWWLD5lEhvwe05tJKJVa9NeS5REw= &signature=3DZH7kEjKVDh1eXbLv84T6pHAApt0%3D \n\n > 102= 2193996-12f9-46ff-91cd-3d409f7f8c60d11ad11a<= /displayname>testD11A-TestVMList-3385RP0a0f7c0= 9-2f1a-4939-94ce-88388e197949D11-UFBXGQ2014-04-10T09:01:37-0400Runningfalse75d61334-ff70-49c3-99ed-3af702cd51d7BLR1= e65cdfa0-c019-11e3-907f-4adf980f9414CentOS 5.3(64-bit) no GUI (Simulator)CentOS 5.3(64-bit) no GUI (Simulator)false49dee9f8-a49a-414d-b8b2= -b0d59b5981f0Small Instance1100128<= /memory>10%101908485095424e5eba5c4-c019-11e3-907f-4a= df980f94140ROOTa1c079e5-ae0f-4470-b0ed-26895fbcf14d= f1cf7cfb-c354-47c4-854e-af329c54d77etestD11A-TestV= MList-3385RP-network255.255.255.0= 10.1.1.110.1.1.217vlan://107= 1vlan://1071Guest<= /traffictype>Isolatedtrue02= :00:06:7b:00:01Simulatorfalse11660a829f-5265-44c3-aa92-957d8bbec8e2d1ad1btestD1B-TestVMList-CB23C= Tdc4bf103-27bf-4292-99aa-dc91fa23ee04D1-NN5QWT2014-04-10T09:01:32-0400Runnin= gfalse75d61334-ff70-49c3-99ed-3af702cd= 51d7BLR1e65cdfa0-c019-11e3-907f-4= adf980f9414CentOS 5.3(64-bit) no GUI (Simulator)= CentOS 5.3(64-bit) no GUI (Simulator)false49dee9f8-a49a-414d-b8b2-b0d59b5981f0Small Instance110012810%10= 1908485095424e5eba5c4-c019-11e3-907f-4adf980f94140ROOTb58c4f55-ed7d-4c1c-922b-6= e2aecad642cee8c3501-10e5-4247-b5b4-6e261dde56b1= testD1B-TestVMList-CB23CT-network255.25= 5.255.010.1.1.110.1.1.252vlan://1697vlan://1697GuestIsolatedtrue= 02:00:17:50:00:01Sim= ulatorfalse112a729bb9-8597-4a07-= 8259-fdcc1ef328ffd1ad1atestD1A-TestVMList-VAZC6Sdc4bf103-27bf-4292-99aa-dc91= fa23ee04D1-NN5QWT2014-04-10T09:01:27-0= 400Runningfalse75d613= 34-ff70-49c3-99ed-3af702cd51d7BLR1e65cdfa0-c019-11e3-907f-4adf980f9414CentOS 5.3(= 64-bit) no GUI (Simulator)CentOS 5.3(64= -bit) no GUI (Simulator)false49dee9f8-a49a-414d-b8b2-b0d59b5981f0Small Instance110012810%101908485095424e5eba5c4-c019-11e3-907f-4adf980f9414= 0ROOT61ce424c-a7c0-4543-a748-97184a86716a8a3ac0bc-2192-48d9-893= 4-18a6aeec6a0atestD1A-TestVMList-VAZC6S-network255.255.255.010.1.1.110.1.1.27vlan://3450vlan://3450GuestIsola= tedtrue02:00:49:c4:00:01Simulatorfalse11e520b97e-13be-4c6a-993c-3b581524e247d1= d1testD1-TestVMList-3VK254dc4bf1= 03-27bf-4292-99aa-dc91fa2 .... -- This message was sent by Atlassian JIRA (v6.2#6252)