)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"9fe1f4ce997708ee2cad6ee5e612ea91f75aac23","unresolved":false,"context_lines":[{"line_number":12,"context_line":"defined."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"The Secrets API has been updated to allow a secret type to be specified when"},{"line_number":15,"context_line":"storing a secret. The Orders API has now dropped the payload_conent_encoding"},{"line_number":16,"context_line":"parameter because it is no longer relevant."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Co-authored-by: Kaitlin Farr \u003ckaitlin.farr@jhuapl.edu\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"ba7be1f8_1e969d4c","line":15,"updated":"2015-03-04 18:29:00.000000000","message":"typo: payload_conent_encoding -\u003e payload_content_encoding (\u0027t\u0027 in content)","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"c1cb776d6bb0c69d3e794ab2ce3353906917a676","unresolved":false,"context_lines":[{"line_number":16,"context_line":"parameter because it is no longer relevant."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Co-authored-by: Kaitlin Farr \u003ckaitlin.farr@jhuapl.edu\u003e"},{"line_number":19,"context_line":"Change-Id: I5e91c16d0031b3b4791e9dcee4aa48fcc821cf66"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"ba7be1f8_fe0e298b","line":19,"updated":"2015-03-04 19:31:09.000000000","message":"add\n\"Implements: blueprint content-type\"","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"deca1eb69d62f4a609d843dfb226b5d1d5d2352a","unresolved":false,"context_lines":[{"line_number":12,"context_line":"encoding that is defined."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"The Secrets API has been updated to allow a secret type to be"},{"line_number":15,"context_line":"specified when storing a secret. The Orders API has now dropped the"},{"line_number":16,"context_line":"payload_content_encoding parameter because it is no longer relevant."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"store_crypto is now storing public and private keys in DER format"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9a80dd14_ff26f114","line":15,"updated":"2015-03-13 17:22:19.000000000","message":"I assume that you aren\u0027t referring to the public REST API by this comment. If so, that should be explicit so there isn\u0027t any confusion.","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6c8ad7cb17577c18c33b0cdf76e52a2eab5de3bf","unresolved":false,"context_lines":[{"line_number":12,"context_line":"encoding that is defined."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"The Secrets API has been updated to allow a secret type to be"},{"line_number":15,"context_line":"specified when storing a secret. The Orders API has now dropped the"},{"line_number":16,"context_line":"payload_content_encoding parameter because it is no longer relevant."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"store_crypto is now storing public and private keys in DER format"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9a80dd14_520b5d7c","line":15,"in_reply_to":"9a80dd14_ff26f114","updated":"2015-03-14 13:57:00.000000000","message":"I am referring to the REST API.","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"deca1eb69d62f4a609d843dfb226b5d1d5d2352a","unresolved":false,"context_lines":[{"line_number":15,"context_line":"specified when storing a secret. The Orders API has now dropped the"},{"line_number":16,"context_line":"payload_content_encoding parameter because it is no longer relevant."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"store_crypto is now storing public and private keys in DER format"},{"line_number":19,"context_line":"using the simple_crypto plugin. This makes it consistant with the rest"},{"line_number":20,"context_line":"of the keys that are stored in binary format. It also makes the"},{"line_number":21,"context_line":"store_crypto get_secret call easier because it can assume that it"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9a80dd14_5f48ddb2","line":18,"updated":"2015-03-13 17:22:19.000000000","message":"nit: Please expand acronyms for the benefit of those who aren\u0027t familiar with all the various encoding schemes.","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6c8ad7cb17577c18c33b0cdf76e52a2eab5de3bf","unresolved":false,"context_lines":[{"line_number":15,"context_line":"specified when storing a secret. The Orders API has now dropped the"},{"line_number":16,"context_line":"payload_content_encoding parameter because it is no longer relevant."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"store_crypto is now storing public and private keys in DER format"},{"line_number":19,"context_line":"using the simple_crypto plugin. This makes it consistant with the rest"},{"line_number":20,"context_line":"of the keys that are stored in binary format. It also makes the"},{"line_number":21,"context_line":"store_crypto get_secret call easier because it can assume that it"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9a80dd14_720ea18d","line":18,"in_reply_to":"9a80dd14_5f48ddb2","updated":"2015-03-14 13:57:00.000000000","message":"Will do.","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"}],"barbican/common/validators.py":[{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"9fe1f4ce997708ee2cad6ee5e612ea91f75aac23","unresolved":false,"context_lines":[{"line_number":132,"context_line":"                \"payload\": {\"type\": \"string\"},"},{"line_number":133,"context_line":"                \"type\": {"},{"line_number":134,"context_line":"                    \"type\": \"string\","},{"line_number":135,"context_line":"                    \"maxLength\": 80,"},{"line_number":136,"context_line":"                    \"enum\": [secret_store.SecretType.SYMMETRIC,"},{"line_number":137,"context_line":"                             secret_store.SecretType.PASSPHRASE,"},{"line_number":138,"context_line":"                             secret_store.SecretType.PRIVATE,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_5ed8151e","line":135,"updated":"2015-03-04 18:29:00.000000000","message":"80 seems longer than necessary given the enum values.","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"4db46463049b316c8256e02bf1633a3504bf981d","unresolved":false,"context_lines":[{"line_number":252,"context_line":"            u._(\"payload_content_encoding is not one of {supported}\").format("},{"line_number":253,"context_line":"                supported\u003dmime_types.get_supported_encodings(content_type)),"},{"line_number":254,"context_line":"            \"payload_content_encoding\")"},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"    def _extract_payload(self, json_data):"},{"line_number":257,"context_line":"        \"\"\"Extracts and returns the payload from the JSON data."},{"line_number":258,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_66dfd269","line":255,"updated":"2015-03-03 22:22:22.000000000","message":"Add a check to verify that if type is private, public, or certificate that it\u0027s encoding must be base64 because those types must be in PEM format.\n\nAdd code in translations.py to check if pem_encoded.","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"deca1eb69d62f4a609d843dfb226b5d1d5d2352a","unresolved":false,"context_lines":[{"line_number":134,"context_line":"                \"payload\": {\"type\": \"string\"},"},{"line_number":135,"context_line":"                \"secret_type\": {"},{"line_number":136,"context_line":"                    \"type\": \"string\","},{"line_number":137,"context_line":"                    \"maxLength\": 80,"},{"line_number":138,"context_line":"                    \"enum\": [secret_store.SecretType.SYMMETRIC,"},{"line_number":139,"context_line":"                             secret_store.SecretType.PASSPHRASE,"},{"line_number":140,"context_line":"                             secret_store.SecretType.PRIVATE,"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_1f002533","line":137,"updated":"2015-03-13 17:22:19.000000000","message":"Why is the max length 80? I cannot see why that length is necessary so a code comment seems appropriate (assuming that the current length is correct).","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"920c8122b0c4d44d68a8817d0195e84176efaefd","unresolved":false,"context_lines":[{"line_number":134,"context_line":"                \"payload\": {\"type\": \"string\"},"},{"line_number":135,"context_line":"                \"secret_type\": {"},{"line_number":136,"context_line":"                    \"type\": \"string\","},{"line_number":137,"context_line":"                    \"maxLength\": 80,"},{"line_number":138,"context_line":"                    \"enum\": [secret_store.SecretType.SYMMETRIC,"},{"line_number":139,"context_line":"                             secret_store.SecretType.PASSPHRASE,"},{"line_number":140,"context_line":"                             secret_store.SecretType.PRIVATE,"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_85c75e44","line":137,"in_reply_to":"9a80dd14_1f002533","updated":"2015-03-13 21:27:54.000000000","message":"I needed something that would work for all of the secret types. I did not want to take max length because adding new type that is longer would cause error here. Therefore I decided to pick a length that would work for all secret types and leave some room for expansion.\n\nI chose 80 because that is what I usually choose for short strings. I choose it because 80 characters is common max line length. I think that makes it easier to read in editor because at most one line.\n\nI\u0027m up for suggestions.","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"66e8d3f26072b9c5e2b85823af65496e2ea5be2c","unresolved":false,"context_lines":[{"line_number":134,"context_line":"                \"payload\": {\"type\": \"string\"},"},{"line_number":135,"context_line":"                \"secret_type\": {"},{"line_number":136,"context_line":"                    \"type\": \"string\","},{"line_number":137,"context_line":"                    \"maxLength\": 80,"},{"line_number":138,"context_line":"                    \"enum\": [secret_store.SecretType.SYMMETRIC,"},{"line_number":139,"context_line":"                             secret_store.SecretType.PASSPHRASE,"},{"line_number":140,"context_line":"                             secret_store.SecretType.PRIVATE,"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_99b5d0ee","line":137,"in_reply_to":"9a80dd14_85c75e44","updated":"2015-03-16 15:23:33.000000000","message":"Okay. Thanks for the explanation.","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"deca1eb69d62f4a609d843dfb226b5d1d5d2352a","unresolved":false,"context_lines":[{"line_number":182,"context_line":"                                  \"payload\")"},{"line_number":183,"context_line":"            self._validate_payload_by_content_encoding(content_encoding,"},{"line_number":184,"context_line":"                                                       payload, schema_name)"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"            json_data[\u0027payload\u0027] \u003d payload"},{"line_number":187,"context_line":"        elif \u0027payload_content_type\u0027 in json_data:"},{"line_number":188,"context_line":"            self._assert_validity(parent_schema is not None, schema_name,"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_9f9b3517","line":185,"updated":"2015-03-13 17:22:19.000000000","message":"nit: blank line inserted","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6c8ad7cb17577c18c33b0cdf76e52a2eab5de3bf","unresolved":false,"context_lines":[{"line_number":182,"context_line":"                                  \"payload\")"},{"line_number":183,"context_line":"            self._validate_payload_by_content_encoding(content_encoding,"},{"line_number":184,"context_line":"                                                       payload, schema_name)"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"            json_data[\u0027payload\u0027] \u003d payload"},{"line_number":187,"context_line":"        elif \u0027payload_content_type\u0027 in json_data:"},{"line_number":188,"context_line":"            self._assert_validity(parent_schema is not None, schema_name,"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_b223b903","line":185,"in_reply_to":"9a80dd14_9f9b3517","updated":"2015-03-14 13:57:00.000000000","message":"Done","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"}],"barbican/plugin/crypto/simple_crypto.py":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"fc896599104d4189dd5785e6687d8192bb187a8a","unresolved":false,"context_lines":[{"line_number":170,"context_line":"    def _wrap_key(self, public_key, private_key,"},{"line_number":171,"context_line":"                  passphrase):"},{"line_number":172,"context_line":"        pkcs \u003d 8"},{"line_number":173,"context_line":"        key_wrap_format \u003d \u0027DER\u0027"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"        private_key \u003d private_key.exportKey(key_wrap_format, passphrase, pkcs)"},{"line_number":176,"context_line":"        public_key \u003d public_key.exportKey(key_wrap_format)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_5c0e14e6","line":173,"updated":"2015-03-14 07:08:29.000000000","message":"I\u0027m a little confused here.  When an asymmetric key is stored in the plugin, it is stored as base 64 with PEM headers.\n\nThis is code for wrapping a key generated in the plugin.  Seems to me that a generated key should be of the same format, right?  So why is this change necessary?","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6c8ad7cb17577c18c33b0cdf76e52a2eab5de3bf","unresolved":false,"context_lines":[{"line_number":170,"context_line":"    def _wrap_key(self, public_key, private_key,"},{"line_number":171,"context_line":"                  passphrase):"},{"line_number":172,"context_line":"        pkcs \u003d 8"},{"line_number":173,"context_line":"        key_wrap_format \u003d \u0027DER\u0027"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"        private_key \u003d private_key.exportKey(key_wrap_format, passphrase, pkcs)"},{"line_number":176,"context_line":"        public_key \u003d public_key.exportKey(key_wrap_format)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_d24cadca","line":173,"in_reply_to":"9a80dd14_5c0e14e6","updated":"2015-03-14 13:57:00.000000000","message":"The store_crypto plugin stores everything in binary format. This was the only inconsistent instance. This makes the logic consistent in store_crypto. Now every secret is expected to be stored in binary format and every secret to or from store_crypto is in base64 format. This was a bug.","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"fc896599104d4189dd5785e6687d8192bb187a8a","unresolved":false,"context_lines":[{"line_number":182,"context_line":"        pub_seq \u003d asn1.DerSequence()"},{"line_number":183,"context_line":"        pub_seq[:] \u003d [0, public_key.p, public_key.q,"},{"line_number":184,"context_line":"                      public_key.g, public_key.y]"},{"line_number":185,"context_line":"        public_key \u003d pub_seq.encode()"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"        prv_seq \u003d asn1.DerSequence()"},{"line_number":188,"context_line":"        prv_seq[:] \u003d [0, private_key.p, private_key.q,"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_9cfb2cc0","line":185,"updated":"2015-03-14 07:08:29.000000000","message":"ditto as above","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"fc896599104d4189dd5785e6687d8192bb187a8a","unresolved":false,"context_lines":[{"line_number":187,"context_line":"        prv_seq \u003d asn1.DerSequence()"},{"line_number":188,"context_line":"        prv_seq[:] \u003d [0, private_key.p, private_key.q,"},{"line_number":189,"context_line":"                      private_key.g, private_key.y, private_key.x]"},{"line_number":190,"context_line":"        private_key \u003d prv_seq.encode()"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"        return public_key, private_key"},{"line_number":193,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_bcf630d5","line":190,"updated":"2015-03-14 07:08:29.000000000","message":"ditto as above","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"}],"barbican/plugin/interface/secret_store.py":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"f190da3cf862d2dc9d3d558a663d1b8b4972e33a","unresolved":false,"context_lines":[{"line_number":302,"context_line":"               secret has been encrypted using a transport key.  The transport"},{"line_number":303,"context_line":"               key is a base64 encoded x509 transport certificate."},{"line_number":304,"context_line":"        \"\"\""},{"line_number":305,"context_line":"        self.type \u003d type if type else SecretType.OPAQUE"},{"line_number":306,"context_line":"        self.secret \u003d secret"},{"line_number":307,"context_line":"        self.key_spec \u003d key_spec"},{"line_number":308,"context_line":"        self.content_type \u003d content_type"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_8f634019","line":305,"updated":"2015-03-02 18:59:24.000000000","message":"Do you think it would be valuable to change this to secret_type?  \n\n1. Because it\u0027s not using a python built-in function name\n\n2. To further clarify the difference between secret type and content type (is content type still going to be removed eventually?)\n\n3. In secret_model it\u0027s referenced as secret_type","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"4db46463049b316c8256e02bf1633a3504bf981d","unresolved":false,"context_lines":[{"line_number":302,"context_line":"               secret has been encrypted using a transport key.  The transport"},{"line_number":303,"context_line":"               key is a base64 encoded x509 transport certificate."},{"line_number":304,"context_line":"        \"\"\""},{"line_number":305,"context_line":"        self.type \u003d type if type else SecretType.OPAQUE"},{"line_number":306,"context_line":"        self.secret \u003d secret"},{"line_number":307,"context_line":"        self.key_spec \u003d key_spec"},{"line_number":308,"context_line":"        self.content_type \u003d content_type"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_437e406b","line":305,"in_reply_to":"ba7be1f8_8f634019","updated":"2015-03-03 22:22:22.000000000","message":"I do think it would be valuable, but I would prefer to change it in a different CR because type was what was there before.","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":302,"context_line":"               secret has been encrypted using a transport key.  The transport"},{"line_number":303,"context_line":"               key is a base64 encoded x509 transport certificate."},{"line_number":304,"context_line":"        \"\"\""},{"line_number":305,"context_line":"        self.type \u003d type if type else SecretType.OPAQUE"},{"line_number":306,"context_line":"        self.secret \u003d secret"},{"line_number":307,"context_line":"        self.key_spec \u003d key_spec"},{"line_number":308,"context_line":"        self.content_type \u003d content_type"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_5924a60c","line":305,"updated":"2015-03-12 22:43:47.000000000","message":"Ternary operation seems awkward here.  How about this instead:\n\nself.type \u003d type or SecretType.OPAQUE","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"0ef171c688887fa31b1edf212b52b35378e42fee","unresolved":false,"context_lines":[{"line_number":302,"context_line":"               secret has been encrypted using a transport key.  The transport"},{"line_number":303,"context_line":"               key is a base64 encoded x509 transport certificate."},{"line_number":304,"context_line":"        \"\"\""},{"line_number":305,"context_line":"        self.type \u003d type if type else SecretType.OPAQUE"},{"line_number":306,"context_line":"        self.secret \u003d secret"},{"line_number":307,"context_line":"        self.key_spec \u003d key_spec"},{"line_number":308,"context_line":"        self.content_type \u003d content_type"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_429658f1","line":305,"in_reply_to":"9a80dd14_5924a60c","updated":"2015-03-13 14:29:18.000000000","message":"Sounds good to me. I did not know this about Python. Thanks for the tip.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"fc896599104d4189dd5785e6687d8192bb187a8a","unresolved":false,"context_lines":[{"line_number":285,"context_line":"    \"\"\""},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"    # TODO(john-wood-w) Remove \u0027content_type\u0027 once secret normalization work is"},{"line_number":288,"context_line":"    #  completed."},{"line_number":289,"context_line":"    def __init__(self, type, secret, key_spec, content_type,"},{"line_number":290,"context_line":"                 transport_key\u003dNone):"},{"line_number":291,"context_line":"        \"\"\"Creates a new SecretDTO."}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_e262d03c","line":288,"updated":"2015-03-14 07:08:29.000000000","message":"Is this still valid?  Do we need to remove the content-type parameter from the SecretDTO?  Or is this something that will happen in a subsequent CR?","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6c8ad7cb17577c18c33b0cdf76e52a2eab5de3bf","unresolved":false,"context_lines":[{"line_number":285,"context_line":"    \"\"\""},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"    # TODO(john-wood-w) Remove \u0027content_type\u0027 once secret normalization work is"},{"line_number":288,"context_line":"    #  completed."},{"line_number":289,"context_line":"    def __init__(self, type, secret, key_spec, content_type,"},{"line_number":290,"context_line":"                 transport_key\u003dNone):"},{"line_number":291,"context_line":"        \"\"\"Creates a new SecretDTO."}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_b2d819f0","line":288,"in_reply_to":"9a80dd14_e262d03c","updated":"2015-03-14 13:57:00.000000000","message":"I would have to look more to see if content_type is still needed. I would not think so. I remembered looking at the code and thinking that it was never used. I never took the time to confirm that.\n\nIn either case I would prefer to do this in a separate CR. Thanks for pointing this out! I overlooked this.","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"fc896599104d4189dd5785e6687d8192bb187a8a","unresolved":false,"context_lines":[{"line_number":399,"context_line":"        The secret_type parameter may be useful for secret stores to know the"},{"line_number":400,"context_line":"        expected format of the secret. For instance if the type is"},{"line_number":401,"context_line":"        SecretDTO.PRIVATE then a PCKS8 structure is returned. This way secret"},{"line_number":402,"context_line":"        stores do not need to manage the secret type on their own."},{"line_number":403,"context_line":""},{"line_number":404,"context_line":"        :param secret_type: secret type"},{"line_number":405,"context_line":"        :param secret_metadata: secret metadata"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_02f44459","line":402,"updated":"2015-03-14 07:08:29.000000000","message":"nit: PKCS8","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6c8ad7cb17577c18c33b0cdf76e52a2eab5de3bf","unresolved":false,"context_lines":[{"line_number":399,"context_line":"        The secret_type parameter may be useful for secret stores to know the"},{"line_number":400,"context_line":"        expected format of the secret. For instance if the type is"},{"line_number":401,"context_line":"        SecretDTO.PRIVATE then a PCKS8 structure is returned. This way secret"},{"line_number":402,"context_line":"        stores do not need to manage the secret type on their own."},{"line_number":403,"context_line":""},{"line_number":404,"context_line":"        :param secret_type: secret type"},{"line_number":405,"context_line":"        :param secret_metadata: secret metadata"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_d2e3cda1","line":402,"in_reply_to":"9a80dd14_02f44459","updated":"2015-03-14 13:57:00.000000000","message":"Done","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"}],"barbican/plugin/resources.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"4db46463049b316c8256e02bf1633a3504bf981d","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    # Normalize inputs prior to storage."},{"line_number":104,"context_line":"    if (secret_model.secret_type \u003d\u003d \u0027opaque\u0027"},{"line_number":105,"context_line":"       or secret_model.secret_type \u003d\u003d \u0027passphrase\u0027):"},{"line_number":106,"context_line":"        unencrypted, content_type \u003d tr.normalize_before_encryption("},{"line_number":107,"context_line":"            unencrypted_raw, content_type_raw, content_encoding,"},{"line_number":108,"context_line":"            enforce_text_only\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_26d07ac8","line":105,"updated":"2015-03-03 22:22:22.000000000","message":"I think this should include symmetric as well because we should allow symmetric keys to be sent in binary format. In that case we need to normalize it to base64.","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"9fe1f4ce997708ee2cad6ee5e612ea91f75aac23","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    # Normalize inputs prior to storage."},{"line_number":104,"context_line":"    if (secret_model.secret_type \u003d\u003d \u0027opaque\u0027"},{"line_number":105,"context_line":"       or secret_model.secret_type \u003d\u003d \u0027passphrase\u0027):"},{"line_number":106,"context_line":"        unencrypted, content_type \u003d tr.normalize_before_encryption("},{"line_number":107,"context_line":"            unencrypted_raw, content_type_raw, content_encoding,"},{"line_number":108,"context_line":"            enforce_text_only\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_8ccc8c37","line":105,"in_reply_to":"ba7be1f8_26d07ac8","updated":"2015-03-04 18:29:00.000000000","message":"I find this if block confusing. Please add a comment regarding *why* certain types should not be normalized.","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"9fe1f4ce997708ee2cad6ee5e612ea91f75aac23","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        unencrypted, content_type \u003d tr.normalize_before_encryption("},{"line_number":107,"context_line":"            unencrypted_raw, content_type_raw, content_encoding,"},{"line_number":108,"context_line":"            enforce_text_only\u003dTrue)"},{"line_number":109,"context_line":"    else:"},{"line_number":110,"context_line":"        unencrypted \u003d unencrypted_raw"},{"line_number":111,"context_line":"        content_type \u003d tr.normalize_content_type(content_type_raw)"},{"line_number":112,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_ec88a8c8","line":109,"updated":"2015-03-04 18:29:00.000000000","message":"I suggest making this an \u0027elif\u0027 to specifically identify the types that do not require normalization. A separate \u0027else\u0027 simply asserts false, which provides protection against additions to the enumerated type (but not this code).","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"9fe1f4ce997708ee2cad6ee5e612ea91f75aac23","unresolved":false,"context_lines":[{"line_number":151,"context_line":"        del secret_metadata[\u0027trans_wrapped_session_key\u0027]"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"    # Denormalize the secret."},{"line_number":154,"context_line":"    if secret_model.secret_type \u003d\u003d \u0027opaque\u0027:"},{"line_number":155,"context_line":"        return tr.denormalize_after_decryption(secret_dto.secret,"},{"line_number":156,"context_line":"                                               requesting_content_type)"},{"line_number":157,"context_line":"    else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_0cadfc31","line":154,"updated":"2015-03-04 18:29:00.000000000","message":"Should this statement be consistent with what\u0027s above? If so, then \u0027passphrase\u0027 should also be included.","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"deca1eb69d62f4a609d843dfb226b5d1d5d2352a","unresolved":false,"context_lines":[{"line_number":100,"context_line":"    store_plugin \u003d plugin_manager.get_plugin_store("},{"line_number":101,"context_line":"        key_spec\u003dkey_spec, plugin_name\u003dplugin_name)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    # normalize inputs prior to storage."},{"line_number":104,"context_line":"    unencrypted, content_type \u003d tr.normalize_before_encryption("},{"line_number":105,"context_line":"        unencrypted_raw, content_type_raw, content_encoding,"},{"line_number":106,"context_line":"        secret_model.secret_type, enforce_text_only\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_fa419f39","line":103,"updated":"2015-03-13 17:22:19.000000000","message":"nit: Why lower case the \u0027n\u0027?","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6c8ad7cb17577c18c33b0cdf76e52a2eab5de3bf","unresolved":false,"context_lines":[{"line_number":100,"context_line":"    store_plugin \u003d plugin_manager.get_plugin_store("},{"line_number":101,"context_line":"        key_spec\u003dkey_spec, plugin_name\u003dplugin_name)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    # normalize inputs prior to storage."},{"line_number":104,"context_line":"    unencrypted, content_type \u003d tr.normalize_before_encryption("},{"line_number":105,"context_line":"        unencrypted_raw, content_type_raw, content_encoding,"},{"line_number":106,"context_line":"        secret_model.secret_type, enforce_text_only\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_529efd07","line":103,"in_reply_to":"9a80dd14_a5d9c223","updated":"2015-03-14 13:57:00.000000000","message":"Done","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"920c8122b0c4d44d68a8817d0195e84176efaefd","unresolved":false,"context_lines":[{"line_number":100,"context_line":"    store_plugin \u003d plugin_manager.get_plugin_store("},{"line_number":101,"context_line":"        key_spec\u003dkey_spec, plugin_name\u003dplugin_name)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    # normalize inputs prior to storage."},{"line_number":104,"context_line":"    unencrypted, content_type \u003d tr.normalize_before_encryption("},{"line_number":105,"context_line":"        unencrypted_raw, content_type_raw, content_encoding,"},{"line_number":106,"context_line":"        secret_model.secret_type, enforce_text_only\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_a5d9c223","line":103,"in_reply_to":"9a80dd14_fa419f39","updated":"2015-03-13 21:27:54.000000000","message":"Should have been capitalized.","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"fc896599104d4189dd5785e6687d8192bb187a8a","unresolved":false,"context_lines":[{"line_number":177,"context_line":"    # Create secret model to eventually save metadata to."},{"line_number":178,"context_line":"    spec[\u0027secret_type\u0027] \u003d secret_store.SecretType.SYMMETRIC"},{"line_number":179,"context_line":"    secret_model \u003d models.Secret(spec)"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"    # Generate the secret."},{"line_number":182,"context_line":"    secret_metadata \u003d _generate_symmetric_key("},{"line_number":183,"context_line":"        generate_plugin, key_spec, secret_model, project_model, content_type)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_6598aac0","line":180,"updated":"2015-03-14 07:08:29.000000000","message":"In the method below, you generate the secret model and then set the secret type of the model.  That seems like the right thing to do.\n\nIn this case, you change the spec that is passed in instead.\nAny reason for this?","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6c8ad7cb17577c18c33b0cdf76e52a2eab5de3bf","unresolved":false,"context_lines":[{"line_number":177,"context_line":"    # Create secret model to eventually save metadata to."},{"line_number":178,"context_line":"    spec[\u0027secret_type\u0027] \u003d secret_store.SecretType.SYMMETRIC"},{"line_number":179,"context_line":"    secret_model \u003d models.Secret(spec)"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"    # Generate the secret."},{"line_number":182,"context_line":"    secret_metadata \u003d _generate_symmetric_key("},{"line_number":183,"context_line":"        generate_plugin, key_spec, secret_model, project_model, content_type)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_d2faed41","line":180,"in_reply_to":"9a80dd14_6598aac0","updated":"2015-03-14 13:57:00.000000000","message":"In the asymmetric case I can use the same spec object and then need to update the object. I guess I could have modified the spec for each call.\n\nThat probably does not make sense while writing it. I like the comment and will change it.","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"fc896599104d4189dd5785e6687d8192bb187a8a","unresolved":false,"context_lines":[{"line_number":207,"context_line":"    public_secret_model[\u0027secret_type\u0027] \u003d secret_store.SecretType.PUBLIC"},{"line_number":208,"context_line":"    passphrase_secret_model \u003d (models.Secret(spec)"},{"line_number":209,"context_line":"                               if spec.get(\u0027passphrase\u0027) else None)"},{"line_number":210,"context_line":"    if spec.get(\u0027passphrase\u0027):"},{"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":""}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_c5b7961f","line":210,"updated":"2015-03-14 07:08:29.000000000","message":"the more intuitive statement here is probably:\n\nif passphrase_secret_model:","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6c8ad7cb17577c18c33b0cdf76e52a2eab5de3bf","unresolved":false,"context_lines":[{"line_number":207,"context_line":"    public_secret_model[\u0027secret_type\u0027] \u003d secret_store.SecretType.PUBLIC"},{"line_number":208,"context_line":"    passphrase_secret_model \u003d (models.Secret(spec)"},{"line_number":209,"context_line":"                               if spec.get(\u0027passphrase\u0027) else None)"},{"line_number":210,"context_line":"    if spec.get(\u0027passphrase\u0027):"},{"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":""}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_32f4295a","line":210,"in_reply_to":"9a80dd14_c5b7961f","updated":"2015-03-14 13:57:00.000000000","message":"Done","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"}],"barbican/plugin/util/mime_types.py":[{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":62,"context_line":"CTYPES_TO_ENCODINGS \u003d {\u0027text/plain\u0027: None,"},{"line_number":63,"context_line":"                       \u0027application/octet-stream\u0027: [\u0027base64\u0027, \u0027binary\u0027],"},{"line_number":64,"context_line":"                       \u0027application/pkcs8\u0027: [\u0027base64\u0027, \u0027binary\u0027],"},{"line_number":65,"context_line":"                       \u0027application/pkix-cert\u0027: [\u0027base64\u0027, \u0027binary\u0027],"},{"line_number":66,"context_line":"                       \u0027application/aes\u0027: None}"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_19ea2eac","line":65,"updated":"2015-03-12 22:43:47.000000000","message":"I\u0027m not sure when \"binary\" encoding was introduced, but it seems it\u0027s not necessary here.  I\u0027ve never seen an RFC define a \"binary\" encoding.  If anything, binary implies no encoding, so I would rather just assume binary when no encoding is provided instead of having to explicitly define it.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"0ef171c688887fa31b1edf212b52b35378e42fee","unresolved":false,"context_lines":[{"line_number":62,"context_line":"CTYPES_TO_ENCODINGS \u003d {\u0027text/plain\u0027: None,"},{"line_number":63,"context_line":"                       \u0027application/octet-stream\u0027: [\u0027base64\u0027, \u0027binary\u0027],"},{"line_number":64,"context_line":"                       \u0027application/pkcs8\u0027: [\u0027base64\u0027, \u0027binary\u0027],"},{"line_number":65,"context_line":"                       \u0027application/pkix-cert\u0027: [\u0027base64\u0027, \u0027binary\u0027],"},{"line_number":66,"context_line":"                       \u0027application/aes\u0027: None}"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_8d1de164","line":65,"in_reply_to":"9a80dd14_19ea2eac","updated":"2015-03-13 14:29:18.000000000","message":"Can we do that in a follow-up CR? I was simply following the pattern. I\u0027m not sure how quick of a fix this would be. I can look into it more and get back to you.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"}],"barbican/plugin/util/translations.py":[{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"9fe1f4ce997708ee2cad6ee5e612ea91f75aac23","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    This parses the PEM string and returns the PEM content, header, and footer."},{"line_number":97,"context_line":"    The content is the base64 encoded bytes without the header and footer. This"},{"line_number":98,"context_line":"    is returned as a list. The order of the list is content, header, footer."},{"line_number":99,"context_line":"    \"\"\""},{"line_number":100,"context_line":"    delim \u003d \"-----\""},{"line_number":101,"context_line":"    splits \u003d pem.split(delim)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_87046716","line":98,"updated":"2015-03-04 18:29:00.000000000","message":"Why return the content before the header?","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"def normalize_before_encryption(unencrypted, content_type, content_encoding,"},{"line_number":21,"context_line":"                                secret_type, enforce_text_only\u003dFalse):"},{"line_number":22,"context_line":"    \"\"\"Normalize unencrypted prior to plugin encryption processing.\"\"\""},{"line_number":23,"context_line":"    if not unencrypted:"},{"line_number":24,"context_line":"        raise s.SecretNoPayloadProvidedException()"},{"line_number":25,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_f9f0fafe","line":22,"updated":"2015-03-12 22:43:47.000000000","message":"It would be good to note here that normalization returns the unencrypted data as a base64 encoded UTF-8 string.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"0ef171c688887fa31b1edf212b52b35378e42fee","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"def normalize_before_encryption(unencrypted, content_type, content_encoding,"},{"line_number":21,"context_line":"                                secret_type, enforce_text_only\u003dFalse):"},{"line_number":22,"context_line":"    \"\"\"Normalize unencrypted prior to plugin encryption processing.\"\"\""},{"line_number":23,"context_line":"    if not unencrypted:"},{"line_number":24,"context_line":"        raise s.SecretNoPayloadProvidedException()"},{"line_number":25,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_6d642db9","line":22,"in_reply_to":"9a80dd14_f9f0fafe","updated":"2015-03-13 14:29:18.000000000","message":"Good catch. I\u0027ll update this, and I updated the denormalize as well.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"fc896599104d4189dd5785e6687d8192bb187a8a","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    one of private, public, or certificate then the PEM headers are added"},{"line_number":29,"context_line":"    to the Base64 encoding."},{"line_number":30,"context_line":"    \"\"\""},{"line_number":31,"context_line":"    if not unencrypted:"},{"line_number":32,"context_line":"        raise s.SecretNoPayloadProvidedException()"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    # Validate and normalize content-type."}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_2511525d","line":31,"updated":"2015-03-14 07:08:29.000000000","message":"+1 finally some clear description of the normalization we are doing.","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6802,"name":"Joel Coffman","email":"jmc7tp@gmail.com","username":"joel-coffman"},"change_message_id":"deca1eb69d62f4a609d843dfb226b5d1d5d2352a","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":"def normalize_content_type(content_type):"},{"line_number":78,"context_line":"    \"\"\"Normalize the content type and validate that it is supported.\"\"\""},{"line_number":79,"context_line":"    # Validate and normalize content-type."},{"line_number":80,"context_line":"    normalized_mime \u003d mime_types.normalize_content_type(content_type)"},{"line_number":81,"context_line":"    if not mime_types.is_supported(normalized_mime):"},{"line_number":82,"context_line":"        raise s.SecretContentTypeNotSupportedException(content_type)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_1a491331","line":79,"updated":"2015-03-13 17:22:19.000000000","message":"nit: I think you can skip the code comment given the docstring immediately above. :-)","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"920c8122b0c4d44d68a8817d0195e84176efaefd","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":"def normalize_content_type(content_type):"},{"line_number":78,"context_line":"    \"\"\"Normalize the content type and validate that it is supported.\"\"\""},{"line_number":79,"context_line":"    # Validate and normalize content-type."},{"line_number":80,"context_line":"    normalized_mime \u003d mime_types.normalize_content_type(content_type)"},{"line_number":81,"context_line":"    if not mime_types.is_supported(normalized_mime):"},{"line_number":82,"context_line":"        raise s.SecretContentTypeNotSupportedException(content_type)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_2534f248","line":79,"in_reply_to":"9a80dd14_1a491331","updated":"2015-03-13 21:27:54.000000000","message":"Copy and paste from previous location :)","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"6c8ad7cb17577c18c33b0cdf76e52a2eab5de3bf","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":"def normalize_content_type(content_type):"},{"line_number":78,"context_line":"    \"\"\"Normalize the content type and validate that it is supported.\"\"\""},{"line_number":79,"context_line":"    # Validate and normalize content-type."},{"line_number":80,"context_line":"    normalized_mime \u003d mime_types.normalize_content_type(content_type)"},{"line_number":81,"context_line":"    if not mime_types.is_supported(normalized_mime):"},{"line_number":82,"context_line":"        raise s.SecretContentTypeNotSupportedException(content_type)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_72a14145","line":79,"in_reply_to":"9a80dd14_2534f248","updated":"2015-03-14 13:57:00.000000000","message":"Done","commit_id":"c5e819fa9d1729717ab37704ca88c77838160dd6"}],"barbican/tests/common/test_validators.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"4db46463049b316c8256e02bf1633a3504bf981d","unresolved":false,"context_lines":[{"line_number":352,"context_line":""},{"line_number":353,"context_line":"    def test_should_fail_with_private_key_bad_encoding(self):"},{"line_number":354,"context_line":"        request \u003d self._get_private_key_req()"},{"line_number":355,"context_line":"        request[\u0027payload_content_encoding\u0027] \u003d \u0027foo\u0027"},{"line_number":356,"context_line":"        self.assertRaises("},{"line_number":357,"context_line":"            excep.InvalidObject,"},{"line_number":358,"context_line":"            self.validator.validate,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_a61e2ab9","line":355,"updated":"2015-03-03 22:22:22.000000000","message":"Add test or change this to binary type because should only be in PEM format. Do the same for public and certificate.","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"}],"barbican/tests/plugin/util/test_mime_types.py":[{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":220,"context_line":"                                        \u0027base64\u0027]"},{"line_number":221,"context_line":"    })"},{"line_number":222,"context_line":"    def test_content_type_encoding_not_supported(self, content_type, encoding):"},{"line_number":223,"context_line":"        self.assertFalse(mime_types.is_content_type_with_encoding_supported("},{"line_number":224,"context_line":"            content_type,"},{"line_number":225,"context_line":"            encoding))"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_16291d37","line":223,"updated":"2015-03-12 22:43:47.000000000","message":"Is this method only used in a one-step POST?  Because if this method is also used for two-step post, then the binary content-types should be suported without an encoding.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"0ef171c688887fa31b1edf212b52b35378e42fee","unresolved":false,"context_lines":[{"line_number":220,"context_line":"                                        \u0027base64\u0027]"},{"line_number":221,"context_line":"    })"},{"line_number":222,"context_line":"    def test_content_type_encoding_not_supported(self, content_type, encoding):"},{"line_number":223,"context_line":"        self.assertFalse(mime_types.is_content_type_with_encoding_supported("},{"line_number":224,"context_line":"            content_type,"},{"line_number":225,"context_line":"            encoding))"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_6d698df8","line":223,"in_reply_to":"9a80dd14_16291d37","updated":"2015-03-13 14:29:18.000000000","message":"I will have to look into this more.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"}],"barbican/tests/plugin/util/test_translations.py":[{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":80,"context_line":"            \u0027unencrypted\u0027: \u0027stuff\u0027,"},{"line_number":81,"context_line":"            \u0027secret_type\u0027: s.SecretType.OPAQUE,"},{"line_number":82,"context_line":"            \u0027content_type\u0027: \u0027application/octet-stream\u0027,"},{"line_number":83,"context_line":"            \u0027content_encoding\u0027: \u0027binary\u0027,"},{"line_number":84,"context_line":"            \u0027expected\u0027: base64.b64encode(\u0027stuff\u0027)"},{"line_number":85,"context_line":"        },"},{"line_number":86,"context_line":"        \u0027symmetric_base64\u0027: {"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_03c801a7","line":83,"updated":"2015-03-12 22:43:47.000000000","message":"Is content_encoding really needed here?  octet-stream is assumed to be binary unless otherwise specified.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            \u0027unencrypted\u0027: \u0027stuff\u0027,"},{"line_number":95,"context_line":"            \u0027secret_type\u0027: s.SecretType.SYMMETRIC,"},{"line_number":96,"context_line":"            \u0027content_type\u0027: \u0027application/octet-stream\u0027,"},{"line_number":97,"context_line":"            \u0027content_encoding\u0027: \u0027binary\u0027,"},{"line_number":98,"context_line":"            \u0027expected\u0027: base64.b64encode(\u0027stuff\u0027)"},{"line_number":99,"context_line":"        },"},{"line_number":100,"context_line":"        \u0027private_base64\u0027: {"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_033f2188","line":97,"updated":"2015-03-12 22:43:47.000000000","message":"Ditto.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":109,"context_line":"                translations.get_pem_components(utils.get_private_key())[1]),"},{"line_number":110,"context_line":"            \u0027secret_type\u0027: s.SecretType.PRIVATE,"},{"line_number":111,"context_line":"            \u0027content_type\u0027: \u0027application/pkcs8\u0027,"},{"line_number":112,"context_line":"            \u0027content_encoding\u0027: \u0027binary\u0027,"},{"line_number":113,"context_line":"            \u0027expected\u0027: utils.get_private_key()"},{"line_number":114,"context_line":"        },"},{"line_number":115,"context_line":"        \u0027public_base64\u0027: {"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_a36655b9","line":112,"updated":"2015-03-12 22:43:47.000000000","message":"I would think binary means no encoding, so why specify it?  I think if there is no encoding value, we can assume binary as for application/octet-stream ?","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":124,"context_line":"                translations.get_pem_components(utils.get_public_key())[1]),"},{"line_number":125,"context_line":"            \u0027secret_type\u0027: s.SecretType.PUBLIC,"},{"line_number":126,"context_line":"            \u0027content_type\u0027: \u0027application/octet-stream\u0027,"},{"line_number":127,"context_line":"            \u0027content_encoding\u0027: \u0027binary\u0027,"},{"line_number":128,"context_line":"            \u0027expected\u0027: utils.get_public_key()"},{"line_number":129,"context_line":"        },"},{"line_number":130,"context_line":"        \u0027certificate_base64\u0027: {"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_e38e8d2d","line":127,"updated":"2015-03-12 22:43:47.000000000","message":"Ditto.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":139,"context_line":"                translations.get_pem_components(utils.get_certificate())[1]),"},{"line_number":140,"context_line":"            \u0027secret_type\u0027: s.SecretType.CERTIFICATE,"},{"line_number":141,"context_line":"            \u0027content_type\u0027: \u0027application/pkix-cert\u0027,"},{"line_number":142,"context_line":"            \u0027content_encoding\u0027: \u0027binary\u0027,"},{"line_number":143,"context_line":"            \u0027expected\u0027: utils.get_certificate()"},{"line_number":144,"context_line":"        },"},{"line_number":145,"context_line":"    }"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_437d991b","line":142,"updated":"2015-03-12 22:43:47.000000000","message":"Ditto.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":160,"context_line":"        )"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"        self.assertEqual(unencrypted, kwargs[\u0027expected\u0027])"},{"line_number":163,"context_line":"        self.assertEqual(content_type, kwargs[\u0027content_type\u0027])"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def test_can_normalize_tmp_plain_text(self):"},{"line_number":166,"context_line":"        unencrypted, content_type \u003d self.normalize("}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_23b345ea","line":163,"updated":"2015-03-12 22:43:47.000000000","message":"Nit: I prefer\n\nself.assertEqual(EXPECTED, ACTUAL)","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"0ef171c688887fa31b1edf212b52b35378e42fee","unresolved":false,"context_lines":[{"line_number":160,"context_line":"        )"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"        self.assertEqual(unencrypted, kwargs[\u0027expected\u0027])"},{"line_number":163,"context_line":"        self.assertEqual(content_type, kwargs[\u0027content_type\u0027])"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def test_can_normalize_tmp_plain_text(self):"},{"line_number":166,"context_line":"        unencrypted, content_type \u003d self.normalize("}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_a8a7f309","line":163,"in_reply_to":"9a80dd14_23b345ea","updated":"2015-03-13 14:29:18.000000000","message":"I do too. Thanks for catching this!","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":255,"context_line":"    }"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def setUp(self):"},{"line_number":258,"context_line":"        super(WhenNormalizingPemSecrets, self).setUp()"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"    @utils.parameterized_dataset(dataset_for_pem_normalize)"},{"line_number":261,"context_line":"    def test_pem_normalized(self, pem):"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_43f9197f","line":258,"updated":"2015-03-12 22:43:47.000000000","message":"Nit: remove unused setup.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"0ef171c688887fa31b1edf212b52b35378e42fee","unresolved":false,"context_lines":[{"line_number":255,"context_line":"    }"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def setUp(self):"},{"line_number":258,"context_line":"        super(WhenNormalizingPemSecrets, self).setUp()"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"    @utils.parameterized_dataset(dataset_for_pem_normalize)"},{"line_number":261,"context_line":"    def test_pem_normalized(self, pem):"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_e8656be1","line":258,"in_reply_to":"9a80dd14_43f9197f","updated":"2015-03-13 14:29:18.000000000","message":"Done","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":308,"context_line":"        # Aliasing to reduce the number of line continuations"},{"line_number":309,"context_line":"        self.denormalize \u003d translations.denormalize_after_decryption"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def test_ascii_characters_to_utf8_with_plain_text(self):"},{"line_number":312,"context_line":"        secret \u003d \u0027bam\u0027"},{"line_number":313,"context_line":"        normalized_secret \u003d secret.encode(\u0027utf-8\u0027)"},{"line_number":314,"context_line":"        normalized_secret \u003d base64.b64encode(normalized_secret)"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_96b34d4c","line":311,"updated":"2015-03-12 22:43:47.000000000","message":"These tests are going to be tough to translate to Python 3.  Not sure what to do about it now though.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"0ef171c688887fa31b1edf212b52b35378e42fee","unresolved":false,"context_lines":[{"line_number":308,"context_line":"        # Aliasing to reduce the number of line continuations"},{"line_number":309,"context_line":"        self.denormalize \u003d translations.denormalize_after_decryption"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def test_ascii_characters_to_utf8_with_plain_text(self):"},{"line_number":312,"context_line":"        secret \u003d \u0027bam\u0027"},{"line_number":313,"context_line":"        normalized_secret \u003d secret.encode(\u0027utf-8\u0027)"},{"line_number":314,"context_line":"        normalized_secret \u003d base64.b64encode(normalized_secret)"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_0831dfec","line":311,"in_reply_to":"9a80dd14_96b34d4c","updated":"2015-03-13 14:29:18.000000000","message":"What are the issues with this? Kaitlin and Peter did a lot of work to support Python 3 for PyKMIP. They may have some ideas.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"}],"functionaltests/api/v1/functional/test_orders.py":[{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":417,"context_line":"    @utils.parameterized_dataset({"},{"line_number":418,"context_line":"        \u0027int\u0027: [123],"},{"line_number":419,"context_line":"        \u0027oversized_string\u0027: [base.TestCase.oversized_field],"},{"line_number":420,"context_line":"    })"},{"line_number":421,"context_line":"    @testcase.attr(\u0027negative\u0027)"},{"line_number":422,"context_line":"    def test_create_order_defaults_invalid_payload_content_type(self, pct):"},{"line_number":423,"context_line":"        \"\"\"Covers order creation with various invalid payload content types.\"\"\""}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_232345a8","line":420,"updated":"2015-03-12 22:43:47.000000000","message":"Why were these removed?","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"0ef171c688887fa31b1edf212b52b35378e42fee","unresolved":false,"context_lines":[{"line_number":417,"context_line":"    @utils.parameterized_dataset({"},{"line_number":418,"context_line":"        \u0027int\u0027: [123],"},{"line_number":419,"context_line":"        \u0027oversized_string\u0027: [base.TestCase.oversized_field],"},{"line_number":420,"context_line":"    })"},{"line_number":421,"context_line":"    @testcase.attr(\u0027negative\u0027)"},{"line_number":422,"context_line":"    def test_create_order_defaults_invalid_payload_content_type(self, pct):"},{"line_number":423,"context_line":"        \"\"\"Covers order creation with various invalid payload content types.\"\"\""}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_cbe41c0f","line":420,"in_reply_to":"9a80dd14_232345a8","updated":"2015-03-13 14:29:18.000000000","message":"Good catch. I should have removed this. In validators.py on lines 179-182 there was code that checked the content type. For orders this does not matter. I started to change that, but I realized that should be another CR. I changed this back.\n\nI apologize for that. Sorry for the confusion.","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"}],"functionaltests/api/v1/functional/test_secrets.py":[{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"c1cb776d6bb0c69d3e794ab2ce3353906917a676","unresolved":false,"context_lines":[{"line_number":831,"context_line":"        \u0027private\u0027: [\u0027private\u0027, private_key_data],"},{"line_number":832,"context_line":"        \u0027public\u0027: [\u0027public\u0027, public_key_data],"},{"line_number":833,"context_line":"        \u0027certificate\u0027: [\u0027certificate\u0027, certificate_data],"},{"line_number":834,"context_line":"        \u0027passphrase\u0027: [\u0027passphrase\u0027, passphrase_data]"},{"line_number":835,"context_line":"    })"},{"line_number":836,"context_line":"    @testcase.attr(\u0027positive\u0027)"},{"line_number":837,"context_line":"    def test_secret_create_with_secret_type(self, secret_type, spec):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_66fcd43f","line":834,"updated":"2015-03-04 19:31:09.000000000","message":"private_key_data, public_key_data, certificate_data, and passphrase_data are undefined","commit_id":"37eedde819342fa8743db7ca062c2da7681f5aac"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"0ef171c688887fa31b1edf212b52b35378e42fee","unresolved":false,"context_lines":[{"line_number":880,"context_line":"        test_model.override_values(**overrides)"},{"line_number":881,"context_line":""},{"line_number":882,"context_line":"        resp, secret_ref \u003d self.behaviors.create_secret(test_model)"},{"line_number":883,"context_line":"        self.assertEqual(resp.status_code, 201)"},{"line_number":884,"context_line":""},{"line_number":885,"context_line":"        resp \u003d self.behaviors.get_secret_metadata(secret_ref)"},{"line_number":886,"context_line":"        secret_type_response \u003d resp.model.secret_type"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_e809eb31","line":883,"updated":"2015-03-13 14:29:18.000000000","message":"EXPECTED, ACTUAL","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"7740c1982c14ddb6dd2f1d86af76a62b03a5384f","unresolved":false,"context_lines":[{"line_number":885,"context_line":"        resp \u003d self.behaviors.get_secret_metadata(secret_ref)"},{"line_number":886,"context_line":"        secret_type_response \u003d resp.model.secret_type"},{"line_number":887,"context_line":"        self.assertIsNotNone(secret_type_response)"},{"line_number":888,"context_line":"        self.assertEqual(secret_type_response, secret_type)"},{"line_number":889,"context_line":""},{"line_number":890,"context_line":"        content_type \u003d spec[\u0027payload_content_type\u0027]"},{"line_number":891,"context_line":"        get_resp \u003d self.behaviors.get_secret(secret_ref,"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_e01e836f","line":888,"updated":"2015-03-12 22:43:47.000000000","message":"Nit: I would prefer asserts to follow the pattern of\n\nself.assertEqual(EXPECTED, ACTUAL)","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"0ef171c688887fa31b1edf212b52b35378e42fee","unresolved":false,"context_lines":[{"line_number":885,"context_line":"        resp \u003d self.behaviors.get_secret_metadata(secret_ref)"},{"line_number":886,"context_line":"        secret_type_response \u003d resp.model.secret_type"},{"line_number":887,"context_line":"        self.assertIsNotNone(secret_type_response)"},{"line_number":888,"context_line":"        self.assertEqual(secret_type_response, secret_type)"},{"line_number":889,"context_line":""},{"line_number":890,"context_line":"        content_type \u003d spec[\u0027payload_content_type\u0027]"},{"line_number":891,"context_line":"        get_resp \u003d self.behaviors.get_secret(secret_ref,"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_48191787","line":888,"in_reply_to":"9a80dd14_e01e836f","updated":"2015-03-13 14:29:18.000000000","message":"Done","commit_id":"71b079c6944b76ee401e0ee0fdc35d7ed2fc4879"}]}
