Add support for the service role in neutron API policies

Bug #2026182 reported by Slawek Kaplonski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Slawek Kaplonski

Bug Description

As part of the second phase of the community goal "Consistent and Secure Default RBAC" [1] we should implement in Neutron support for the "service" role which will be used for the APIs developed for the machines to communicate, like e.g. port binding APIs which are used by nova-compute service.
Second step of this phase 2 implementation should be usage of that new service role in the APIs which are designed for such service to service communication.

[1] https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html#phase-2

Tags: api
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/886724
Committed: https://opendev.org/openstack/neutron/commit/428f7a8418447e75d6a9245dbaf7ccc165579ec4
Submitter: "Zuul (22348)"
Branch: master

commit 428f7a8418447e75d6a9245dbaf7ccc165579ec4
Author: Slawek Kaplonski <email address hidden>
Date: Thu Jun 22 09:34:26 2023 +0200

    [S-RBAC] Add service role in neutron policy

    RBAC community wide goal phase-2[1] is to add service
    role for the service APIs policy rule.
    This patch adds new "service_api" role in policies, deprecates old rule
    "context_is_advsvc" as this had basically same goal but for consistency
    reasons we want now to have it named "service_api" as in other policies
    for other projects.
    This patch also adds unit tests to ensure what is allowed and what is
    forbidden for the service role user.

    [1] https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html#phase-2

    Closes-Bug: #2026182

    Change-Id: Iaa1a3a491d310c2304f6500c6e5d2b9c31a72fa8

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 24.0.0.0b1

This issue was fixed in the openstack/neutron 24.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.