)]}'
{"id":"openstack%2Fdjango_openstack_auth~361466","triplet_id":"openstack%2Fdjango_openstack_auth~master~I62a15942dfa5a9be3e4e6ea846309617c374c4b1","project":"openstack/django_openstack_auth","branch":"master","topic":"bug/1616669","hashtags":[],"change_id":"I62a15942dfa5a9be3e4e6ea846309617c374c4b1","subject":"Correct handling of domain policy checks","status":"ABANDONED","created":"2016-08-26 20:54:04.000000000","updated":"2017-07-18 14:14:26.000000000","total_comment_count":6,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"664b531481317e90eac6c0864b0359b7bec2e929","_number":361466,"virtual_id_number":361466,"owner":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"actions":{},"labels":{"Verified":{"disliked":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"all":[{"value":-1,"date":"2017-02-02 10:23:03.000000000","_account_id":3,"name":"Jenkins","username":"jenkins"},{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},{"date":"2016-09-07 19:34:06.000000000","_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","value":-1,"default_value":0,"optional":true},"Code-Review":{"disliked":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"all":[{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},{"value":-1,"date":"2016-09-02 19:03:13.000000000","permitted_voting_range":{"min":-1,"max":1},"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","value":-1,"default_value":0,"optional":true},"Workflow":{"all":[{"_account_id":3,"name":"Jenkins","username":"jenkins"},{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},{"date":"2016-09-22 21:56:33.000000000","_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},{"value":0,"permitted_voting_range":{"min":-1,"max":0},"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":3,"name":"Jenkins","username":"jenkins"},{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2016-08-29 14:39:31.000000000","updated_by":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"reviewer":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"state":"REVIEWER"},{"updated":"2016-09-02 19:03:13.000000000","updated_by":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"reviewer":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"state":"REVIEWER"},{"updated":"2016-09-22 21:56:33.000000000","updated_by":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"reviewer":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"state":"REVIEWER"},{"updated":"2017-02-02 10:23:03.000000000","updated_by":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"reviewer":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"state":"REVIEWER"}],"messages":[{"id":"627610e522131e9dfbcea92a36e66e98bdfbcced","author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"date":"2016-08-26 20:54:04.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"850be8c2d7234f4bebf187d32098e81974ffc325","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-08-26 22:06:01.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-django_openstack_auth-docs-ubuntu-xenial http://docs-draft.openstack.org/66/361466/1/check/gate-django_openstack_auth-docs-ubuntu-xenial/0e06120//doc/build/html/ : SUCCESS in 2m 09s\n- gate-django_openstack_auth-pep8-ubuntu-xenial http://logs.openstack.org/66/361466/1/check/gate-django_openstack_auth-pep8-ubuntu-xenial/7c1b422/ : SUCCESS in 2m 17s\n- gate-django_openstack_auth-python27-ubuntu-xenial http://logs.openstack.org/66/361466/1/check/gate-django_openstack_auth-python27-ubuntu-xenial/b7bd964/ : SUCCESS in 2m 28s\n- gate-django_openstack_auth-python34 http://logs.openstack.org/66/361466/1/check/gate-django_openstack_auth-python34/9a0fda9/ : SUCCESS in 2m 28s\n- gate-django_openstack_auth-python35-nv http://logs.openstack.org/66/361466/1/check/gate-django_openstack_auth-python35-nv/17133bc/ : SUCCESS in 4m 24s (non-voting)\n- gate-tempest-dsvm-neutron-src-django_openstack_auth http://logs.openstack.org/66/361466/1/check/gate-tempest-dsvm-neutron-src-django_openstack_auth/37abe74/ : SUCCESS in 1h 10m 02s\n- gate-django_openstack_auth-tox-py27dj18-ubuntu-xenial http://logs.openstack.org/66/361466/1/check/gate-django_openstack_auth-tox-py27dj18-ubuntu-xenial/1745db4/ : SUCCESS in 2m 20s\n- gate-django_openstack_auth-tox-py27dj19-ubuntu-xenial http://logs.openstack.org/66/361466/1/check/gate-django_openstack_auth-tox-py27dj19-ubuntu-xenial/3d30ae3/ : SUCCESS in 4m 03s\n- gate-django_openstack_auth-tox-py27dj110-ubuntu-xenial http://logs.openstack.org/66/361466/1/check/gate-django_openstack_auth-tox-py27dj110-ubuntu-xenial/d7fa048/ : SUCCESS in 2m 22s (non-voting)","accounts_in_message":[],"_revision_number":1},{"id":"3c9b6f29650140edef0db9565f27a0c841abac59","author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"date":"2016-08-30 21:23:53.000000000","message":"Patch Set 1: Code-Review-1\n\n(3 comments)\n\nA few comments inline.\n\nAlso, could you put some details into the bug to reproduce one of the cases where the current behavior is a problem? I think there were a few places where there could be problems, and just wondering which one(s) you ran into for easier testing.","accounts_in_message":[],"_revision_number":1},{"id":"b45f5bab6de13a53fb8f5069d1ac6c8ef378d284","author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"date":"2016-08-31 18:13:32.000000000","message":"Patch Set 1:\n\n(3 comments)\n\nThank Brad. Added a comment to the bug; the case bit us was admin_and_matching_domain_id which makes horizon treat a project admin as a domain admin and makes calls to keysotne it shouldn\u0027t.","accounts_in_message":[],"_revision_number":1},{"id":"460bec2014ea713d58a9ab06697ba1a6562aa38a","author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"date":"2016-08-31 18:14:07.000000000","message":"Uploaded patch set 2.","accounts_in_message":[],"_revision_number":2},{"id":"f0f92231526ae883f624a207f352ec36d48bef35","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-08-31 19:24:51.000000000","message":"Patch Set 2: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-django_openstack_auth-docs-ubuntu-xenial http://docs-draft.openstack.org/66/361466/2/check/gate-django_openstack_auth-docs-ubuntu-xenial/4c2210d//doc/build/html/ : SUCCESS in 4m 38s\n- gate-django_openstack_auth-pep8-ubuntu-xenial http://logs.openstack.org/66/361466/2/check/gate-django_openstack_auth-pep8-ubuntu-xenial/fc1f0d9/ : SUCCESS in 2m 14s\n- gate-django_openstack_auth-python27-ubuntu-xenial http://logs.openstack.org/66/361466/2/check/gate-django_openstack_auth-python27-ubuntu-xenial/09164f0/ : SUCCESS in 2m 49s\n- gate-django_openstack_auth-python34 http://logs.openstack.org/66/361466/2/check/gate-django_openstack_auth-python34/9f21e02/ : SUCCESS in 2m 28s\n- gate-django_openstack_auth-python35-nv http://logs.openstack.org/66/361466/2/check/gate-django_openstack_auth-python35-nv/b15a9b1/ : SUCCESS in 2m 49s (non-voting)\n- gate-tempest-dsvm-neutron-src-django_openstack_auth http://logs.openstack.org/66/361466/2/check/gate-tempest-dsvm-neutron-src-django_openstack_auth/8fd3f33/ : SUCCESS in 1h 05m 08s\n- gate-django_openstack_auth-tox-py27dj18-ubuntu-xenial http://logs.openstack.org/66/361466/2/check/gate-django_openstack_auth-tox-py27dj18-ubuntu-xenial/55b4ab3/ : SUCCESS in 2m 54s\n- gate-django_openstack_auth-tox-py27dj19-ubuntu-xenial http://logs.openstack.org/66/361466/2/check/gate-django_openstack_auth-tox-py27dj19-ubuntu-xenial/2b90d4e/ : SUCCESS in 3m 04s\n- gate-django_openstack_auth-tox-py27dj110-ubuntu-xenial http://logs.openstack.org/66/361466/2/check/gate-django_openstack_auth-tox-py27dj110-ubuntu-xenial/b521a6e/ : SUCCESS in 2m 48s (non-voting)","accounts_in_message":[],"_revision_number":2},{"id":"4a6fadf1290465452cfd3a4d9f245e936a6cc3be","author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"date":"2016-09-02 19:03:13.000000000","message":"Patch Set 2: Code-Review-1\n\nThis is looking better. The first thing I noticed is this fixed the issue where a project admin gets errors on login because Horizon tries to get the whole list of projects, rather than just the user projects.\n\nBut I found a regression with this patch where a pure domain admin no longer gets the “Create Project” button as they should, which works fine with the current master branch code.\n\nHere’s the situation that’s the problem:\n- A user in domainA has the admin role on domainA.\n- Use the latest policy.v3cloudsample.json file from django_openstack_auth in Horizon.\n- Go to the Identity -\u003e Projects page.\n- With this patch, the “Create Project” button no longer shows for me.\n\nCould you check if you get the same behavior with a domain admin?","accounts_in_message":[],"_revision_number":2},{"id":"060f5c92ed951c63e423f2bbc5620f68b143e8c2","author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"date":"2016-09-07 19:34:06.000000000","message":"Patch Set 2:\n\n@Brad - the rule in there is:\n\n  \"admin_and_matching_project_domain_id\": \"rule:admin_required and domain_id:%(project.domain_id)s\",\n  \"identity:create_project\": \"rule:cloud_admin or rule:admin_and_matching_project_domain_id\"\n\nThat translates as \"you have a domain scoped token with the admin role, where the domain id matches the project scoped token you have\"\n\nThe rule therefore seems broken; a pure domain admin will never have a project token and even if you do it requires that you are already authed to a project in the domain you\u0027re authenticated to","accounts_in_message":[],"_revision_number":2},{"id":"3f7bfe2c232aa695c774d4007efdd5ed643d1e7c","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2017-02-02 10:23:03.000000000","message":"Patch Set 2: Verified-1\n\nMerge Failed.\n\nThis change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.","accounts_in_message":[],"_revision_number":2},{"id":"6f22e4859078925c3ef9c986311882fd8237d5ec","author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"date":"2017-07-18 14:14:26.000000000","message":"Abandoned\n\ndue to inactivity","accounts_in_message":[],"_revision_number":2}],"current_revision_number":2,"current_revision":"dbc8dafdb859ddfc1b815f760c82af20dfc57b4c","revisions":{"92981f725bf90ac873e5e7781ce2f5a20970c1b0":{"kind":"REWORK","_number":1,"created":"2016-08-26 20:54:04.000000000","uploader":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"ref":"refs/changes/66/361466/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/django_openstack_auth","ref":"refs/changes/66/361466/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/django_openstack_auth refs/changes/66/361466/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/django_openstack_auth refs/changes/66/361466/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/django_openstack_auth refs/changes/66/361466/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/django_openstack_auth refs/changes/66/361466/1"}}},"commit":{"parents":[{"commit":"c917e4b7593fe88bfef405bebe9484afea6551d0","subject":"Merge \"Updated from global requirements\"","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/django_openstack_auth/commit/c917e4b7593fe88bfef405bebe9484afea6551d0"}]}],"author":{"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","date":"2016-08-26 20:52:31.000000000","tz":-300},"committer":{"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","date":"2016-08-26 20:54:03.000000000","tz":-300},"subject":"Correct handling of domain policy checks","message":"Correct handling of domain policy checks\n\nThe policy check code generates two sets of credentials, one relating to\na project scoped token if available, and one to a domain scoped token,\nif available. There was some attempts to make the two look identical\nwhich defaulted domain_id to user_domain_id, with the effect that policy\nchecks requiring domain-scope could accidentally pass.\n\nThis patch removes the user_domain_id-\u003edomain_id assignment such that if\ndomain_id is set, it indicates that the user is scoped to a domain.\nSimilarly, a policy check requiring a domain_id will not pass unless\ndomain credentials are present. It is still not possible to assert that\na user is both a project AND domain admin, but I don\u0027t think this is\npossible in keystone either.\n\nChange-Id: I62a15942dfa5a9be3e4e6ea846309617c374c4b1\nCloses-Bug: #1616669\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/django_openstack_auth/commit/92981f725bf90ac873e5e7781ce2f5a20970c1b0"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/django_openstack_auth/commit/92981f725bf90ac873e5e7781ce2f5a20970c1b0"}]},"branch":"refs/heads/master"},"dbc8dafdb859ddfc1b815f760c82af20dfc57b4c":{"kind":"REWORK","_number":2,"created":"2016-08-31 18:14:07.000000000","uploader":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"ref":"refs/changes/66/361466/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/django_openstack_auth","ref":"refs/changes/66/361466/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/django_openstack_auth refs/changes/66/361466/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/django_openstack_auth refs/changes/66/361466/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/django_openstack_auth refs/changes/66/361466/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/django_openstack_auth refs/changes/66/361466/2"}}},"commit":{"parents":[{"commit":"c917e4b7593fe88bfef405bebe9484afea6551d0","subject":"Merge \"Updated from global requirements\"","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/django_openstack_auth/commit/c917e4b7593fe88bfef405bebe9484afea6551d0"}]}],"author":{"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","date":"2016-08-26 20:52:31.000000000","tz":-300},"committer":{"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","date":"2016-08-31 18:14:02.000000000","tz":-300},"subject":"Correct handling of domain policy checks","message":"Correct handling of domain policy checks\n\nThe policy check code generates two sets of credentials, one relating to\na project scoped token if available, and one to a domain scoped token,\nif available. There was some attempts to make the two look identical\nwhich defaulted domain_id to user_domain_id, with the effect that policy\nchecks requiring domain-scope could accidentally pass.\n\nThis patch removes the user_domain_id-\u003edomain_id assignment such that if\ndomain_id is set, it indicates that the user is scoped to a domain.\nSimilarly, a policy check requiring a domain_id will not pass unless\ndomain credentials are present. It is still not possible to assert that\na user is both a project AND domain admin, but I don\u0027t think this is\npossible in keystone either.\n\nChange-Id: I62a15942dfa5a9be3e4e6ea846309617c374c4b1\nCloses-Bug: #1616669\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/django_openstack_auth/commit/dbc8dafdb859ddfc1b815f760c82af20dfc57b4c"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/django_openstack_auth/commit/dbc8dafdb859ddfc1b815f760c82af20dfc57b4c"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
