)]}'
{"openstack_auth/tests/conf/policy.v3cloudsample.json":[{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"3c9b6f29650140edef0db9565f27a0c841abac59","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    \"admin_or_cloud_admin\": \"rule:admin_required or rule:cloud_admin\","},{"line_number":9,"context_line":"    \"admin_and_matching_domain_id\": \"rule:admin_required and domain_id:%(domain_id)s\","},{"line_number":10,"context_line":"    \"service_admin_or_owner\": \"rule:service_or_admin or rule:owner\","},{"line_number":11,"context_line":"    \"admin_and_matching_project\": \"rule:admin_required and project_id:%(project_id)s\","},{"line_number":12,"context_line":"    \"project_and_domain_admin\": \"rule:admin_and_matching_project and rule:admin_and_matching_domain_id\","},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"    \"default\": \"rule:admin_required\","}],"source_content_type":"application/json","patch_set":1,"id":"fa7ab95a_74dfbbd5","line":11,"updated":"2016-08-30 21:23:53.000000000","message":"Has this change been proposed to keystone? We shouldn\u0027t diverge from what they\u0027ve got for the sample policy or I think it will be confusing.","commit_id":"92981f725bf90ac873e5e7781ce2f5a20970c1b0"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"b45f5bab6de13a53fb8f5069d1ac6c8ef378d284","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    \"admin_or_cloud_admin\": \"rule:admin_required or rule:cloud_admin\","},{"line_number":9,"context_line":"    \"admin_and_matching_domain_id\": \"rule:admin_required and domain_id:%(domain_id)s\","},{"line_number":10,"context_line":"    \"service_admin_or_owner\": \"rule:service_or_admin or rule:owner\","},{"line_number":11,"context_line":"    \"admin_and_matching_project\": \"rule:admin_required and project_id:%(project_id)s\","},{"line_number":12,"context_line":"    \"project_and_domain_admin\": \"rule:admin_and_matching_project and rule:admin_and_matching_domain_id\","},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"    \"default\": \"rule:admin_required\","}],"source_content_type":"application/json","patch_set":1,"id":"fa7ab95a_62bb3976","line":11,"in_reply_to":"fa7ab95a_74dfbbd5","updated":"2016-08-31 18:13:32.000000000","message":"Ok. I actually found it confusing that this was a copy from some time ago of the keystone one but I\u0027m fine keeping it the same. I can use \u0027project_admin_for_grants\u0027.","commit_id":"92981f725bf90ac873e5e7781ce2f5a20970c1b0"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"3c9b6f29650140edef0db9565f27a0c841abac59","unresolved":false,"context_lines":[{"line_number":9,"context_line":"    \"admin_and_matching_domain_id\": \"rule:admin_required and domain_id:%(domain_id)s\","},{"line_number":10,"context_line":"    \"service_admin_or_owner\": \"rule:service_or_admin or rule:owner\","},{"line_number":11,"context_line":"    \"admin_and_matching_project\": \"rule:admin_required and project_id:%(project_id)s\","},{"line_number":12,"context_line":"    \"project_and_domain_admin\": \"rule:admin_and_matching_project and rule:admin_and_matching_domain_id\","},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"    \"default\": \"rule:admin_required\","},{"line_number":15,"context_line":""}],"source_content_type":"application/json","patch_set":1,"id":"fa7ab95a_b46863f6","line":12,"updated":"2016-08-30 21:23:53.000000000","message":"Similar to some of your comments in the code, I don\u0027t think this rule can ever pass. I think the token is going to have (project_id and project_domain_id) or (domain_id), and not both.\n\nMaybe rather than trying to check this rule in one policy check, we should just do 2 with the separate tokens when needed?","commit_id":"92981f725bf90ac873e5e7781ce2f5a20970c1b0"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"b45f5bab6de13a53fb8f5069d1ac6c8ef378d284","unresolved":false,"context_lines":[{"line_number":9,"context_line":"    \"admin_and_matching_domain_id\": \"rule:admin_required and domain_id:%(domain_id)s\","},{"line_number":10,"context_line":"    \"service_admin_or_owner\": \"rule:service_or_admin or rule:owner\","},{"line_number":11,"context_line":"    \"admin_and_matching_project\": \"rule:admin_required and project_id:%(project_id)s\","},{"line_number":12,"context_line":"    \"project_and_domain_admin\": \"rule:admin_and_matching_project and rule:admin_and_matching_domain_id\","},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"    \"default\": \"rule:admin_required\","},{"line_number":15,"context_line":""}],"source_content_type":"application/json","patch_set":1,"id":"fa7ab95a_824e7d94","line":12,"in_reply_to":"fa7ab95a_b46863f6","updated":"2016-08-31 18:13:32.000000000","message":"Yeah, I agree - I think it\u0027s more a failure of the token arrangement than something horizon can deal with in a nice way, although the way horizon\u0027s policy code works (duplicating the project token and adding domain information) is a bit odd.","commit_id":"92981f725bf90ac873e5e7781ce2f5a20970c1b0"}],"openstack_auth/tests/tests.py":[{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"3c9b6f29650140edef0db9565f27a0c841abac59","unresolved":false,"context_lines":[{"line_number":1215,"context_line":""},{"line_number":1216,"context_line":"    # TODO(sjmc7) This should theoretically pass, but I think that even for"},{"line_number":1217,"context_line":"    # keystone the policy checks would be unable to assert that a user is"},{"line_number":1218,"context_line":"    # both a domain admin and a project admin"},{"line_number":1219,"context_line":"    # def test_project_domain_admin_true(self):"},{"line_number":1220,"context_line":"    #    policy.reset()"},{"line_number":1221,"context_line":"    #    value \u003d policy.check(((\"identity\", \"project_and_domain_admin\"),),"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa7ab95a_4f1ce069","line":1218,"updated":"2016-08-30 21:23:53.000000000","message":"I agree this won\u0027t work in Keystone. The token is either domain scoped or project scoped, so Keystone can\u0027t check both at the same time.\n\nUnless you\u0027re thinking there\u0027s some way to fix this, I\u0027d suggest just putting a comment in the code and removing this class.","commit_id":"92981f725bf90ac873e5e7781ce2f5a20970c1b0"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"b45f5bab6de13a53fb8f5069d1ac6c8ef378d284","unresolved":false,"context_lines":[{"line_number":1215,"context_line":""},{"line_number":1216,"context_line":"    # TODO(sjmc7) This should theoretically pass, but I think that even for"},{"line_number":1217,"context_line":"    # keystone the policy checks would be unable to assert that a user is"},{"line_number":1218,"context_line":"    # both a domain admin and a project admin"},{"line_number":1219,"context_line":"    # def test_project_domain_admin_true(self):"},{"line_number":1220,"context_line":"    #    policy.reset()"},{"line_number":1221,"context_line":"    #    value \u003d policy.check(((\"identity\", \"project_and_domain_admin\"),),"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa7ab95a_7d9f5eb4","line":1218,"in_reply_to":"fa7ab95a_4f1ce069","updated":"2016-08-31 18:13:32.000000000","message":"Done","commit_id":"92981f725bf90ac873e5e7781ce2f5a20970c1b0"}]}
