)]}'
{"neutron/conf/policies/address_scope.py":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"ed385fd00545c7681a7b28685e31097792877b89","unresolved":true,"context_lines":[{"line_number":30,"context_line":"    ),"},{"line_number":31,"context_line":"    policy.DocumentedRuleDefault("},{"line_number":32,"context_line":"        name\u003d\u0027create_address_scope\u0027,"},{"line_number":33,"context_line":"        check_str\u003dbase.PROJECT_MEMBER,"},{"line_number":34,"context_line":"        description\u003d\u0027Create an address scope\u0027,"},{"line_number":35,"context_line":"        operations\u003d["},{"line_number":36,"context_line":"            {"}],"source_content_type":"text/x-python","patch_set":1,"id":"217403ae_7a9c7a79","line":33,"updated":"2020-12-03 19:13:46.000000000","message":"We can also add:\n\n  scope_types\u003d[\u0027project\u0027]\n\nThis will offload full scope checking onto oslo.policy when enforce_scope\u003dTrue and open up the opportunity for use to simplify check strings in the future for APIs only designed to work on one level.","commit_id":"44caaa085295c054f44a321da2e49582d3a2ac3f"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"eb9ba487a681ef995089e7a05250b48f6d39f979","unresolved":true,"context_lines":[{"line_number":30,"context_line":"    ),"},{"line_number":31,"context_line":"    policy.DocumentedRuleDefault("},{"line_number":32,"context_line":"        name\u003d\u0027create_address_scope\u0027,"},{"line_number":33,"context_line":"        check_str\u003dbase.PROJECT_MEMBER,"},{"line_number":34,"context_line":"        description\u003d\u0027Create an address scope\u0027,"},{"line_number":35,"context_line":"        operations\u003d["},{"line_number":36,"context_line":"            {"}],"source_content_type":"text/x-python","patch_set":1,"id":"167240c0_9f8be580","line":33,"in_reply_to":"217403ae_7a9c7a79","updated":"2020-12-04 09:56:08.000000000","message":"Hi Lance, are you saying that we can split the policy rule in \"role\" and \"scope\"? Correct? And the project could be defined in scope_types\u003d[\u0027project\u0027]\n\nIs this something we can do in any patch?\n\nPS: OK, I\u0027ve reviewed the Nova definitions and we have something like\n\n        name\u003dPOLICY_ROOT % \u0027list\u0027,\n        check_str\u003dbase.PROJECT_READER_OR_SYSTEM_READER,\n        description\u003d\"List port interfaces attached to a server\",\n        operations\u003d[\n            {\n                \u0027method\u0027: \u0027GET\u0027,\n                \u0027path\u0027: \u0027/servers/{server_id}/os-interface\u0027\n            },\n        ],\n        scope_types\u003d[\u0027system\u0027, \u0027project\u0027],\n        deprecated_rule\u003dDEPRECATED_INTERFACES_POLICY,\n        deprecated_reason\u003dDEPRECATED_REASON,\n        deprecated_since\u003d\u002721.0.0\u0027),\n\nand the check string is only the role.","commit_id":"44caaa085295c054f44a321da2e49582d3a2ac3f"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"827b34ef898c367f7cbd26e38ae42a9c49d11438","unresolved":true,"context_lines":[{"line_number":43,"context_line":"            name\u003d\u0027create_address_scope\u0027,"},{"line_number":44,"context_line":"            check_str\u003dbase.RULE_ANY),"},{"line_number":45,"context_line":"        deprecated_reason\u003dDEPRECATION_REASON,"},{"line_number":46,"context_line":"        deprecated_since\u003d\u0027Wallaby\u0027"},{"line_number":47,"context_line":"    ),"},{"line_number":48,"context_line":"    policy.DocumentedRuleDefault("},{"line_number":49,"context_line":"        name\u003d\u0027create_address_scope:shared\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"43a618f8_22db7163","line":46,"range":{"start_line":46,"start_character":25,"end_line":46,"end_character":34},"updated":"2021-03-05 16:25:06.000000000","message":"nit: this (and below) should be versionutils.deprecated.WALLABY","commit_id":"66dac905bde071741e8588b2c1223404658726b8"}]}
