Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 13. Configure RBAC
Role-based Access Control (RBAC) policies in OpenStack Networking allows granular control over shared neutron networks. Previously, networks were shared either with all tenants, or not at all. OpenStack Networking now uses a RBAC table to control sharing of neutron networks among tenants, allowing an administrator to control which tenants are granted permission to attach instances to a network.
As a result, cloud administrators can remove the ability for some tenants to create networks and can instead allow them to attach to pre-existing networks that correspond to their project.
13.1. Create a new RBAC policy Link kopierenLink in die Zwischenablage kopiert!
This example procedure demonstrates how to use a RBAC policy to grant a tenant access to a shared network.
View the list of available networks:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow View the list of tenants:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a RBAC entry for the
web-servers
network that grants access to the auditors tenant (4b0b98f8c6c040f38ba4f7146e8680f5
):Copy to Clipboard Copied! Toggle word wrap Toggle overflow
As a result, users in the auditors project are able to connect instances to the web-servers
network.
13.2. Review your configured RBAC policies Link kopierenLink in die Zwischenablage kopiert!
Use
neutron rbac-list
to retrieve the ID of your existing RBAC policies:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Use
neutron rbac-show
to view the details of a specific RBAC entry:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
13.3. Delete a RBAC policy Link kopierenLink in die Zwischenablage kopiert!
Use
neutron rbac-list
to retrieve the ID of your existing RBACs:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Use
neutron rbac-delete
to delete the RBAC, using its ID value:neutron rbac-delete 314004d0-2261-4d5e-bda7-0181fcf40709
# neutron rbac-delete 314004d0-2261-4d5e-bda7-0181fcf40709 Deleted rbac_policy: 314004d0-2261-4d5e-bda7-0181fcf40709
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
13.4. RBAC for external networks Link kopierenLink in die Zwischenablage kopiert!
You can grant RBAC access to external networks (networks with gateway interfaces attached) using the --action access_as_external
parameter
For example, this procedure creates a RBAC for the web-servers
network and grants access to the engineering tenant (c717f263785d4679b16a122516247deb
):
1. Create a new RBAC policy using --action access_as_external
:
2. As a result, users in the Engineering tenant are able to view the network or connect instances to it: