)]}'
{"barbican/api/controllers/acls.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b4054a83e6cdd7d0189d87edd867753c811dc3dc","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    pecan.abort(400, u._(\"Existing ACL\u0027s operation cannot be updated.\"))"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"class SecretAclController(object):"},{"line_number":55,"context_line":"    \"\"\"Handles a SecretACL entity retrieval and update requests.\"\"\""},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def __init__(self, acl_id, secret_project_id, secret):"}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_a6bd026a","line":54,"updated":"2015-04-01 00:48:36.000000000","message":"Please captilize the acronyms on class name here and below.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"74fbc0e361cd0a9710c015a95feb77b19ec88415","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    pecan.abort(400, u._(\"Existing ACL\u0027s operation cannot be updated.\"))"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"class SecretAclController(object):"},{"line_number":55,"context_line":"    \"\"\"Handles a SecretACL entity retrieval and update requests.\"\"\""},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def __init__(self, acl_id, secret_project_id, secret):"}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_ca5cf4ef","line":54,"in_reply_to":"da9b358b_a6bd026a","updated":"2015-04-01 17:38:23.000000000","message":"Will address in next patch. Was not aware of this convention earlier.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8cf60bbe8b75f68ece4569413ef7088651da0a87","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    @controllers.enforce_rbac(\u0027secret_acl:put\u0027)"},{"line_number":86,"context_line":"    @controllers.enforce_content_types([\u0027application/json\u0027])"},{"line_number":87,"context_line":"    def on_put(self, external_project_id, **kwargs):"},{"line_number":88,"context_line":"        \"\"\"Handles existing secret ACL update for given acl id.\"\"\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        data \u003d api.load_body(pecan.request, validator\u003dself.validator)"},{"line_number":91,"context_line":"        LOG.debug(\u0027Start on_put...%s\u0027, data)"}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_5d360153","line":88,"updated":"2015-04-01 04:42:06.000000000","message":"Same comment as below about PUT/PATCH semantics.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"a26144d3ffa1aaa4b6f10458d2a27021af1e15ad","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    @controllers.enforce_rbac(\u0027secret_acl:put\u0027)"},{"line_number":86,"context_line":"    @controllers.enforce_content_types([\u0027application/json\u0027])"},{"line_number":87,"context_line":"    def on_put(self, external_project_id, **kwargs):"},{"line_number":88,"context_line":"        \"\"\"Handles existing secret ACL update for given acl id.\"\"\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        data \u003d api.load_body(pecan.request, validator\u003dself.validator)"},{"line_number":91,"context_line":"        LOG.debug(\u0027Start on_put...%s\u0027, data)"}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_a8c40640","line":88,"in_reply_to":"da9b358b_5d360153","updated":"2015-04-02 05:11:55.000000000","message":"Will conver to patch and going to add DELETE operation for ACL by acl_id","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b4054a83e6cdd7d0189d87edd867753c811dc3dc","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        via PUT method. In create, multiple operation ACL payload can be"},{"line_number":155,"context_line":"        specified as mentioned in sample below."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"        {"},{"line_number":158,"context_line":"          \"read\":{"},{"line_number":159,"context_line":"            \"users\":["},{"line_number":160,"context_line":"              \"5ecb18f341894e94baca9e8c7b6a824a\""}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_c947f749","line":157,"updated":"2015-04-01 00:48:36.000000000","message":"Nice helpful example, thanks!","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8cf60bbe8b75f68ece4569413ef7088651da0a87","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        via PUT method. In create, multiple operation ACL payload can be"},{"line_number":155,"context_line":"        specified as mentioned in sample below."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"        {"},{"line_number":158,"context_line":"          \"read\":{"},{"line_number":159,"context_line":"            \"users\":["},{"line_number":160,"context_line":"              \"5ecb18f341894e94baca9e8c7b6a824a\""}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_dd5691d1","line":157,"in_reply_to":"da9b358b_c947f749","updated":"2015-04-01 04:42:06.000000000","message":"Indeed.  Are these really what the userids you get from keystone look like?","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"74fbc0e361cd0a9710c015a95feb77b19ec88415","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        via PUT method. In create, multiple operation ACL payload can be"},{"line_number":155,"context_line":"        specified as mentioned in sample below."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"        {"},{"line_number":158,"context_line":"          \"read\":{"},{"line_number":159,"context_line":"            \"users\":["},{"line_number":160,"context_line":"              \"5ecb18f341894e94baca9e8c7b6a824a\""}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_0abf7cd1","line":157,"in_reply_to":"da9b358b_dd5691d1","updated":"2015-04-01 17:38:23.000000000","message":"Yes, these are ids I captured from my local testing with local keystone enabled for authz.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8cf60bbe8b75f68ece4569413ef7088651da0a87","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            ],"},{"line_number":168,"context_line":"            \"creator-only\":false"},{"line_number":169,"context_line":"          }"},{"line_number":170,"context_line":"        }"},{"line_number":171,"context_line":"        \"\"\""},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"        count \u003d self.acl_repo.get_count(self.secret.id)"}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_5dde0140","line":170,"updated":"2015-04-01 04:42:06.000000000","message":"What happens if the input contains two \"read\" elements?","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"a26144d3ffa1aaa4b6f10458d2a27021af1e15ad","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            ],"},{"line_number":168,"context_line":"            \"creator-only\":false"},{"line_number":169,"context_line":"          }"},{"line_number":170,"context_line":"        }"},{"line_number":171,"context_line":"        \"\"\""},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"        count \u003d self.acl_repo.get_count(self.secret.id)"}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_688f1e24","line":170,"in_reply_to":"da9b358b_5dde0140","updated":"2015-04-02 05:11:55.000000000","message":"I tested this in local setup and it takes the second \u0027read\u0027 value. As per pecan load_body logic, data is captured as dictionary so that\u0027s why second \u0027read\u0027 values are availble in dict. I tried to add this case as a test for acl controller but it does not work for same reason as request params expect values as dict.\n\nTested this in local setup where sample request was\n\ncurl -X PATCH -H \u0027content-type:application/json\u0027 -H \u0027X-Auth-Token:cf036d1f6b44451bad8bf30e8a520b9a\u0027 -d \u0027{\"read\":{ \"users\":[\"2d0ee7c681cc4549b6d76769c320d91f\", \"c1d20e4b7e7d4917aee6f0832152269b\"], \"creator-only\":true}, \"read\":{ \"users\":[\"2d0ee7c681cc4549b6d76769c320d91f\"], \"creator-only\":false}}\u0027 http://localhost:9311/v1/secrets/b97df538-5bd6-4dd6-97c2-0e6c187a5768/acls\n\n\nAnd when I read that ACL via get, following data is returned.\n\n\ncurl -X GET -H \u0027X-Auth-Token:cf036d1f6b44451bad8bf30e8a520b9a\u0027 http://localhost:9311/v1/secrets/b97df538-5bd6-4dd6-97c2-0e6c187a5768/acls/373adcca-656b-4d9a-8690-6f28a5fe45a6\n\n{\"status\": \"ACTIVE\", \"updated\": \"2015-04-02T04:59:18.280068\", \"users\": [\"2d0ee7c681cc4549b6d76769c320d91f\"], \"created\": \"2015-04-02T04:54:02.929996\", \"secret_ref\": \"http://localhost:9311/v1/secrets/b97df538-5bd6-4dd6-97c2-0e6c187a5768\", \"operation\": \"read\", \"creator-only\": false, \"acl_ref\": \"http://localhost:9311/v1/secrets/b97df538-5bd6-4dd6-97c2-0e6c187a5768/acls/373adcca-656b-4d9a-8690-6f28a5fe45a6\"}","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b4054a83e6cdd7d0189d87edd867753c811dc3dc","unresolved":false,"context_lines":[{"line_number":179,"context_line":"        data \u003d api.load_body(pecan.request, validator\u003dself.validator)"},{"line_number":180,"context_line":"        LOG.debug(\u0027Start on_post...%s\u0027, data)"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"        for key in itertools.ifilter(lambda x: data.get(x),"},{"line_number":183,"context_line":"                                     validators.ACL_OPERATIONS):"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"            creator_only \u003d True if data[key].get(\u0027creator-only\u0027) else False"}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_69210b9f","line":182,"updated":"2015-04-01 00:48:36.000000000","message":"Can you change \u0027key\u0027 to \u0027operation\u0027 here for clarity?\n\nBTW, I\u0027d never seen ifilter used before, thanks for that. :)","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"74fbc0e361cd0a9710c015a95feb77b19ec88415","unresolved":false,"context_lines":[{"line_number":179,"context_line":"        data \u003d api.load_body(pecan.request, validator\u003dself.validator)"},{"line_number":180,"context_line":"        LOG.debug(\u0027Start on_post...%s\u0027, data)"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"        for key in itertools.ifilter(lambda x: data.get(x),"},{"line_number":183,"context_line":"                                     validators.ACL_OPERATIONS):"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"            creator_only \u003d True if data[key].get(\u0027creator-only\u0027) else False"}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_caaf5493","line":182,"in_reply_to":"da9b358b_69210b9f","updated":"2015-04-01 17:38:23.000000000","message":"Will change that in next patch.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b4054a83e6cdd7d0189d87edd867753c811dc3dc","unresolved":false,"context_lines":[{"line_number":195,"context_line":"    @index.when(method\u003d\u0027PUT\u0027, template\u003d\u0027json\u0027)"},{"line_number":196,"context_line":"    @controllers.handle_exceptions(u._(\u0027SecretACL(s) Update\u0027))"},{"line_number":197,"context_line":"    @controllers.enforce_rbac(\u0027secret_acls:put\u0027)"},{"line_number":198,"context_line":"    @controllers.enforce_content_types([\u0027application/json\u0027])"},{"line_number":199,"context_line":"    def on_put(self, external_project_id, **kwargs):"},{"line_number":200,"context_line":"        \"\"\"Handles update of existing secret acl requests."},{"line_number":201,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_89ed6f27","line":198,"updated":"2015-04-01 00:48:36.000000000","message":"NOTE FOR UPCOMING REVIEW ONLY: I think enforce_rbac should be the first decorator called to enforce policy, but I see other controllers doing this. Should we make a separate CR to fix all of these?","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"a26144d3ffa1aaa4b6f10458d2a27021af1e15ad","unresolved":false,"context_lines":[{"line_number":195,"context_line":"    @index.when(method\u003d\u0027PUT\u0027, template\u003d\u0027json\u0027)"},{"line_number":196,"context_line":"    @controllers.handle_exceptions(u._(\u0027SecretACL(s) Update\u0027))"},{"line_number":197,"context_line":"    @controllers.enforce_rbac(\u0027secret_acls:put\u0027)"},{"line_number":198,"context_line":"    @controllers.enforce_content_types([\u0027application/json\u0027])"},{"line_number":199,"context_line":"    def on_put(self, external_project_id, **kwargs):"},{"line_number":200,"context_line":"        \"\"\"Handles update of existing secret acl requests."},{"line_number":201,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_08ec12c6","line":198,"in_reply_to":"baa041b7_aa3f7024","updated":"2015-04-02 05:11:55.000000000","message":"No change is needed in this CR as per group code review session.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"74fbc0e361cd0a9710c015a95feb77b19ec88415","unresolved":false,"context_lines":[{"line_number":195,"context_line":"    @index.when(method\u003d\u0027PUT\u0027, template\u003d\u0027json\u0027)"},{"line_number":196,"context_line":"    @controllers.handle_exceptions(u._(\u0027SecretACL(s) Update\u0027))"},{"line_number":197,"context_line":"    @controllers.enforce_rbac(\u0027secret_acls:put\u0027)"},{"line_number":198,"context_line":"    @controllers.enforce_content_types([\u0027application/json\u0027])"},{"line_number":199,"context_line":"    def on_put(self, external_project_id, **kwargs):"},{"line_number":200,"context_line":"        \"\"\"Handles update of existing secret acl requests."},{"line_number":201,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_aa3f7024","line":198,"in_reply_to":"da9b358b_89ed6f27","updated":"2015-04-01 17:38:23.000000000","message":"Don\u0027t we want to have pecan decorator, index.when, first as it help in identifying the request flow. I can follow whatever is recommended pattern here.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8cf60bbe8b75f68ece4569413ef7088651da0a87","unresolved":false,"context_lines":[{"line_number":231,"context_line":"        LOG.debug(\u0027Start on_put...%s\u0027, data)"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"        existing_acls_map \u003d {acl.operation: acl for acl in"},{"line_number":234,"context_line":"                             self.secret.secret_acls}"},{"line_number":235,"context_line":"        for key in itertools.ifilter(lambda x: data.get(x),"},{"line_number":236,"context_line":"                                     validators.ACL_OPERATIONS):"},{"line_number":237,"context_line":"            creator_only \u003d data[key].get(\u0027creator-only\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_9d892929","line":234,"updated":"2015-04-01 04:42:06.000000000","message":"So, if I include \"read\" but not \"write\", and \"write\" already exists, then the \"write\" acl is not affected?  In fact, if anything is not specified, then it is not changed.  That is not the usual semantics of PUT, but rather the semantics of PATCH.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"a26144d3ffa1aaa4b6f10458d2a27021af1e15ad","unresolved":false,"context_lines":[{"line_number":231,"context_line":"        LOG.debug(\u0027Start on_put...%s\u0027, data)"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"        existing_acls_map \u003d {acl.operation: acl for acl in"},{"line_number":234,"context_line":"                             self.secret.secret_acls}"},{"line_number":235,"context_line":"        for key in itertools.ifilter(lambda x: data.get(x),"},{"line_number":236,"context_line":"                                     validators.ACL_OPERATIONS):"},{"line_number":237,"context_line":"            creator_only \u003d data[key].get(\u0027creator-only\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_4809fa94","line":234,"in_reply_to":"baa041b7_bd457818","updated":"2015-04-02 05:11:55.000000000","message":"Will conver to patch and going to add DELETE operation for ACL by acl_id","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"74fbc0e361cd0a9710c015a95feb77b19ec88415","unresolved":false,"context_lines":[{"line_number":231,"context_line":"        LOG.debug(\u0027Start on_put...%s\u0027, data)"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"        existing_acls_map \u003d {acl.operation: acl for acl in"},{"line_number":234,"context_line":"                             self.secret.secret_acls}"},{"line_number":235,"context_line":"        for key in itertools.ifilter(lambda x: data.get(x),"},{"line_number":236,"context_line":"                                     validators.ACL_OPERATIONS):"},{"line_number":237,"context_line":"            creator_only \u003d data[key].get(\u0027creator-only\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_bd457818","line":234,"in_reply_to":"da9b358b_9d892929","updated":"2015-04-01 17:38:23.000000000","message":"Earlier I had thought of adding it as patch. But was not sure if pecan supports patch or within barbican do we use patch or not?\n\nIf PATCH support is there, I can change it to patch as behavior somewhat matches more with PATCH than PUT.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b4054a83e6cdd7d0189d87edd867753c811dc3dc","unresolved":false,"context_lines":[{"line_number":232,"context_line":""},{"line_number":233,"context_line":"        existing_acls_map \u003d {acl.operation: acl for acl in"},{"line_number":234,"context_line":"                             self.secret.secret_acls}"},{"line_number":235,"context_line":"        for key in itertools.ifilter(lambda x: data.get(x),"},{"line_number":236,"context_line":"                                     validators.ACL_OPERATIONS):"},{"line_number":237,"context_line":"            creator_only \u003d data[key].get(\u0027creator-only\u0027)"},{"line_number":238,"context_line":"            user_ids \u003d data[key].get(\u0027users\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_e96d1b99","line":235,"updated":"2015-04-01 00:48:36.000000000","message":"Similar to above, key to operation please.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"74fbc0e361cd0a9710c015a95feb77b19ec88415","unresolved":false,"context_lines":[{"line_number":232,"context_line":""},{"line_number":233,"context_line":"        existing_acls_map \u003d {acl.operation: acl for acl in"},{"line_number":234,"context_line":"                             self.secret.secret_acls}"},{"line_number":235,"context_line":"        for key in itertools.ifilter(lambda x: data.get(x),"},{"line_number":236,"context_line":"                                     validators.ACL_OPERATIONS):"},{"line_number":237,"context_line":"            creator_only \u003d data[key].get(\u0027creator-only\u0027)"},{"line_number":238,"context_line":"            user_ids \u003d data[key].get(\u0027users\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_2a1240b5","line":235,"in_reply_to":"da9b358b_e96d1b99","updated":"2015-04-01 17:38:23.000000000","message":"Will make the change in next patch.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"8cf60bbe8b75f68ece4569413ef7088651da0a87","unresolved":false,"context_lines":[{"line_number":240,"context_line":"            if key in existing_acls_map:  # update if matching acl exists"},{"line_number":241,"context_line":"                s_acl \u003d existing_acls_map[key]"},{"line_number":242,"context_line":"                if creator_only is not None:"},{"line_number":243,"context_line":"                    s_acl.creator_only \u003d creator_only"},{"line_number":244,"context_line":"            else:"},{"line_number":245,"context_line":"                s_acl \u003d models.SecretACL(self.secret.id, operation\u003dkey,"},{"line_number":246,"context_line":"                                         creator_only\u003dcreator_only)"}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_7d930550","line":243,"updated":"2015-04-01 04:42:06.000000000","message":"so, just to clarify, if creator_only is not specified, then its not changed.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"74fbc0e361cd0a9710c015a95feb77b19ec88415","unresolved":false,"context_lines":[{"line_number":240,"context_line":"            if key in existing_acls_map:  # update if matching acl exists"},{"line_number":241,"context_line":"                s_acl \u003d existing_acls_map[key]"},{"line_number":242,"context_line":"                if creator_only is not None:"},{"line_number":243,"context_line":"                    s_acl.creator_only \u003d creator_only"},{"line_number":244,"context_line":"            else:"},{"line_number":245,"context_line":"                s_acl \u003d models.SecretACL(self.secret.id, operation\u003dkey,"},{"line_number":246,"context_line":"                                         creator_only\u003dcreator_only)"}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_7d1db00e","line":243,"in_reply_to":"da9b358b_7d930550","updated":"2015-04-01 17:38:23.000000000","message":"It should be changed based on user_ids data captured in line # 238 which is passed to create_or_replace_from logic below.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"}],"barbican/api/controllers/containers.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b4054a83e6cdd7d0189d87edd867753c811dc3dc","unresolved":false,"context_lines":[{"line_number":159,"context_line":"        data \u003d api.load_body(pecan.request, validator\u003dself.validator)"},{"line_number":160,"context_line":"        ctxt \u003d controllers._get_barbican_context(pecan.request)"},{"line_number":161,"context_line":"        if ctxt:"},{"line_number":162,"context_line":"            data.setdefault(\u0027creator_id\u0027, ctxt.user)"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        LOG.debug(\u0027Start on_post...%s\u0027, data)"},{"line_number":165,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_a9b713d7","line":162,"updated":"2015-04-01 00:48:36.000000000","message":"I think this means it\u0027s possible to set the creator_id via the containers POST (i.e. provided by the client) rather than derived from the auth middleware. In that case I don\u0027t think this is correct as I think only auth should provide this.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"74fbc0e361cd0a9710c015a95feb77b19ec88415","unresolved":false,"context_lines":[{"line_number":159,"context_line":"        data \u003d api.load_body(pecan.request, validator\u003dself.validator)"},{"line_number":160,"context_line":"        ctxt \u003d controllers._get_barbican_context(pecan.request)"},{"line_number":161,"context_line":"        if ctxt:"},{"line_number":162,"context_line":"            data.setdefault(\u0027creator_id\u0027, ctxt.user)"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        LOG.debug(\u0027Start on_post...%s\u0027, data)"},{"line_number":165,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_9dcab44e","line":162,"in_reply_to":"da9b358b_a9b713d7","updated":"2015-04-01 17:38:23.000000000","message":"Oh yes, good catch. I will fix it in next patch to explicit assignment. ctxt information is populated from auth data.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"}],"barbican/api/controllers/orders.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b4054a83e6cdd7d0189d87edd867753c811dc3dc","unresolved":false,"context_lines":[{"line_number":205,"context_line":""},{"line_number":206,"context_line":"        ctxt \u003d controllers._get_barbican_context(pecan.request)"},{"line_number":207,"context_line":"        if ctxt:"},{"line_number":208,"context_line":"            new_order.creator_id \u003d ctxt.user"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"        self.order_repo.create_from(new_order)"},{"line_number":211,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_49b407d0","line":208,"updated":"2015-04-01 00:48:36.000000000","message":"Similar comment as for containers.py.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"74fbc0e361cd0a9710c015a95feb77b19ec88415","unresolved":false,"context_lines":[{"line_number":205,"context_line":""},{"line_number":206,"context_line":"        ctxt \u003d controllers._get_barbican_context(pecan.request)"},{"line_number":207,"context_line":"        if ctxt:"},{"line_number":208,"context_line":"            new_order.creator_id \u003d ctxt.user"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"        self.order_repo.create_from(new_order)"},{"line_number":211,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_1d7904fd","line":208,"in_reply_to":"da9b358b_49b407d0","updated":"2015-04-01 17:38:23.000000000","message":"ctxt information is populated from auth data so to me it looks okay assuming authenticated pipeline is used. Can you clarify what is wrong here.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"}],"barbican/api/controllers/secrets.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"b4054a83e6cdd7d0189d87edd867753c811dc3dc","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                                        \u0027false\u0027).lower() \u003d\u003d \u0027true\u0027"},{"line_number":283,"context_line":"        ctxt \u003d controllers._get_barbican_context(pecan.request)"},{"line_number":284,"context_line":"        if ctxt:"},{"line_number":285,"context_line":"            data.setdefault(\u0027creator_id\u0027, ctxt.user)"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"        new_secret, transport_key_model \u003d plugin.store_secret("},{"line_number":288,"context_line":"            data.get(\u0027payload\u0027),"}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_c9c0172d","line":285,"updated":"2015-04-01 00:48:36.000000000","message":"Similar comment as for containers.py.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"74fbc0e361cd0a9710c015a95feb77b19ec88415","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                                        \u0027false\u0027).lower() \u003d\u003d \u0027true\u0027"},{"line_number":283,"context_line":"        ctxt \u003d controllers._get_barbican_context(pecan.request)"},{"line_number":284,"context_line":"        if ctxt:"},{"line_number":285,"context_line":"            data.setdefault(\u0027creator_id\u0027, ctxt.user)"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"        new_secret, transport_key_model \u003d plugin.store_secret("},{"line_number":288,"context_line":"            data.get(\u0027payload\u0027),"}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_1d60e434","line":285,"in_reply_to":"da9b358b_c9c0172d","updated":"2015-04-01 17:38:23.000000000","message":"Agree, will make that change in next patch.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"}],"barbican/common/validators.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"421bcfddb89f31bb5ce704acbef411f4f30a22d4","unresolved":false,"context_lines":[{"line_number":590,"context_line":"                                                    .format(order_type))"},{"line_number":591,"context_line":""},{"line_number":592,"context_line":""},{"line_number":593,"context_line":"class AclsValidator(ValidatorBase):"},{"line_number":594,"context_line":"    \"\"\"Validate ACL(s).\"\"\""},{"line_number":595,"context_line":""},{"line_number":596,"context_line":"    def __init__(self):"}],"source_content_type":"text/x-python","patch_set":13,"id":"da9b358b_2979c3c8","line":593,"updated":"2015-04-01 01:18:45.000000000","message":"More acronym foo please.","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"74fbc0e361cd0a9710c015a95feb77b19ec88415","unresolved":false,"context_lines":[{"line_number":590,"context_line":"                                                    .format(order_type))"},{"line_number":591,"context_line":""},{"line_number":592,"context_line":""},{"line_number":593,"context_line":"class AclsValidator(ValidatorBase):"},{"line_number":594,"context_line":"    \"\"\"Validate ACL(s).\"\"\""},{"line_number":595,"context_line":""},{"line_number":596,"context_line":"    def __init__(self):"}],"source_content_type":"text/x-python","patch_set":13,"id":"baa041b7_fdcb001d","line":593,"in_reply_to":"da9b358b_2979c3c8","updated":"2015-04-01 17:38:23.000000000","message":"Is this should be \"ACLValidator\" ?","commit_id":"37541da3223f9e9f8540fe93c493606409f9ca16"}],"barbican/plugin/resources.py":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"42b1a8b5316dba689c40ceddcba0f49390dce684","unresolved":false,"context_lines":[{"line_number":210,"context_line":"    if passphrase_secret_model:"},{"line_number":211,"context_line":"        passphrase_type \u003d secret_store.SecretType.PASSPHRASE"},{"line_number":212,"context_line":"        passphrase_secret_model[\u0027secret_type\u0027] \u003d passphrase_type"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"    # Generate the secret."},{"line_number":215,"context_line":"    asymmetric_meta_dto \u003d _generate_asymmetric_key("},{"line_number":216,"context_line":"        generate_plugin,"}],"source_content_type":"text/x-python","patch_set":14,"id":"baa041b7_8e0ed932","line":213,"updated":"2015-04-02 14:34:46.000000000","message":"You can see above where the secret in the container is created from the spec.  So it should have the right creator_id.","commit_id":"92b1199efe3ee43678a55935445ad83387f1e5e8"}]}
