)]}'
{"doc/source/user/usage.rst":[{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"ee5392ba8fd2eefb4d85b641015157f8187e198c","unresolved":false,"context_lines":[{"line_number":362,"context_line":"At this point, it is important to note that policy enforcement requires an"},{"line_number":363,"context_line":"authorization context based on the user making the request (e.g., is the user"},{"line_number":364,"context_line":"allowed to do the operation they\u0027re asking to do). Within OpenStack, this"},{"line_number":365,"context_line":"authorization context it relayed to services by the token used to call an API,"},{"line_number":366,"context_line":"which comes from an OpenStack identity service. In its purest form, you can"},{"line_number":367,"context_line":"think of authorization context as the roles a user has on a project, domain, or"},{"line_number":368,"context_line":"system. Services can feed the authorization context into policy enforcement,"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_02f7e88d","line":365,"range":{"start_line":365,"start_character":22,"end_line":365,"end_character":24},"updated":"2018-10-16 15:40:29.000000000","message":"*is","commit_id":"42ced238790dd7de5954ff447f1aa9ac94f00056"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"2827cb778dc810b9885be4e6a2aabce507196aaa","unresolved":false,"context_lines":[{"line_number":362,"context_line":"At this point, it is important to note that policy enforcement requires an"},{"line_number":363,"context_line":"authorization context based on the user making the request (e.g., is the user"},{"line_number":364,"context_line":"allowed to do the operation they\u0027re asking to do). Within OpenStack, this"},{"line_number":365,"context_line":"authorization context it relayed to services by the token used to call an API,"},{"line_number":366,"context_line":"which comes from an OpenStack identity service. In its purest form, you can"},{"line_number":367,"context_line":"think of authorization context as the roles a user has on a project, domain, or"},{"line_number":368,"context_line":"system. Services can feed the authorization context into policy enforcement,"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_96bc96db","line":365,"range":{"start_line":365,"start_character":22,"end_line":365,"end_character":24},"in_reply_to":"3f79a3b5_02f7e88d","updated":"2018-10-16 17:39:26.000000000","message":"Done","commit_id":"42ced238790dd7de5954ff447f1aa9ac94f00056"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"ee5392ba8fd2eefb4d85b641015157f8187e198c","unresolved":false,"context_lines":[{"line_number":396,"context_line":"policy enforcement. Unfortunately, bypassing API authorization testing comes at"},{"line_number":397,"context_line":"the expense of introducing gaps where the default policies may break"},{"line_number":398,"context_line":"unexpectedly with new changes. If the tests don\u0027t assert the default behavior,"},{"line_number":399,"context_line":"it\u0027s likely that seemly simple changes negatively impact users or operators,"},{"line_number":400,"context_line":"regardless of that being the intent of the developer."},{"line_number":401,"context_line":""},{"line_number":402,"context_line":"Testing policies"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_427c00e9","line":399,"range":{"start_line":399,"start_character":17,"end_line":399,"end_character":23},"updated":"2018-10-16 15:40:29.000000000","message":"*seemingly","commit_id":"42ced238790dd7de5954ff447f1aa9ac94f00056"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"2827cb778dc810b9885be4e6a2aabce507196aaa","unresolved":false,"context_lines":[{"line_number":396,"context_line":"policy enforcement. Unfortunately, bypassing API authorization testing comes at"},{"line_number":397,"context_line":"the expense of introducing gaps where the default policies may break"},{"line_number":398,"context_line":"unexpectedly with new changes. If the tests don\u0027t assert the default behavior,"},{"line_number":399,"context_line":"it\u0027s likely that seemly simple changes negatively impact users or operators,"},{"line_number":400,"context_line":"regardless of that being the intent of the developer."},{"line_number":401,"context_line":""},{"line_number":402,"context_line":"Testing policies"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_56b27e06","line":399,"range":{"start_line":399,"start_character":17,"end_line":399,"end_character":23},"in_reply_to":"3f79a3b5_427c00e9","updated":"2018-10-16 17:39:26.000000000","message":"Done","commit_id":"42ced238790dd7de5954ff447f1aa9ac94f00056"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"520a35d147e8d4db5a85918848e4b97563f63429","unresolved":false,"context_lines":[{"line_number":428,"context_line":"        policy.RuleDefault(\u0027identity:create_region\u0027, \u0027role:admin\u0027)"},{"line_number":429,"context_line":"    )"},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"Enforcement here is straightforward in that a user with a role called admin may"},{"line_number":432,"context_line":"access this API. You can model this in a request context by setting these"},{"line_number":433,"context_line":"attributes explicitly:"},{"line_number":434,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_dfc3c138","line":431,"range":{"start_line":431,"start_character":70,"end_line":431,"end_character":75},"updated":"2018-10-08 09:55:10.000000000","message":"``admin``","commit_id":"42ced238790dd7de5954ff447f1aa9ac94f00056"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"2827cb778dc810b9885be4e6a2aabce507196aaa","unresolved":false,"context_lines":[{"line_number":428,"context_line":"        policy.RuleDefault(\u0027identity:create_region\u0027, \u0027role:admin\u0027)"},{"line_number":429,"context_line":"    )"},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"Enforcement here is straightforward in that a user with a role called admin may"},{"line_number":432,"context_line":"access this API. You can model this in a request context by setting these"},{"line_number":433,"context_line":"attributes explicitly:"},{"line_number":434,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_16c88672","line":431,"range":{"start_line":431,"start_character":70,"end_line":431,"end_character":75},"in_reply_to":"3f79a3b5_dfc3c138","updated":"2018-10-16 17:39:26.000000000","message":"Done","commit_id":"42ced238790dd7de5954ff447f1aa9ac94f00056"}]}
