osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openstack-security] [Bug 1684320] Re: Domain admin has access to service Admin API with policy.v3cloudsample.json


Do we want to track the keystone bits as duplicate of bug 968696 or
should this be triaged/tracked separately?

-- 
You received this bug notification because you are a member of OpenStack
Security, which is subscribed to OpenStack.
https://bugs.launchpad.net/bugs/1684320

Title:
  Domain admin has access to service Admin API with
  policy.v3cloudsample.json

Status in OpenStack Identity (keystone):
  New
Status in OpenStack Security Advisory:
  Won't Fix

Bug description:
  Keystone has a sample policy file to create a concept of domains per
  customer, with a domain admin that manages users and tenants inside
  that domain.

  https://github.com/openstack/keystone/commits/master/etc/policy.v3cloudsample.json

  In this policy, the domain admin role (a user who manages that domain)
  would get the "admin" role assigned to them.  However, with the
  "admin" role assigned to them, they can make requests to the admin_api
  (in this case, the Nova example).

  https://github.com/openstack/nova/blob/master/nova/policies/base.py#L18-L28

  I have done a fair bit of checking but I believe that a domain admin
  can get full access to the admin_api (or be able to create a user with
  an "admin" role and get access to the entire cloud).  I believe this
  affects all other projects and users of this policy would not be aware
  at the level of access given to a domain admin.

  Perhaps the file can be revised to use a role like "domain_admin" and
  Keystone would have a setting of "reserved role names" which cannot be
  used (e.g. block the role "admin" from being created in a domain).

  Please forgive me in advance if this is not a security issue and a
  lack of understanding (I hope it is), but I have done a fair amount of
  research on this so far and it seems like getting access to that
  `admin` role is an issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1684320/+subscriptions