Este contenido no está disponible en el idioma seleccionado.
Chapter 14. 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 between 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.
14.1. Create a new RBAC policy Copiar enlaceEnlace copiado en el portapapeles!
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 for the
web-servers
network that grants access to the engineering tenant (c717f263785d4679b16a122516247deb
):Copy to Clipboard Copied! Toggle word wrap Toggle overflow
As a result, users in the Engineering tenant are able to connect instances to the web-servers
network.
14.2. Review your configured RBAC policies Copiar enlaceEnlace copiado en el portapapeles!
Use the
rbac-list
option to retrieve the ID of your existing RBAC policies:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Use
rbac-show
to view the details of the specific RBAC entry:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
14.3. Delete a RBAC policy Copiar enlaceEnlace copiado en el portapapeles!
Use the
rbac-list
option to retrieve the ID of your existing RBACs:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Use
rbac-delete
to delete the RBAC, based on it’s ID value:neutron rbac-delete 425cdd5c-c080-4045-a896-31d446551de7
# neutron rbac-delete 425cdd5c-c080-4045-a896-31d446551de7 Deleted rbac_policy: 425cdd5c-c080-4045-a896-31d446551de7
Copy to Clipboard Copied! Toggle word wrap Toggle overflow