[openstack-dev] [openstack][magnum]a problem about trust
shardy at redhat.com
Wed Dec 23 08:29:35 UTC 2015
On Tue, Dec 22, 2015 at 04:55:17PM +0800, 王华 wrote:
> Hi all,
> When we create a trust to a trustee with a role, the trustor must have
> this role. Here is a problem I meet in my bp . I need to create a trust
> with a role, with the trust docker registry can access Swift to store
> images. But the trustor (the user who uses magnum) may not have the role.
> How can we address this problem?
FYI we had this exact same issue in Heat some time ago:
> There are two ways.
> 1. Add the role to the trustor with the magnum admin user privilege. But
> when we need to delete the role, we can not know whether the role is added
> by magnum or is owned by the trustor.
> 2. Let magnum trust the trustee with the role. We can assign the role to
> magnum before we start magnum.Â
As you'll see from the bug report above, neither of these solutions work,
because you can't know at the point of delegation what roles may be needed
in the future when impersonating the trustor.
So, having a special role which is always delegated (as you are proposing,
and Heat used to do) doesn't work very well in environments where RBAC is
The solution we reached in Heat is to delegate all roles, as determined by
keystone/authtoken, with the option for deployers to specify some specific
role or list of roles if they have an RBAC scheme where the expected roles
See https://review.openstack.org/128509 for the Heat solution.
More information about the OpenStack-dev