)]}'
{"barbican/plugin/crypto/pkcs11.py":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"2809d9762c67e39101aeac89c6064a6e8dc107c9","unresolved":false,"context_lines":[{"line_number":305,"context_line":"    message \u003d u._(\"General exception\")"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"class P11CryptoKeyHandleException(exception.BarbicanException):"},{"line_number":309,"context_line":"    message \u003d u._(\"No key handle was found\")"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_c429ba8b","line":308,"updated":"2015-05-21 16:14:41.000000000","message":"We are using same exception for mkek and hmac - is there a way to tell the difference if this occurs?  Parameter to put something in the msg perhaps? Different exceptions?","commit_id":"d148f0514dde47ffefb24b7dc782b05e537212dc"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"05a1b455aacded0dff2cdab8645732446161b0d1","unresolved":false,"context_lines":[{"line_number":305,"context_line":"    message \u003d u._(\"General exception\")"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"class P11CryptoKeyHandleException(exception.BarbicanException):"},{"line_number":309,"context_line":"    message \u003d u._(\"No key handle was found\")"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_27ae50e6","line":308,"in_reply_to":"7a016987_a40a3e88","updated":"2015-05-21 16:44:48.000000000","message":"Great.  Wanted to be sure that someone getting this exception could see what exactly was wrong.","commit_id":"d148f0514dde47ffefb24b7dc782b05e537212dc"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"bd0a959a83f4040769479360ce4e7cbedb8852ab","unresolved":false,"context_lines":[{"line_number":305,"context_line":"    message \u003d u._(\"General exception\")"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"class P11CryptoKeyHandleException(exception.BarbicanException):"},{"line_number":309,"context_line":"    message \u003d u._(\"No key handle was found\")"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_a40a3e88","line":308,"in_reply_to":"7a016987_c429ba8b","updated":"2015-05-21 16:34:12.000000000","message":"You\u0027ll see the difference in the traceback. I don\u0027t believe different exceptions are warranted, because the error is that there isn\u0027t a key handle. So, I think this is fine.","commit_id":"d148f0514dde47ffefb24b7dc782b05e537212dc"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"2809d9762c67e39101aeac89c6064a6e8dc107c9","unresolved":false,"context_lines":[{"line_number":336,"context_line":"        LOG.debug(\"Current hmac label: %s\", self.current_hmac_label)"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"        # cache current MKEK handle in the dictionary"},{"line_number":339,"context_line":"        self.get_mkek("},{"line_number":340,"context_line":"            self.current_mkek_label,"},{"line_number":341,"context_line":"            session"},{"line_number":342,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_81b5f47e","line":339,"updated":"2015-05-21 16:14:41.000000000","message":"is there ever a case where the mkek isn\u0027t there and needs to be generated?  Old behavior was to create, new behavior is to toss the new exception.","commit_id":"d148f0514dde47ffefb24b7dc782b05e537212dc"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"9fc686ca3f2dfc147d458c6077cd87a37d1b7849","unresolved":false,"context_lines":[{"line_number":336,"context_line":"        LOG.debug(\"Current hmac label: %s\", self.current_hmac_label)"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"        # cache current MKEK handle in the dictionary"},{"line_number":339,"context_line":"        self.get_mkek("},{"line_number":340,"context_line":"            self.current_mkek_label,"},{"line_number":341,"context_line":"            session"},{"line_number":342,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_e44f1632","line":339,"in_reply_to":"7a016987_81b5f47e","updated":"2015-05-21 16:22:02.000000000","message":"The idea behind this is that the mkek should be generated before use external to barbican as a part of a set up script. So now, if one has not been created, an exception should be raised","commit_id":"d148f0514dde47ffefb24b7dc782b05e537212dc"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"05a1b455aacded0dff2cdab8645732446161b0d1","unresolved":false,"context_lines":[{"line_number":336,"context_line":"        LOG.debug(\"Current hmac label: %s\", self.current_hmac_label)"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"        # cache current MKEK handle in the dictionary"},{"line_number":339,"context_line":"        self.get_mkek("},{"line_number":340,"context_line":"            self.current_mkek_label,"},{"line_number":341,"context_line":"            session"},{"line_number":342,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_a7a120fa","line":339,"in_reply_to":"7a016987_840bc27c","updated":"2015-05-21 16:44:48.000000000","message":"Thanks guys - thats what I wanted to know","commit_id":"d148f0514dde47ffefb24b7dc782b05e537212dc"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"bd0a959a83f4040769479360ce4e7cbedb8852ab","unresolved":false,"context_lines":[{"line_number":336,"context_line":"        LOG.debug(\"Current hmac label: %s\", self.current_hmac_label)"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"        # cache current MKEK handle in the dictionary"},{"line_number":339,"context_line":"        self.get_mkek("},{"line_number":340,"context_line":"            self.current_mkek_label,"},{"line_number":341,"context_line":"            session"},{"line_number":342,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_840bc27c","line":339,"in_reply_to":"7a016987_e44f1632","updated":"2015-05-21 16:34:12.000000000","message":"Yeah, Barbican shouldn\u0027t be generating the mkek and hmac as a part of the normal operation of the service. This should be done by a deployer before Barbican is ever started, as they would need to replicate the mkek and hmac across the HSMs anyhow. Otherwise, we have a potential race condition in a HA scenario.","commit_id":"d148f0514dde47ffefb24b7dc782b05e537212dc"}]}
