[rbac][keystone][kolla][osa][tripleo][charms] RBAC in Yoga for deployment projects
mark at stackhpc.com
Thu Jan 20 09:44:21 UTC 2022
On Wed, 19 Jan 2022 at 19:38, Dmitriy Rabotyagov <noonedeadpunk at ya.ru> wrote:
> - все
> In OSA I've already started topic  quite a while ago, that adds service role in addition to admin one for the migration purposes.
> It was intended, that admin can be revoked later on if needed.
> So I based on my understanding of the thread, that is exactly the plan for keystone as well.
>  https://review.opendev.org/q/topic:%22osa%252Fservice_tokens%22+(status:open%20OR%20status:merged)
Thanks for the update. I see that those patches are adding the service
role. They're also configuring service tokens, which IIUC are
unrelated, and allow for long-running operations to outlive the
original user's token lifetime. Is it intentional?
> 19.01.2022, 12:43, "Mark Goddard" <mark at stackhpc.com>:
> If you haven't been paying close attention, it would be easy to miss
> some of the upcoming RBAC changes which will have an impact on
> deployment projects. I thought I'd start a thread so that we can share
> how we are approaching this, get answers to open questions, and
> ideally all end up with a fairly consistent approach.
> The secure RBAC work has a long history, and continues to evolve.
> According to , we should start to see some fairly substantial
> changes over the next few releases. That spec is fairly long, but
> worth a read.
> In the yoga timeline , there is one change in particular that has
> an impact on deployment projects, "3. Keystone enforces scope by
> default". After this change, all of the deprecated policies that many
> still rely on in Keystone will be removed.
> In kolla-ansible, we have an etherpad  with some notes, questions
> and half-baked plans. We made some changes in Xena  to use system
> scope in some places when interacting with system APIs in Ansible
> The next change we have staged is to add the service role to all
> service users , in preparation for .
> Question: should the role be added with system scope or in the
> existing service project? The obvious main use for this is token
> validation, which seems to allow system or project scope.
> We anticipate that some service users may still require some
> project-scoped roles, e.g. when creating resources for octavia. We'll
> deal with those on a case by case basis.
> In anticipation of keystone setting enforce_scope=True and removing
> old default policies (which I assume effectively removes
> enforce_new_defaults?), we will set this in kolla-ansible, and try to
> deal with any fallout. Hopefully the previous work will make this
> How does that line up with other projects' approaches? What have we missed?
>  https://opendev.org/openstack/governance/src/branch/master/goals/selected/consistent-and-secure-rbac.rst
>  https://opendev.org/openstack/governance/src/branch/master/goals/selected/consistent-and-secure-rbac.rst#yoga-timeline-7th-mar-2022
>  https://opendev.org/openstack/kolla-ansible/commit/2e933dceb591c3505f35c2c1de924f3978fb81a7
>  https://review.opendev.org/c/openstack/kolla-ansible/+/815577
>  https://etherpad.opendev.org/p/enabling-system-scope-in-kolla-ansible
> Kind Regards,
> Dmitriy Rabotyagov
More information about the openstack-discuss