)]}'
{"castellan/key_manager/barbican_key_manager.py":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"b5c590f0a1c229c9fe05f8c7ec0eeb287d48d9e8","unresolved":false,"context_lines":[{"line_number":62,"context_line":"]"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"BARBICAN_OPT_GROUP \u003d \u0027barbican\u0027"},{"line_number":65,"context_line":"BARBICAN_OBJECT_TYPES \u003d [\u0027secret\u0027, \u0027order\u0027, \u0027container\u0027]"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":68,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da85f559_24861f66","line":65,"updated":"2015-11-13 01:41:32.000000000","message":"This is not used anymore, no?","commit_id":"f01ecc887cc57fd0b42b356fdb8e131705dca3f1"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"06b6043bf82e9c12047433ed58c4ec9f44f9f041","unresolved":false,"context_lines":[{"line_number":62,"context_line":"]"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"BARBICAN_OPT_GROUP \u003d \u0027barbican\u0027"},{"line_number":65,"context_line":"BARBICAN_OBJECT_TYPES \u003d [\u0027secret\u0027, \u0027order\u0027, \u0027container\u0027]"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":68,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da85f559_d5c0fae2","line":65,"in_reply_to":"da85f559_24861f66","updated":"2015-11-15 04:51:22.000000000","message":"Done","commit_id":"f01ecc887cc57fd0b42b356fdb8e131705dca3f1"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"b5c590f0a1c229c9fe05f8c7ec0eeb287d48d9e8","unresolved":false,"context_lines":[{"line_number":489,"context_line":"    def list(self, context, limit\u003d10):"},{"line_number":490,"context_line":"        \"\"\"Retrieves a list of managed objects."},{"line_number":491,"context_line":""},{"line_number":492,"context_line":"        Currently only supports retrieving a list of symmetric keys"},{"line_number":493,"context_line":""},{"line_number":494,"context_line":"        :param context: contains information of the user and the environment"},{"line_number":495,"context_line":"                        for the request (castellan/context.py)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da85f559_84958b89","line":492,"updated":"2015-11-13 01:41:32.000000000","message":"Why do you say it only supports symmetric keys?  It looks like the python-barbicanclient list method returns any kind of secret.","commit_id":"f01ecc887cc57fd0b42b356fdb8e131705dca3f1"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"06b6043bf82e9c12047433ed58c4ec9f44f9f041","unresolved":false,"context_lines":[{"line_number":489,"context_line":"    def list(self, context, limit\u003d10):"},{"line_number":490,"context_line":"        \"\"\"Retrieves a list of managed objects."},{"line_number":491,"context_line":""},{"line_number":492,"context_line":"        Currently only supports retrieving a list of symmetric keys"},{"line_number":493,"context_line":""},{"line_number":494,"context_line":"        :param context: contains information of the user and the environment"},{"line_number":495,"context_line":"                        for the request (castellan/context.py)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da85f559_f505fe13","line":492,"in_reply_to":"da85f559_84958b89","updated":"2015-11-15 04:51:22.000000000","message":"Meant to say Barbican Secrets.","commit_id":"f01ecc887cc57fd0b42b356fdb8e131705dca3f1"}],"castellan/key_manager/key_manager.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6f88a7b47c181ca4818b436a06b957af16e76140","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        pass"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    @abc.abstractmethod"},{"line_number":94,"context_line":"    def list(self, context, entity_type, limit\u003d10, offset\u003d0):"},{"line_number":95,"context_line":"        \"\"\"Retrieves a list of specified managed objects"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        Implementations should verify that the caller has permission to list"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a2ca52d_23d1f657","line":94,"updated":"2015-10-14 13:04:40.000000000","message":"I don\u0027t know if offset is a valid parameter for all key managers. I\u0027m not sure if KMIP and PKCS11 support this concept. We need to review the specs for those and check on that.","commit_id":"5388b67d97004c4f029620cee7d0ce7b0b071530"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"c764854a720d8130ef7096151a1cda5b84d9c87c","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        pass"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    @abc.abstractmethod"},{"line_number":94,"context_line":"    def list(self, context, entity_type, limit\u003d10, offset\u003d0):"},{"line_number":95,"context_line":"        \"\"\"Retrieves a list of specified managed objects"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        Implementations should verify that the caller has permission to list"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a29b11f_d57f1d15","line":94,"in_reply_to":"5a2ca52d_0b78838e","updated":"2015-10-22 03:18:10.000000000","message":"I removed offset and added entity_type\u003dNone to the parameters so that if KMIP or PKCS11 backends are used it does not need to be set.","commit_id":"5388b67d97004c4f029620cee7d0ce7b0b071530"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"13637488edee1472b2fa4b67b8185170db8000f4","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        pass"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    @abc.abstractmethod"},{"line_number":94,"context_line":"    def list(self, context, entity_type, limit\u003d10, offset\u003d0):"},{"line_number":95,"context_line":"        \"\"\"Retrieves a list of specified managed objects"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        Implementations should verify that the caller has permission to list"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a2ca52d_0b78838e","line":94,"in_reply_to":"5a2ca52d_100d1590","updated":"2015-10-14 17:32:06.000000000","message":"As you have it implemented, entity_type can be \u0027secret\u0027, \u0027order\u0027, and \u0027container\u0027, right?  If we were to implement a KMIP and PKCS11 backend, those entity_types don\u0027t really mean anything to those other potential backends because they are Barbican-specific.","commit_id":"5388b67d97004c4f029620cee7d0ce7b0b071530"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"6822bd1663bd022aed4291cf8632998632adc22c","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        pass"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    @abc.abstractmethod"},{"line_number":94,"context_line":"    def list(self, context, entity_type, limit\u003d10, offset\u003d0):"},{"line_number":95,"context_line":"        \"\"\"Retrieves a list of specified managed objects"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        Implementations should verify that the caller has permission to list"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a2ca52d_100d1590","line":94,"in_reply_to":"5a2ca52d_23d1f657","updated":"2015-10-14 16:53:32.000000000","message":"Thanks. I would have to check this.","commit_id":"5388b67d97004c4f029620cee7d0ce7b0b071530"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6f88a7b47c181ca4818b436a06b957af16e76140","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        Implementations should verify that the caller has permission to list"},{"line_number":98,"context_line":"        the managed objects by checking the context object (context). A"},{"line_number":99,"context_line":"        NotAuthorized exception should be raised if the caller lacks"},{"line_number":100,"context_line":"        permission."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        If the specified entity type does not exist in a list of available"},{"line_number":103,"context_line":"        types, then a KeyError should be raised. Implementations should"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a2ca52d_63ba8e25","line":100,"updated":"2015-10-14 13:04:40.000000000","message":"Would a user ever not be able to list objects? It seems like everyone should have that capability. I would think worst case would be no objects are returned if you do not have permission to view any objects. Thoughts?","commit_id":"5388b67d97004c4f029620cee7d0ce7b0b071530"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"6822bd1663bd022aed4291cf8632998632adc22c","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        Implementations should verify that the caller has permission to list"},{"line_number":98,"context_line":"        the managed objects by checking the context object (context). A"},{"line_number":99,"context_line":"        NotAuthorized exception should be raised if the caller lacks"},{"line_number":100,"context_line":"        permission."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        If the specified entity type does not exist in a list of available"},{"line_number":103,"context_line":"        types, then a KeyError should be raised. Implementations should"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a2ca52d_ba5e8010","line":100,"in_reply_to":"5a2ca52d_63ba8e25","updated":"2015-10-14 16:53:32.000000000","message":"My thought is there maybe a permission set to disallow objects from being listed like in Barbican\u0027s policy.json: \"secrets:get\": \"rule:all_but_audit\".\n\nMaybe the user should know that they are not allowed to view secrets, so they may contacted an admin if they require the rights.","commit_id":"5388b67d97004c4f029620cee7d0ce7b0b071530"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"2054738579457ef4ffa278648d8937f5c78ade0b","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        If the specified entity type does not exist in a list of available"},{"line_number":103,"context_line":"        types, then a KeyError should be raised. The entity_type parameter"},{"line_number":104,"context_line":"        is set to defaultly set to None in case a KMIP or PKCS11 backend"},{"line_number":105,"context_line":"        is being used. Implementations should preclude users from discerning"},{"line_number":106,"context_line":"        the UUIDs of objects that belong to other users by repeatedly calling"},{"line_number":107,"context_line":"        this method. That is, objects that belong to other users should be"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_120b527e","line":104,"updated":"2015-10-22 13:50:27.000000000","message":"set to deftaultly set to None -\u003e set to default to None ?","commit_id":"c4753218a627de1afee2e0ba9ea4df810590abae"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"d5e722e536eb3505267d76da664c96996f7c6489","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        If the specified entity type does not exist in a list of available"},{"line_number":103,"context_line":"        types, then a KeyError should be raised. The entity_type parameter"},{"line_number":104,"context_line":"        is set to defaultly set to None in case a KMIP or PKCS11 backend"},{"line_number":105,"context_line":"        is being used. Implementations should preclude users from discerning"},{"line_number":106,"context_line":"        the UUIDs of objects that belong to other users by repeatedly calling"},{"line_number":107,"context_line":"        this method. That is, objects that belong to other users should be"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a26ad4f_88fe75ac","line":104,"in_reply_to":"3a29b11f_120b527e","updated":"2015-11-03 01:04:27.000000000","message":"Done","commit_id":"c4753218a627de1afee2e0ba9ea4df810590abae"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"b5c590f0a1c229c9fe05f8c7ec0eeb287d48d9e8","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        NotAuthorized exception should be raised if the caller lacks"},{"line_number":100,"context_line":"        permission."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        If not objects exist, an empty list is returned. Implementations"},{"line_number":103,"context_line":"        should preclude users from discerning the UUIDs of objects that"},{"line_number":104,"context_line":"        belong to other users by repeatedly calling this method. That is,"},{"line_number":105,"context_line":"        objects that belong to other users should be considered \"non-existent\""}],"source_content_type":"text/x-python","patch_set":6,"id":"da85f559_648c2780","line":102,"updated":"2015-11-13 01:41:32.000000000","message":"Nit: not -\u003e no","commit_id":"f01ecc887cc57fd0b42b356fdb8e131705dca3f1"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"06b6043bf82e9c12047433ed58c4ec9f44f9f041","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        NotAuthorized exception should be raised if the caller lacks"},{"line_number":100,"context_line":"        permission."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        If not objects exist, an empty list is returned. Implementations"},{"line_number":103,"context_line":"        should preclude users from discerning the UUIDs of objects that"},{"line_number":104,"context_line":"        belong to other users by repeatedly calling this method. That is,"},{"line_number":105,"context_line":"        objects that belong to other users should be considered \"non-existent\""}],"source_content_type":"text/x-python","patch_set":6,"id":"da85f559_d02a487e","line":102,"in_reply_to":"da85f559_648c2780","updated":"2015-11-15 04:51:22.000000000","message":"Done","commit_id":"f01ecc887cc57fd0b42b356fdb8e131705dca3f1"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"4e0ea8c6d290ae7789b4b930c34910843dda167c","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        pass"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    @abc.abstractmethod"},{"line_number":94,"context_line":"    def list(self, context, limit\u003d10):"},{"line_number":95,"context_line":"        \"\"\"Retrieves a list of Castellan objects"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        Implementations should verify that the caller has permission to list"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba8a016a_a5776ad3","line":94,"updated":"2015-11-16 14:47:33.000000000","message":"I\u0027m still not sure about this method yet. I\u0027m not sure that it will satisfy a use case, but please correct me if I am wrong.\n\nI am thinking the user wants to list a set of objects with some properties/attributes. I believe there are two parts to this. One is the ability to list the types of objects to retrieve. This could be specified by object properties such as object type, create date, expired date, etc. The other property is what you have, which is a limit so that if my search is too broad that my system is not overwhelmed.\n\nI\u0027m worried that this method signature will not be enough. Consider the case where there are a 1000 objects and the implementation of search returns objects in the order from oldest to newest. I want to find the newest keys.\n\nIn this case I must list all 1000 keys to find the ones that I want. In order to do that then I would probably set limit low and gradually set it to higher values until I say, \"OK, I\u0027m just going to remove the limit and get everything.\"\n\nI think we should discuss this more and include peter-hamilton who did the PyKMIP work for us.","commit_id":"4f6ce45d1af535ca88e9b7e5210b58159f7f5240"}],"castellan/test0.py":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"b5c590f0a1c229c9fe05f8c7ec0eeb287d48d9e8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"from keystoneclient.v3 import client"},{"line_number":2,"context_line":"from oslo_context import context"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"from castellan.common.objects import symmetric_key"}],"source_content_type":"text/x-python","patch_set":6,"id":"da85f559_844a6b26","line":1,"updated":"2015-11-13 01:41:32.000000000","message":"I think we talked about this already, but you\u0027re not planning on having this file in here in the final patch, right?  Instead of this test file, could you write a functional test instead?","commit_id":"f01ecc887cc57fd0b42b356fdb8e131705dca3f1"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"06b6043bf82e9c12047433ed58c4ec9f44f9f041","unresolved":false,"context_lines":[{"line_number":1,"context_line":"from keystoneclient.v3 import client"},{"line_number":2,"context_line":"from oslo_context import context"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"from castellan.common.objects import symmetric_key"}],"source_content_type":"text/x-python","patch_set":6,"id":"da85f559_303ab4ce","line":1,"in_reply_to":"da85f559_844a6b26","updated":"2015-11-15 04:51:22.000000000","message":"Correct, just included it as a personal test.","commit_id":"f01ecc887cc57fd0b42b356fdb8e131705dca3f1"}],"castellan/tests/unit/key_manager/test_barbican_key_manager.py":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"b5c590f0a1c229c9fe05f8c7ec0eeb287d48d9e8","unresolved":false,"context_lines":[{"line_number":279,"context_line":"        self.assertRaises(exception.KeyManagerError,"},{"line_number":280,"context_line":"                          self.key_mgr.store, self.ctxt, _key)"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"    def get_key_list(self):"},{"line_number":283,"context_line":"        pass"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def test_get_active_order(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"da85f559_84710b7a","line":282,"updated":"2015-11-13 01:41:32.000000000","message":"Can you please write an actual test for this?","commit_id":"f01ecc887cc57fd0b42b356fdb8e131705dca3f1"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"06b6043bf82e9c12047433ed58c4ec9f44f9f041","unresolved":false,"context_lines":[{"line_number":279,"context_line":"        self.assertRaises(exception.KeyManagerError,"},{"line_number":280,"context_line":"                          self.key_mgr.store, self.ctxt, _key)"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"    def get_key_list(self):"},{"line_number":283,"context_line":"        pass"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def test_get_active_order(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"da85f559_17066e20","line":282,"in_reply_to":"da85f559_84710b7a","updated":"2015-11-15 04:51:22.000000000","message":"Hey Kaitlin, just want your suggestion on writing this test case. I want to add public/private keys to the test as well, but don\u0027t know if its proper style to have a long test case. Currently symmetric, and opaque data are in the list in the test I have written.\n\n1.) Would it be ok for me to include public and private keys in the same test?\n\n2.) Should I make a different test? Is testing all the different types of objects necessary?","commit_id":"f01ecc887cc57fd0b42b356fdb8e131705dca3f1"}],"castellan/tests/unit/key_manager/test_mock_key_manager.py":[{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"06b6043bf82e9c12047433ed58c4ec9f44f9f041","unresolved":false,"context_lines":[{"line_number":150,"context_line":"        self.assertRaises(exception.Forbidden,"},{"line_number":151,"context_line":"                          self.key_mgr.get, None, None)"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"    def test_key_list(self):"},{"line_number":154,"context_line":"        pass"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def test_get_unknown_key(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"da85f559_9ac923af","line":153,"updated":"2015-11-15 04:51:22.000000000","message":"Should just length be tested here, or should managed object attributes be checked?","commit_id":"f01ecc887cc57fd0b42b356fdb8e131705dca3f1"}]}
