[RFE] Introduce a new rule with service user role in Neutron policy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Wishlist
|
Akihiro Motoki |
Bug Description
When other services like Nova talks to the Neutron REST API, it uses an admin token, in some scenarios like setting the port binding on a port. In these cases, the admin token is used to ensure only Nova has access to the binding API, not the end user.
With the introduction of service token, we can use service token instead of admin token to perform metadata API services related operations which
currently uses admin token.
In Ocata, Nova started sending a service token along with the user token, so Neutron already knows it is Nova sending a request on behalf of the user.
https:/
We can make use new role added by keystoneauth.
"service_roles": "service:<service name>"
The above role can be used in policy to define level of access for an
action when service token is used along with user context. This allows to perform any actions for which we have added service role in policy configurations.
For example, if we want to perform "binding port to host id" operation with service token authentication, we will pass service token along with auth token to communicate with Neutron. In this case, Neutron policy should also allow performing this operation with "service_roles".
Spec in Nova:
https:/
tags: | added: rfe |
description: | updated |
description: | updated |
description: | updated |
tags: | added: api |
Changed in neutron: | |
milestone: | pike-1 → pike-2 |
Changed in neutron: | |
status: | In Progress → Invalid |
It is mainly up to what parameters are passed to neutron context.
oslo.context supports parameters more than neutron(.auth) supports.
This RFE is completely worth supported.
I can support this RFE.