Note de la release actuelle¶
3.22.0-8¶
New Features¶
New attribute
can_set_project_idis added to the context object. Value of this attribute is set based on the API policy rulecontext_can_set_project_idand should be used in case when there are custom roles with granted permission to send project_id in the request body of the POST requests to create resources for other projects. For example,network_adminrole which should have persmission to create networks for all projects in the cloud. By defaultcontext.can_set_project_idis granted to no one and only admin and service users can send project_id in the request body.
Other Notes¶
Constant
ACCESS_READONLYwhich represented RBAC action access as readonly was removed. This constant was added as part of the RFE Allow sharing security groups as read-only but was never fully implemented and is not needed anymore.
Avoid the duplicated method registration in class methods decorated with
resource_extend.has_resource_extenders. Before registering a new extended method, it is first checked if this method is already registered. See bug: 2127835.