)]}'
{"barbican/api/controllers/cas.py":[{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"cf745d9720416635ee7dca057d404854470bb124","unresolved":false,"context_lines":[{"line_number":352,"context_line":"            description\u003ddata.get(\u0027description\u0027),"},{"line_number":353,"context_line":"            subject_dn\u003ddata.get(\u0027subject_dn\u0027),"},{"line_number":354,"context_line":"            parent_ca_ref\u003ddata.get(\u0027parent_ca_ref\u0027),"},{"line_number":355,"context_line":"            creator_id\u003dcreator_id,"},{"line_number":356,"context_line":"        )"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"        url \u003d hrefs.convert_certificate_authority_to_href(new_ca.id)"}],"source_content_type":"text/x-python","patch_set":17,"id":"da20952f_657a9f79","line":355,"updated":"2015-09-09 12:40:51.000000000","message":"Why the trailing comma here?","commit_id":"307059a42bb76f2d1de3835cb2c6967d0ad97a65"}],"barbican/plugin/snakeoil_ca.py":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"a6e5f16e6444c68202596570b47ad4e67e11929c","unresolved":false,"context_lines":[{"line_number":53,"context_line":"def set_subject_X509Name(target, dn):"},{"line_number":54,"context_line":"    # set target X59Name object with parsed dn"},{"line_number":55,"context_line":"    # this is very basic and should certainly be replaced by something using"},{"line_number":56,"context_line":"    # cryptography for instance, but will do for a basic test CA"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    # TODO(alee) Figure out why C (country) is not working"},{"line_number":59,"context_line":"    fields \u003d dn.split(\u0027,\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_95662028","line":56,"updated":"2015-09-08 21:20:19.000000000","message":"Nit: should this be the multi-line docstring format with triple quotes?","commit_id":"fa1c58a4e6f03b7a84097495fe67e238874abec2"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"0fbde14fdafbc7bcb69357af7d27a98a7f6c0c7f","unresolved":false,"context_lines":[{"line_number":53,"context_line":"def set_subject_X509Name(target, dn):"},{"line_number":54,"context_line":"    # set target X59Name object with parsed dn"},{"line_number":55,"context_line":"    # this is very basic and should certainly be replaced by something using"},{"line_number":56,"context_line":"    # cryptography for instance, but will do for a basic test CA"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    # TODO(alee) Figure out why C (country) is not working"},{"line_number":59,"context_line":"    fields \u003d dn.split(\u0027,\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_9474d936","line":56,"in_reply_to":"da20952f_95662028","updated":"2015-09-09 03:52:42.000000000","message":"I wasn\u0027t thinking of this as a docstring.  But I can reformat as such.  So, will do.","commit_id":"fa1c58a4e6f03b7a84097495fe67e238874abec2"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"a6e5f16e6444c68202596570b47ad4e67e11929c","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    # this is very basic and should certainly be replaced by something using"},{"line_number":56,"context_line":"    # cryptography for instance, but will do for a basic test CA"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    # TODO(alee) Figure out why C (country) is not working"},{"line_number":59,"context_line":"    fields \u003d dn.split(\u0027,\u0027)"},{"line_number":60,"context_line":"    for field in fields:"},{"line_number":61,"context_line":"        m \u003d re.search(r\"(\\w+)\\s*\u003d\\s*(.+)\", field.strip())"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_75482c8b","line":58,"updated":"2015-09-08 21:20:19.000000000","message":"What do you mean by \"not working\"?","commit_id":"fa1c58a4e6f03b7a84097495fe67e238874abec2"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"0fbde14fdafbc7bcb69357af7d27a98a7f6c0c7f","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    # this is very basic and should certainly be replaced by something using"},{"line_number":56,"context_line":"    # cryptography for instance, but will do for a basic test CA"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    # TODO(alee) Figure out why C (country) is not working"},{"line_number":59,"context_line":"    fields \u003d dn.split(\u0027,\u0027)"},{"line_number":60,"context_line":"    for field in fields:"},{"line_number":61,"context_line":"        m \u003d re.search(r\"(\\w+)\\s*\u003d\\s*(.+)\", field.strip())"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_140a097a","line":58,"in_reply_to":"da20952f_75482c8b","updated":"2015-09-09 03:52:42.000000000","message":"This ia a little bizarre.  Originally, I had code that would set the country as such:\n\nelif name.lower() \u003d\u003d \u0027C\u0027:\n    target.C \u003d value\n\nFor some reason, this doesn\u0027t work though.  There is no problem with the extraction of value.  Setting the attribute target.C results in some strange ASN.1 error though.\n\nYou can see this in the following test on a python command line:\n\nfrom OpenSSL import crypto\n\ncert \u003d crypto.X509()\nsubj \u003d cert.get_subject()\nsubj.CN \u003d \"foo\"   // this works\nsubj.C \u003d \"bar\"   // this fails.\n\nI think this is a bug in OpenSSL.\n\nIn any case, though, we want to eventually replace this with cryptography calls to do this all the right way ie. no more regex\u0027s etc.\n\nThis is good enough to get things going though.","commit_id":"fa1c58a4e6f03b7a84097495fe67e238874abec2"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"a6e5f16e6444c68202596570b47ad4e67e11929c","unresolved":false,"context_lines":[{"line_number":314,"context_line":"                \"Invalid parent id passed to snake oil plugin:\" + parent_ca_id)"},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"        # create a new ca, passing in key and issuer from the parent"},{"line_number":317,"context_line":"        new_ca_id \u003d str(uuid.uuid4().int)"},{"line_number":318,"context_line":"        new_cert_path \u003d os.path.join(self.subca_directory, new_ca_id + \".cert\")"},{"line_number":319,"context_line":"        new_key_path \u003d os.path.join(self.subca_directory, new_ca_id + \".key\")"},{"line_number":320,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_155a1051","line":317,"updated":"2015-09-08 21:20:19.000000000","message":"Oh, is snakeoil the only plugin that converts uuid to int, then to string?  I\u0027ve only ever seen it used directly as a string before.","commit_id":"fa1c58a4e6f03b7a84097495fe67e238874abec2"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"0fbde14fdafbc7bcb69357af7d27a98a7f6c0c7f","unresolved":false,"context_lines":[{"line_number":314,"context_line":"                \"Invalid parent id passed to snake oil plugin:\" + parent_ca_id)"},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"        # create a new ca, passing in key and issuer from the parent"},{"line_number":317,"context_line":"        new_ca_id \u003d str(uuid.uuid4().int)"},{"line_number":318,"context_line":"        new_cert_path \u003d os.path.join(self.subca_directory, new_ca_id + \".cert\")"},{"line_number":319,"context_line":"        new_key_path \u003d os.path.join(self.subca_directory, new_ca_id + \".key\")"},{"line_number":320,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_d424910f","line":317,"in_reply_to":"da20952f_155a1051","updated":"2015-09-09 03:52:42.000000000","message":"yeah - no need to convert to int.  will just use as str","commit_id":"fa1c58a4e6f03b7a84097495fe67e238874abec2"},{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"cf745d9720416635ee7dca057d404854470bb124","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"def set_subject_X509Name(target, dn):"},{"line_number":53,"context_line":"    \"\"\"Set target X59Name object with parsed dn."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    This is very basic and should certainly be replaced by something using"},{"line_number":56,"context_line":"    cryptography for instance, but will do for a basic test CA"}],"source_content_type":"text/x-python","patch_set":17,"id":"da20952f_05ede3ee","line":53,"updated":"2015-09-09 12:40:51.000000000","message":"nit: X59Name -\u003e X509Name","commit_id":"307059a42bb76f2d1de3835cb2c6967d0ad97a65"}],"barbican/tests/plugin/test_snakeoil_ca.py":[{"author":{"_account_id":7764,"name":"Peter Hamilton","email":"peter.hamilton@jhuapl.edu","username":"Peter"},"change_message_id":"cf745d9720416635ee7dca057d404854470bb124","unresolved":false,"context_lines":[{"line_number":284,"context_line":"        ca_cert \u003d subca_dict.get(cm.INFO_CA_SIGNING_CERT)"},{"line_number":285,"context_line":"        self.assertIsNotNone(ca_cert)"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"        # TODO(alee) Verify that the ca cert has correct sibject name"},{"line_number":288,"context_line":"        # TODO(alee) Verify that ca cert is signed by parent CA"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"    def test_raises_no_parent_id_passed_in(self):"}],"source_content_type":"text/x-python","patch_set":17,"id":"da20952f_0573a316","line":287,"updated":"2015-09-09 12:40:51.000000000","message":"nit: sibject -\u003e subject","commit_id":"307059a42bb76f2d1de3835cb2c6967d0ad97a65"}]}
