Debian Codegraph @

releasenotes/notes/add-can_set_project_id-to-the-context-object-8a244a003b833314.yaml

raw
1 ---
2 features:
3 - |
4 New attribute ``can_set_project_id`` is added to the context object. Value of
5 this attribute is set based on the API policy rule
6 ``context_can_set_project_id`` and should be used in case when there are
7 custom roles with granted permission to send project_id in the request body of the
8 POST requests to create resources for other projects.
9 For example, ``network_admin`` role which should have persmission to create
10 networks for all projects in the cloud.
11 By default ``context.can_set_project_id`` is granted to no one and only admin and
12 service users can send project_id in the request body.