)]}'
{"barbican/common/exception.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"6db6d84fe3f2fce4bfa8d43dc0d0d887ede7e010","unresolved":false,"context_lines":[{"line_number":132,"context_line":"    status_code \u003d 400"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"class ExtensionsNotSupported(BarbicanHTTPException):"},{"line_number":136,"context_line":"    message \u003d u._(\"Extensions are not yet supported.  \""},{"line_number":137,"context_line":"                  \"Specify a valid profile instead.\")"},{"line_number":138,"context_line":"    client_message \u003d message"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_18d4f9ba","line":135,"updated":"2015-04-09 05:05:35.000000000","message":"This is a bit generic...could you prefix with \u0027Certificate\u0027 perhaps?","commit_id":"88ce2c231bf14e66968fd984b848094faa741bba"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"da8188c71aa45718c5dcff9a7fda7ca51676f77d","unresolved":false,"context_lines":[{"line_number":132,"context_line":"    status_code \u003d 400"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"class ExtensionsNotSupported(BarbicanHTTPException):"},{"line_number":136,"context_line":"    message \u003d u._(\"Extensions are not yet supported.  \""},{"line_number":137,"context_line":"                  \"Specify a valid profile instead.\")"},{"line_number":138,"context_line":"    client_message \u003d message"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_d6b41036","line":135,"in_reply_to":"9aa53dc9_18d4f9ba","updated":"2015-04-09 14:07:51.000000000","message":"ok","commit_id":"88ce2c231bf14e66968fd984b848094faa741bba"}],"barbican/common/validators.py":[{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"3c6edcd3aa031faf62ac674d8260d690254d368b","unresolved":false,"context_lines":[{"line_number":531,"context_line":""},{"line_number":532,"context_line":"    def _validate_extensions_data(self, extensions):"},{"line_number":533,"context_line":"        \"\"\"Confirm that the extensions data is valid.\"\"\""},{"line_number":534,"context_line":"        \"\"\""},{"line_number":535,"context_line":"        TODO(alee-3) complete this function"},{"line_number":536,"context_line":""},{"line_number":537,"context_line":"        Parse the extensions data into the correct ASN.1 structure."}],"source_content_type":"text/x-python","patch_set":2,"id":"baa041b7_b487d8d6","line":534,"updated":"2015-04-01 15:09:28.000000000","message":"i believe we are making an effort to make sure we are updating docs as we move code around. This would mean adding :raises: to this docstring.","commit_id":"8b581caa6e3fe79333301e89debdb415f5f06883"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"bf7fb3df2c539c21e144ee058be5204b94b9e82a","unresolved":false,"context_lines":[{"line_number":482,"context_line":""},{"line_number":483,"context_line":"        # request_data \u003d self._get_required_metadata_value("},{"line_number":484,"context_line":"        #     certificate_meta, \"request_data\")"},{"line_number":485,"context_line":"        # self._validate_full_cmc_data(request_data)"},{"line_number":486,"context_line":""},{"line_number":487,"context_line":"    def _validate_stored_key_request(self, certificate_meta):"},{"line_number":488,"context_line":"        \"\"\"Validate stored-key cert request.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_d568b389","line":485,"updated":"2015-04-08 15:26:18.000000000","message":"why is there commented code here? if you are to remove this then it should just be removed, it can later be fetched from the git history.","commit_id":"d7494d2181e563f781b849ff5eadd7bfb6a0f03e"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"3ba6b11a5d7a4a75528af241294da504f6d8a331","unresolved":false,"context_lines":[{"line_number":482,"context_line":""},{"line_number":483,"context_line":"        # request_data \u003d self._get_required_metadata_value("},{"line_number":484,"context_line":"        #     certificate_meta, \"request_data\")"},{"line_number":485,"context_line":"        # self._validate_full_cmc_data(request_data)"},{"line_number":486,"context_line":""},{"line_number":487,"context_line":"    def _validate_stored_key_request(self, certificate_meta):"},{"line_number":488,"context_line":"        \"\"\"Validate stored-key cert request.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_ff85c9ac","line":485,"in_reply_to":"9aa53dc9_d568b389","updated":"2015-04-08 19:25:07.000000000","message":"+1 with Os\u0027s comment.","commit_id":"d7494d2181e563f781b849ff5eadd7bfb6a0f03e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"79e5d1ea8de5c6abe68d12cd4ed163e52afdad60","unresolved":false,"context_lines":[{"line_number":482,"context_line":""},{"line_number":483,"context_line":"        # request_data \u003d self._get_required_metadata_value("},{"line_number":484,"context_line":"        #     certificate_meta, \"request_data\")"},{"line_number":485,"context_line":"        # self._validate_full_cmc_data(request_data)"},{"line_number":486,"context_line":""},{"line_number":487,"context_line":"    def _validate_stored_key_request(self, certificate_meta):"},{"line_number":488,"context_line":"        \"\"\"Validate stored-key cert request.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_71be8dd5","line":485,"in_reply_to":"9aa53dc9_ff85c9ac","updated":"2015-04-08 20:38:38.000000000","message":"Done","commit_id":"d7494d2181e563f781b849ff5eadd7bfb6a0f03e"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"3ba6b11a5d7a4a75528af241294da504f6d8a331","unresolved":false,"context_lines":[{"line_number":551,"context_line":"    def _validate_extensions_data(self, extensions):"},{"line_number":552,"context_line":"        \"\"\"Confirm that the extensions data is valid."},{"line_number":553,"context_line":""},{"line_number":554,"context_line":"        :param extensions: base 64 encoded ASN.1 string of exception data"},{"line_number":555,"context_line":"        :raises: ExtensionsNotSupported"},{"line_number":556,"context_line":"        \"\"\""},{"line_number":557,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_df9445e3","line":554,"updated":"2015-04-08 19:25:07.000000000","message":"/exception/extension/","commit_id":"d7494d2181e563f781b849ff5eadd7bfb6a0f03e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"79e5d1ea8de5c6abe68d12cd4ed163e52afdad60","unresolved":false,"context_lines":[{"line_number":551,"context_line":"    def _validate_extensions_data(self, extensions):"},{"line_number":552,"context_line":"        \"\"\"Confirm that the extensions data is valid."},{"line_number":553,"context_line":""},{"line_number":554,"context_line":"        :param extensions: base 64 encoded ASN.1 string of exception data"},{"line_number":555,"context_line":"        :raises: ExtensionsNotSupported"},{"line_number":556,"context_line":"        \"\"\""},{"line_number":557,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_91a231ad","line":554,"in_reply_to":"9aa53dc9_df9445e3","updated":"2015-04-08 20:38:38.000000000","message":"Done","commit_id":"d7494d2181e563f781b849ff5eadd7bfb6a0f03e"}],"barbican/plugin/kmip_secret_store.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"6db6d84fe3f2fce4bfa8d43dc0d0d887ede7e010","unresolved":false,"context_lines":[{"line_number":393,"context_line":"                if (key_value_type \u003d\u003d kmip_objects.KeyMaterialStruct or"},{"line_number":394,"context_line":"                        key_value_type \u003d\u003d kmip_objects.KeyMaterial):"},{"line_number":395,"context_line":"                    secret_value \u003d base64.encodestring("},{"line_number":396,"context_line":"                        secret_block.key_value.key_material.value).rstrip(\u0027\\n\u0027)"},{"line_number":397,"context_line":"                else:"},{"line_number":398,"context_line":"                    msg \u003d u._("},{"line_number":399,"context_line":"                        \"Unknown key value type received from KMIP \""}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_18ebd979","line":396,"updated":"2015-04-09 05:05:35.000000000","message":"Oh boy, that looks scary. I\u0027ll wait until Douglas completes his analysis of all this...","commit_id":"88ce2c231bf14e66968fd984b848094faa741bba"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"da8188c71aa45718c5dcff9a7fda7ca51676f77d","unresolved":false,"context_lines":[{"line_number":393,"context_line":"                if (key_value_type \u003d\u003d kmip_objects.KeyMaterialStruct or"},{"line_number":394,"context_line":"                        key_value_type \u003d\u003d kmip_objects.KeyMaterial):"},{"line_number":395,"context_line":"                    secret_value \u003d base64.encodestring("},{"line_number":396,"context_line":"                        secret_block.key_value.key_material.value).rstrip(\u0027\\n\u0027)"},{"line_number":397,"context_line":"                else:"},{"line_number":398,"context_line":"                    msg \u003d u._("},{"line_number":399,"context_line":"                        \"Unknown key value type received from KMIP \""}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_f63274f1","line":396,"in_reply_to":"9aa53dc9_18ebd979","updated":"2015-04-09 14:07:51.000000000","message":"Its not scary at all.  The problem is that b64encode/b64decode removes newlines.  encodestring/decodestring does not - but encodestring will always append an extra \u0027\\n\u0027 at the end.  The rstrip() immediately removes it.","commit_id":"88ce2c231bf14e66968fd984b848094faa741bba"}],"barbican/plugin/resources.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"6db6d84fe3f2fce4bfa8d43dc0d0d887ede7e010","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"def get_secret(requesting_content_type, secret_model, project_model,"},{"line_number":126,"context_line":"               twsk\u003dNone, transport_key\u003dNone, pem_needed\u003dFalse):"},{"line_number":127,"context_line":"    tr.analyze_before_decryption(requesting_content_type)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    secret_metadata \u003d _get_secret_meta(secret_model)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_789785ec","line":126,"updated":"2015-04-09 05:05:35.000000000","message":"Yeah, more of the same oddness around formats and content types...we really need to finalize all of that.","commit_id":"88ce2c231bf14e66968fd984b848094faa741bba"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"da8188c71aa45718c5dcff9a7fda7ca51676f77d","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"def get_secret(requesting_content_type, secret_model, project_model,"},{"line_number":126,"context_line":"               twsk\u003dNone, transport_key\u003dNone, pem_needed\u003dFalse):"},{"line_number":127,"context_line":"    tr.analyze_before_decryption(requesting_content_type)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    secret_metadata \u003d _get_secret_meta(secret_model)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_f66034d1","line":126,"in_reply_to":"9aa53dc9_789785ec","updated":"2015-04-09 14:07:51.000000000","message":"agreed.  That said, I believe that eventually we will add the ability for folks to specify the format of the returned secrets.  This is a step in that direction.","commit_id":"88ce2c231bf14e66968fd984b848094faa741bba"}],"barbican/plugin/util/translations.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"3ba6b11a5d7a4a75528af241294da504f6d8a331","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    returned from the SecretStore is the unencrypted parameter. This"},{"line_number":97,"context_line":"    \u0027denormalizes\u0027 the data back to its binary format."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    For the stored key case, we need to return PEM to support passphrases."},{"line_number":100,"context_line":"    In this case, pem_needed will be set to True, and a PEM object will be"},{"line_number":101,"context_line":"    returned"},{"line_number":102,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_1f274dcb","line":99,"updated":"2015-04-08 19:25:07.000000000","message":"What does this mean? Why does it have to be in PEM format?","commit_id":"d7494d2181e563f781b849ff5eadd7bfb6a0f03e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"79e5d1ea8de5c6abe68d12cd4ed163e52afdad60","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    returned from the SecretStore is the unencrypted parameter. This"},{"line_number":97,"context_line":"    \u0027denormalizes\u0027 the data back to its binary format."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    For the stored key case, we need to return PEM to support passphrases."},{"line_number":100,"context_line":"    In this case, pem_needed will be set to True, and a PEM object will be"},{"line_number":101,"context_line":"    returned"},{"line_number":102,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_312a452d","line":99,"in_reply_to":"9aa53dc9_1f274dcb","updated":"2015-04-08 20:38:38.000000000","message":"answered in irc --- this is the case where we generate a csr from a key already stored in barbican.  needs to be pem to support the passphrase encrypted key case.","commit_id":"d7494d2181e563f781b849ff5eadd7bfb6a0f03e"}],"barbican/tasks/certificate_resources.py":[{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"3c6edcd3aa031faf62ac674d8260d690254d368b","unresolved":false,"context_lines":[{"line_number":277,"context_line":"def _generate_csr(order_model, project_model):"},{"line_number":278,"context_line":"    \"\"\"Generate a CSR from the public key."},{"line_number":279,"context_line":""},{"line_number":280,"context_line":"    :param: order_model - order for the request"},{"line_number":281,"context_line":"    :return: CSR (certificate signing request) in PEM format"},{"line_number":282,"context_line":"    :raise: :class:`StoredKeyPrivateKeyNotFound` if private key not found"},{"line_number":283,"context_line":"            :class:`StoredKeyContainerNotFound` if container not found"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa041b7_f464404a","line":280,"updated":"2015-04-01 15:09:28.000000000","message":":param: needs to be added here for new project model","commit_id":"8b581caa6e3fe79333301e89debdb415f5f06883"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"bf7fb3df2c539c21e144ee058be5204b94b9e82a","unresolved":false,"context_lines":[{"line_number":324,"context_line":"    pkey \u003d crypto.load_privatekey("},{"line_number":325,"context_line":"        crypto.FILETYPE_PEM,"},{"line_number":326,"context_line":"        private_key,"},{"line_number":327,"context_line":"        str(passphrase)"},{"line_number":328,"context_line":"    )"},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"    subject_name \u003d order_model.meta.get(\u0027subject_dn\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_35791fc9","line":327,"updated":"2015-04-08 15:26:18.000000000","message":"why are you converting to string? and, wouldn\u0027t it be a better idea to use six for this kind of things?","commit_id":"d7494d2181e563f781b849ff5eadd7bfb6a0f03e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"79e5d1ea8de5c6abe68d12cd4ed163e52afdad60","unresolved":false,"context_lines":[{"line_number":324,"context_line":"    pkey \u003d crypto.load_privatekey("},{"line_number":325,"context_line":"        crypto.FILETYPE_PEM,"},{"line_number":326,"context_line":"        private_key,"},{"line_number":327,"context_line":"        str(passphrase)"},{"line_number":328,"context_line":"    )"},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"    subject_name \u003d order_model.meta.get(\u0027subject_dn\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_9190f144","line":327,"in_reply_to":"9aa53dc9_35791fc9","updated":"2015-04-08 20:38:38.000000000","message":"crypto.loadkey pukes otherwise.\n\nHopefully, this will all get rewritten (and be better) when we switch to cryptography.  They\u0027re not ready yet though.","commit_id":"d7494d2181e563f781b849ff5eadd7bfb6a0f03e"}],"barbican/tests/utils.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"af814b2b05c3142c2226b62cd778d08e12739885","unresolved":false,"context_lines":[{"line_number":530,"context_line":""},{"line_number":531,"context_line":""},{"line_number":532,"context_line":"def is_public_key_valid(expected, observed):"},{"line_number":533,"context_line":"    # TODO(alee) fill in the relevant test here"},{"line_number":534,"context_line":"    return True"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_3a3fbfd7","line":533,"updated":"2015-04-08 19:49:32.000000000","message":"Really, there is not similar to is_private_key_valid?","commit_id":"d7494d2181e563f781b849ff5eadd7bfb6a0f03e"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"79e5d1ea8de5c6abe68d12cd4ed163e52afdad60","unresolved":false,"context_lines":[{"line_number":530,"context_line":""},{"line_number":531,"context_line":""},{"line_number":532,"context_line":"def is_public_key_valid(expected, observed):"},{"line_number":533,"context_line":"    # TODO(alee) fill in the relevant test here"},{"line_number":534,"context_line":"    return True"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_f1f5fdca","line":533,"in_reply_to":"9aa53dc9_3a3fbfd7","updated":"2015-04-08 20:38:38.000000000","message":"unfortunately not --- but maybe when we switch to cryptography, this will be seamless.","commit_id":"d7494d2181e563f781b849ff5eadd7bfb6a0f03e"}]}
