)]}'
{"barbican/plugin/resources.py":[{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1aea1b8637416857bbb08dcc95175ff8968307ae","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    secret_type \u003d None"},{"line_number":114,"context_line":"    if key_spec is not None:"},{"line_number":115,"context_line":"        secret_type \u003d secret_store.KeyAlgorithm().get_secret_type(key_spec.alg)"},{"line_number":116,"context_line":"    secret_dto \u003d secret_store.SecretDTO(type\u003dsecret_type,"},{"line_number":117,"context_line":"                                        secret\u003dunencrypted,"},{"line_number":118,"context_line":"                                        key_spec\u003dkey_spec,"},{"line_number":119,"context_line":"                                        content_type\u003dcontent_type,"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_ff403e58","line":116,"updated":"2014-11-11 14:12:52.000000000","message":"I\u0027m not exactly sure how this ever worked, I\u0027m sure there\u0027s a good reason for SecretDTO to take a type of \u0027None\u0027 but I can\u0027t think what.","commit_id":"79049418e1ef8d2ee435fabc36739e35a23ad6af"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"cbd4f1e165efed8c0dfb1d156fa0a40e93988995","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    secret_type \u003d None"},{"line_number":114,"context_line":"    if key_spec is not None:"},{"line_number":115,"context_line":"        secret_type \u003d secret_store.KeyAlgorithm().get_secret_type(key_spec.alg)"},{"line_number":116,"context_line":"    secret_dto \u003d secret_store.SecretDTO(type\u003dsecret_type,"},{"line_number":117,"context_line":"                                        secret\u003dunencrypted,"},{"line_number":118,"context_line":"                                        key_spec\u003dkey_spec,"},{"line_number":119,"context_line":"                                        content_type\u003dcontent_type,"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_48835504","line":116,"in_reply_to":"5a890539_e25fc20c","updated":"2014-11-11 16:03:26.000000000","message":"+1","commit_id":"79049418e1ef8d2ee435fabc36739e35a23ad6af"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"198c529e70acd7e44b687e56e53dc3cc02a221ff","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    secret_type \u003d None"},{"line_number":114,"context_line":"    if key_spec is not None:"},{"line_number":115,"context_line":"        secret_type \u003d secret_store.KeyAlgorithm().get_secret_type(key_spec.alg)"},{"line_number":116,"context_line":"    secret_dto \u003d secret_store.SecretDTO(type\u003dsecret_type,"},{"line_number":117,"context_line":"                                        secret\u003dunencrypted,"},{"line_number":118,"context_line":"                                        key_spec\u003dkey_spec,"},{"line_number":119,"context_line":"                                        content_type\u003dcontent_type,"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_e8e4013d","line":116,"in_reply_to":"5a890539_e2bb420c","updated":"2014-11-11 15:56:08.000000000","message":"I will have another patch coming out to define the complete set of secret types. I will work on a spec. The set will likely be something similar to symmetric, private, public, certificate, split key, and secret blob.","commit_id":"79049418e1ef8d2ee435fabc36739e35a23ad6af"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"1c2179d4de4223dd8de690d67c22c4432461b780","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    secret_type \u003d None"},{"line_number":114,"context_line":"    if key_spec is not None:"},{"line_number":115,"context_line":"        secret_type \u003d secret_store.KeyAlgorithm().get_secret_type(key_spec.alg)"},{"line_number":116,"context_line":"    secret_dto \u003d secret_store.SecretDTO(type\u003dsecret_type,"},{"line_number":117,"context_line":"                                        secret\u003dunencrypted,"},{"line_number":118,"context_line":"                                        key_spec\u003dkey_spec,"},{"line_number":119,"context_line":"                                        content_type\u003dcontent_type,"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_85b0c88c","line":116,"in_reply_to":"5a890539_e2bb420c","updated":"2014-11-11 15:46:31.000000000","message":"Sounds like a worthwhile change. Maybe some explicit value for no_type and not None ? Sounds like pressure is already being applied in the right places on this - thanks for the info Nathan.","commit_id":"79049418e1ef8d2ee435fabc36739e35a23ad6af"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"70921437eb6ebb7cfbd5f57f20bc8a148847a256","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    secret_type \u003d None"},{"line_number":114,"context_line":"    if key_spec is not None:"},{"line_number":115,"context_line":"        secret_type \u003d secret_store.KeyAlgorithm().get_secret_type(key_spec.alg)"},{"line_number":116,"context_line":"    secret_dto \u003d secret_store.SecretDTO(type\u003dsecret_type,"},{"line_number":117,"context_line":"                                        secret\u003dunencrypted,"},{"line_number":118,"context_line":"                                        key_spec\u003dkey_spec,"},{"line_number":119,"context_line":"                                        content_type\u003dcontent_type,"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_e25fc20c","line":116,"in_reply_to":"5a890539_ff403e58","updated":"2014-11-11 14:49:37.000000000","message":"Good question. It would good if we had a test included with this fix to aid in preventing a future regression on this.","commit_id":"79049418e1ef8d2ee435fabc36739e35a23ad6af"},{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"95d143e952f68a1c7db07be97a484b8d613d032f","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    secret_type \u003d None"},{"line_number":114,"context_line":"    if key_spec is not None:"},{"line_number":115,"context_line":"        secret_type \u003d secret_store.KeyAlgorithm().get_secret_type(key_spec.alg)"},{"line_number":116,"context_line":"    secret_dto \u003d secret_store.SecretDTO(type\u003dsecret_type,"},{"line_number":117,"context_line":"                                        secret\u003dunencrypted,"},{"line_number":118,"context_line":"                                        key_spec\u003dkey_spec,"},{"line_number":119,"context_line":"                                        content_type\u003dcontent_type,"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_e2bb420c","line":116,"in_reply_to":"5a890539_ff403e58","updated":"2014-11-11 14:54:59.000000000","message":"This is because most of the secret stores do not care about the type. KMIP is the only secret store that does care, and that is why I have pushed to have the interface changed to force the key type to be specified. The other secret stores store things as generic blobs.","commit_id":"79049418e1ef8d2ee435fabc36739e35a23ad6af"}],"barbican/tests/plugin/test_resource.py":[{"author":{"_account_id":13914,"name":"Darren J Moffat","email":"darren.moffat@oracle.com","username":"darrenmoffat"},"change_message_id":"0b2d1984b386cba9bb0bea101d7afe2da4ae01d8","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def test_store_secret_dto(self):"},{"line_number":83,"context_line":"        spec \u003d {\u0027algorithm\u0027: \u0027AES\u0027, \u0027bit_length\u0027: 256}"},{"line_number":84,"context_line":"        secret \u003d base64.b64encode(\u0027my-secret-bytes\u0027)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        self.plugin_resource.store_secret("},{"line_number":87,"context_line":"            secret,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a890539_994bb52a","line":84,"updated":"2014-11-12 14:52:12.000000000","message":"Please don\u0027t use english langauge strings as even simulated keys even if they happen to have the correct number of bytes.\n\nIt is much better to use a hex value. This is so it actually looks like a key rather than a passphrase.","commit_id":"d3ec427f9ecddcba6373c772d828e160fad17243"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"7aa5cb64e18ddc5aadb5214eeae0cbbdaf1477fb","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def test_store_secret_dto(self):"},{"line_number":83,"context_line":"        spec \u003d {\u0027algorithm\u0027: \u0027AES\u0027, \u0027bit_length\u0027: 256}"},{"line_number":84,"context_line":"        secret \u003d base64.b64encode(\u0027my-secret-bytes\u0027)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        self.plugin_resource.store_secret("},{"line_number":87,"context_line":"            secret,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a890539_f9a83979","line":84,"in_reply_to":"5a890539_994bb52a","updated":"2014-11-12 15:02:29.000000000","message":"This is storing an arbitrary user provided secret, it is perfectly valid that this could in-fact be a passphrase. However, I\u0027ll change it to something more hex-like.","commit_id":"d3ec427f9ecddcba6373c772d828e160fad17243"},{"author":{"_account_id":13914,"name":"Darren J Moffat","email":"darren.moffat@oracle.com","username":"darrenmoffat"},"change_message_id":"df4df46779a5efff293fb9ff6f83d0890233a89d","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def test_store_secret_dto(self):"},{"line_number":83,"context_line":"        spec \u003d {\u0027algorithm\u0027: \u0027AES\u0027, \u0027bit_length\u0027: 256}"},{"line_number":84,"context_line":"        secret \u003d base64.b64encode(\u0027DEADBEEFDEADBEEF\u0027)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        self.plugin_resource.store_secret("},{"line_number":87,"context_line":"            secret,"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a890539_9c72c37a","line":84,"updated":"2014-11-12 15:23:53.000000000","message":"See http://en.wikipedia.org/wiki/Hexspeak  0xdeadbeef is used in multiple systems to indicate special states of memory.  While this isn\u0027t an issue in Python code seeing it will set of alarm bells for some people.\n\nI suggest just using a real randomly generated key value eg this one for an AES 256 bit key:\n\n6482f137b580693f53ad3633ad75e84681545d5ca287922ff8a6600603a332f0\n\n[ Which is one I just generated using /dev/random ]","commit_id":"8919243eda1a7ca3d18f03ef8750fc0eb4c7afae"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"da6be777bb9f0c6b352bd4f03d53accc8bcd1a3c","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def test_store_secret_dto(self):"},{"line_number":83,"context_line":"        spec \u003d {\u0027algorithm\u0027: \u0027AES\u0027, \u0027bit_length\u0027: 256}"},{"line_number":84,"context_line":"        secret \u003d base64.b64encode(\u0027DEADBEEFDEADBEEF\u0027)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        self.plugin_resource.store_secret("},{"line_number":87,"context_line":"            secret,"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a890539_9c956342","line":84,"in_reply_to":"5a890539_9c72c37a","updated":"2014-11-12 15:28:09.000000000","message":"You should absolutely _not_ use random keymaterial for this sort of testing\n\nIt\u0027s not problem to use DEADBEEF, CAFEBABE whatever, there\u0027s no strong convention for these hex strings other than it\u0027s  used commonly as a memorable and recognisable hex pattern, for testing in _exactly_ this sort of situation.","commit_id":"8919243eda1a7ca3d18f03ef8750fc0eb4c7afae"},{"author":{"_account_id":7063,"name":"Robert Clark","email":"hyakuhei@gmail.com","username":"hyakuhei"},"change_message_id":"bdd3452fe4680dfa7d04e76929f7fa3d39eaca23","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    def test_store_secret_dto(self):"},{"line_number":83,"context_line":"        spec \u003d {\u0027algorithm\u0027: \u0027AES\u0027, \u0027bit_length\u0027: 256}"},{"line_number":84,"context_line":"        secret \u003d base64.b64encode((\u00276482f137b580693f53ad3633ad75e84681545d5\u0027"},{"line_number":85,"context_line":"                                   \u0027ca287922ff8a6600603a332f0\u0027))"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        self.plugin_resource.store_secret("},{"line_number":88,"context_line":"            secret,"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a890539_a73cc8c0","line":85,"updated":"2014-11-12 15:44:26.000000000","message":"This should be a recognisable hex string as with patch set three.\n\nDEADBEEF is fine, alternatively 88884444 or something similarly recognisable in debuging and easily identified as corrupted etc. It should also be recognisable as a test key which random keymat is not.","commit_id":"8ee057399ac92d5408fdb2280c6c1554c26a6d39"}]}
