)]}'
{"barbican/plugin/crypto/p11_crypto.py":[{"author":{"_account_id":13914,"name":"Darren J Moffat","email":"darren.moffat@oracle.com","username":"darrenmoffat"},"change_message_id":"a6eb58e6b166b82346f31b224cfa52d2b59f3a67","unresolved":false,"context_lines":[{"line_number":63,"context_line":"            mkek_length\u003dconf.p11_crypto_plugin.mkek_length,"},{"line_number":64,"context_line":"            hmac_label\u003dconf.p11_crypto_plugin.hmac_label,"},{"line_number":65,"context_line":"            login_passphrase\u003dconf.p11_crypto_plugin.login,"},{"line_number":66,"context_line":"            slot_id\u003dconf.p11_crypto_plugin.slot_id,"},{"line_number":67,"context_line":"            ffi\u003dffi"},{"line_number":68,"context_line":"        )"},{"line_number":69,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5afe65bd_606a50b5","side":"PARENT","line":66,"updated":"2015-06-03 15:42:32.000000000","message":"slot id numbers and position in the slot list is not a stable concept in PKCS#11.  The Slot Desription should be used instead of the slot_id.\n\nSome vendors have been known to randomise the slot_id and the slot order on purpose.","commit_id":"d148f0514dde47ffefb24b7dc782b05e537212dc"}],"barbican/plugin/crypto/pkcs11.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"13c50142faefa57e76b6fbb59ab65e8f9637b49d","unresolved":false,"context_lines":[{"line_number":332,"context_line":"        # Clean up the active session"},{"line_number":333,"context_line":"        self.close_session(session)"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"    def retrieve_mkek_and_hmac(self, mkek_label, hmac_label):"},{"line_number":336,"context_line":"        session \u003d self.create_working_session()"},{"line_number":337,"context_line":"        self.current_mkek_label \u003d mkek_label"},{"line_number":338,"context_line":"        self.current_hmac_label \u003d hmac_label"}],"source_content_type":"text/x-python","patch_set":2,"id":"5afe65bd_087e71e4","line":335,"updated":"2015-06-02 03:53:21.000000000","message":"Having to call this method separately from the init method is a bit quirky to me...I think it would help to give this a more explicit name that doesn\u0027t imply that something is being returned, like \u0027cache_mkek_and_hmac()\u0027 or some such?","commit_id":"d723ff4f36b3af938e8180561cf9e8de38d086dc"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"e8736d5fc8c3d9d02f408d3adec7ae43b926299d","unresolved":false,"context_lines":[{"line_number":332,"context_line":"        # Clean up the active session"},{"line_number":333,"context_line":"        self.close_session(session)"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"    def retrieve_mkek_and_hmac(self, mkek_label, hmac_label):"},{"line_number":336,"context_line":"        session \u003d self.create_working_session()"},{"line_number":337,"context_line":"        self.current_mkek_label \u003d mkek_label"},{"line_number":338,"context_line":"        self.current_hmac_label \u003d hmac_label"}],"source_content_type":"text/x-python","patch_set":2,"id":"5afe65bd_25045c48","line":335,"in_reply_to":"5afe65bd_087e71e4","updated":"2015-06-03 21:22:40.000000000","message":"done","commit_id":"d723ff4f36b3af938e8180561cf9e8de38d086dc"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"55ee380734fd928acddfa08f2af786df43afcbd1","unresolved":false,"context_lines":[{"line_number":333,"context_line":"        self.close_session(session)"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"    def retrieve_mkek_and_hmac(self, mkek_label, hmac_label):"},{"line_number":336,"context_line":"        session \u003d self.create_working_session()"},{"line_number":337,"context_line":"        self.current_mkek_label \u003d mkek_label"},{"line_number":338,"context_line":"        self.current_hmac_label \u003d hmac_label"},{"line_number":339,"context_line":"        LOG.debug(\"Current mkek label: %s\", self.current_mkek_label)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5afe65bd_cb86c564","line":336,"range":{"start_line":336,"start_character":8,"end_line":336,"end_character":15},"updated":"2015-06-03 16:03:11.000000000","message":"I am not able to find where above local \u0027session\u0027 is closed similar to line #333 above. Just checking if this is intended?","commit_id":"d723ff4f36b3af938e8180561cf9e8de38d086dc"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"e8736d5fc8c3d9d02f408d3adec7ae43b926299d","unresolved":false,"context_lines":[{"line_number":333,"context_line":"        self.close_session(session)"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"    def retrieve_mkek_and_hmac(self, mkek_label, hmac_label):"},{"line_number":336,"context_line":"        session \u003d self.create_working_session()"},{"line_number":337,"context_line":"        self.current_mkek_label \u003d mkek_label"},{"line_number":338,"context_line":"        self.current_hmac_label \u003d hmac_label"},{"line_number":339,"context_line":"        LOG.debug(\"Current mkek label: %s\", self.current_mkek_label)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5afe65bd_e5e644b3","line":336,"range":{"start_line":336,"start_character":8,"end_line":336,"end_character":15},"in_reply_to":"5afe65bd_cb86c564","updated":"2015-06-03 21:22:40.000000000","message":"done! thank you, great catch.","commit_id":"d723ff4f36b3af938e8180561cf9e8de38d086dc"},{"author":{"_account_id":12920,"name":"Jason Fritcher","email":"jason_fritcher@symantec.com","username":"jfritcher"},"change_message_id":"9193c273f2419183777adaaa3683ac5a0f70c3dd","unresolved":false,"context_lines":[{"line_number":342,"context_line":"        # cache current MKEK handle in the dictionary"},{"line_number":343,"context_line":"        self.get_mkek(self.current_mkek_label, session)"},{"line_number":344,"context_line":"        self.get_hmac_key(self.current_hmac_label, session)"},{"line_number":345,"context_line":"        self.close_session(session)"},{"line_number":346,"context_line":""},{"line_number":347,"context_line":"    def perform_rng_self_test(self, session):"},{"line_number":348,"context_line":"        test_random \u003d self.generate_random(100, session)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_88be85d2","line":345,"updated":"2015-06-03 22:05:03.000000000","message":"If my memory isn\u0027t failing me, won\u0027t the cached key handles from get_mkek() and get_hmac_key() become invalid as soon as the session is closed here?","commit_id":"ba783469ef1a23e76db59264a8503b32ffbe210a"}],"bin/barbican-mkek-generation.py":[{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"5b0a8c0cc3492ee90dfa9b432c26b008e63b7ff1","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"CONF \u003d cfg.CONF"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"p11_crypto_plugin_group \u003d cfg.OptGroup(name\u003d\u0027p11_crypto_plugin\u0027,"},{"line_number":22,"context_line":"                                       title\u003d\"PKCS11 Crypto Plugin Options\")"},{"line_number":23,"context_line":"p11_crypto_plugin_opts \u003d ["},{"line_number":24,"context_line":"    cfg.StrOpt(\u0027library_path\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_eb0a5ad1","line":21,"updated":"2015-05-29 16:56:37.000000000","message":"this is ugly copy pasta, admittedly, some of this will be fixed... but using config for now for testing. would love some input here on how to do this better","commit_id":"41dc0e97daf16d1a71ce5fa414c5a0c067be053b"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"96b694371057aefbdfc42805c1c371111ba7351d","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"CONF \u003d cfg.CONF"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"p11_crypto_plugin_group \u003d cfg.OptGroup(name\u003d\u0027p11_crypto_plugin\u0027,"},{"line_number":22,"context_line":"                                       title\u003d\"PKCS11 Crypto Plugin Options\")"},{"line_number":23,"context_line":"p11_crypto_plugin_opts \u003d ["},{"line_number":24,"context_line":"    cfg.StrOpt(\u0027library_path\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_51059c0e","line":21,"in_reply_to":"7a016987_eb0a5ad1","updated":"2015-05-29 18:28:16.000000000","message":"Current iteration removes all of this config stuff and asks for library path and other information directly from command line so this is gone.","commit_id":"41dc0e97daf16d1a71ce5fa414c5a0c067be053b"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"5b0a8c0cc3492ee90dfa9b432c26b008e63b7ff1","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self.add_hmac_args()"},{"line_number":52,"context_line":"        if conf.p11_crypto_plugin.library_path is None:"},{"line_number":53,"context_line":"            raise ValueError(u._(\"library_path is required\"))"},{"line_number":54,"context_line":"        self.pkcs11 \u003d pkcs11.PKCS11("},{"line_number":55,"context_line":"            library_path\u003dconf.p11_crypto_plugin.library_path,"},{"line_number":56,"context_line":"            login_passphrase\u003dconf.p11_crypto_plugin.login,"},{"line_number":57,"context_line":"            slot_id\u003dconf.p11_crypto_plugin.slot_id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_0b2db645","line":54,"updated":"2015-05-29 16:56:37.000000000","message":"this is where the config pieces will be needed... so currently would ju st use config to populate this.","commit_id":"41dc0e97daf16d1a71ce5fa414c5a0c067be053b"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"96b694371057aefbdfc42805c1c371111ba7351d","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self.add_hmac_args()"},{"line_number":52,"context_line":"        if conf.p11_crypto_plugin.library_path is None:"},{"line_number":53,"context_line":"            raise ValueError(u._(\"library_path is required\"))"},{"line_number":54,"context_line":"        self.pkcs11 \u003d pkcs11.PKCS11("},{"line_number":55,"context_line":"            library_path\u003dconf.p11_crypto_plugin.library_path,"},{"line_number":56,"context_line":"            login_passphrase\u003dconf.p11_crypto_plugin.login,"},{"line_number":57,"context_line":"            slot_id\u003dconf.p11_crypto_plugin.slot_id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_3106a01c","line":54,"in_reply_to":"7a016987_0b2db645","updated":"2015-05-29 18:28:16.000000000","message":"same with this","commit_id":"41dc0e97daf16d1a71ce5fa414c5a0c067be053b"}],"bin/pkcs11-key-generation":[{"author":{"_account_id":13914,"name":"Darren J Moffat","email":"darren.moffat@oracle.com","username":"darrenmoffat"},"change_message_id":"396f909bd691df9c380ba809c4b23db2107d769f","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        self.add_hmac_args()"},{"line_number":31,"context_line":"        self.args \u003d self.parser.parse_args()"},{"line_number":32,"context_line":"        if not self.args.passphrase:"},{"line_number":33,"context_line":"            password \u003d six.moves.input(\"Please enter your password: \")"},{"line_number":34,"context_line":"        self.pkcs11 \u003d pkcs11.PKCS11("},{"line_number":35,"context_line":"            library_path\u003dself.args.library_path,"},{"line_number":36,"context_line":"            login_passphrase\u003dself.args.passphrase or password,"}],"source_content_type":"application/octet-stream","patch_set":4,"id":"3afb71cf_ee79d730","line":33,"updated":"2015-06-05 14:51:38.000000000","message":"Why not getpass() ?  Using six.moves.input leaves the terminal echo on.","commit_id":"014c432ff92fdea916de58e862a7d0923c60cb89"}],"bin/pkcs11-key-generation.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"13c50142faefa57e76b6fbb59ab65e8f9637b49d","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5afe65bd_a8cabd4d","updated":"2015-06-02 03:53:21.000000000","message":"Please instead put this script into a \u0027cmd\u0027 folder, as it is easier/cleaner to deploy that way...see https://review.openstack.org/#/c/170896/ for an example of this.","commit_id":"d723ff4f36b3af938e8180561cf9e8de38d086dc"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"60d05023155609a5c9c2a92ce4b1b61bfaa5b5aa","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5afe65bd_775b3c2f","in_reply_to":"5afe65bd_5c9b0eca","updated":"2015-06-03 14:42:16.000000000","message":"Yep, that can be handled separately.","commit_id":"d723ff4f36b3af938e8180561cf9e8de38d086dc"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"d5db94e85837ffbc2398b2ce8c5626baae0ab5d6","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5afe65bd_5c9b0eca","in_reply_to":"5afe65bd_a8cabd4d","updated":"2015-06-02 04:09:04.000000000","message":"There isn\u0027t a cmd folder as of yet? I\u0027m not sure if my CR is the right place to do this...","commit_id":"d723ff4f36b3af938e8180561cf9e8de38d086dc"},{"author":{"_account_id":8004,"name":"Paul Kehrer","email":"paul.l.kehrer@gmail.com","username":"reaperhulk"},"change_message_id":"99f916d626d571a29460c53b8ec7313e86faa0f8","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"class KeyGenerator:"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    def __init__(self, ffi\u003dNone):"},{"line_number":20,"context_line":"        self.parser \u003d self.get_main_parser()"},{"line_number":21,"context_line":"        self.subparsers \u003d self.parser.add_subparsers("},{"line_number":22,"context_line":"            title\u003d\u0027subcommands\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5afe65bd_a859b390","line":19,"updated":"2015-06-01 16:10:02.000000000","message":"Where\u0027s this ffi going to come from?","commit_id":"d723ff4f36b3af938e8180561cf9e8de38d086dc"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"521a6b99fef0f2af36632a5081fcd1dd93709aa5","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"class KeyGenerator:"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    def __init__(self, ffi\u003dNone):"},{"line_number":20,"context_line":"        self.parser \u003d self.get_main_parser()"},{"line_number":21,"context_line":"        self.subparsers \u003d self.parser.add_subparsers("},{"line_number":22,"context_line":"            title\u003d\u0027subcommands\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5afe65bd_ff5f5f73","line":19,"in_reply_to":"5afe65bd_a859b390","updated":"2015-06-01 18:03:09.000000000","message":"The concept was to leave it available for future testing, for now i was modeling it off of the P11CryptoPlugin, which also has it set to none so that the build_ffi() command generates it.\n\nCurious on your thoughts though","commit_id":"d723ff4f36b3af938e8180561cf9e8de38d086dc"},{"author":{"_account_id":13914,"name":"Darren J Moffat","email":"darren.moffat@oracle.com","username":"darrenmoffat"},"change_message_id":"a6eb58e6b166b82346f31b224cfa52d2b59f3a67","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            help\u003d\u0027Path to vendor PKCS11 library\u0027"},{"line_number":45,"context_line":"        )"},{"line_number":46,"context_line":"        parser.add_argument("},{"line_number":47,"context_line":"            \u0027--passphrase\u0027,"},{"line_number":48,"context_line":"            default\u003dNone,"},{"line_number":49,"context_line":"            help\u003d\u0027Password to login to PKCS11 session\u0027"},{"line_number":50,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":2,"id":"5afe65bd_8080ac47","line":47,"updated":"2015-06-03 15:42:32.000000000","message":"Can we prompt for this rather than having it on the CLI please.  On most UNIX/Linux systems CLI arguments are visisble to all by default via /proc.  Given this is the creds for access to the HSM they are very senstive.","commit_id":"d723ff4f36b3af938e8180561cf9e8de38d086dc"},{"author":{"_account_id":11970,"name":"Chelsea Winfree","email":"chelsea.winfree@gmail.com","username":"chellygel"},"change_message_id":"e8736d5fc8c3d9d02f408d3adec7ae43b926299d","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            help\u003d\u0027Path to vendor PKCS11 library\u0027"},{"line_number":45,"context_line":"        )"},{"line_number":46,"context_line":"        parser.add_argument("},{"line_number":47,"context_line":"            \u0027--passphrase\u0027,"},{"line_number":48,"context_line":"            default\u003dNone,"},{"line_number":49,"context_line":"            help\u003d\u0027Password to login to PKCS11 session\u0027"},{"line_number":50,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":2,"id":"5afe65bd_c830fdea","line":47,"in_reply_to":"5afe65bd_8080ac47","updated":"2015-06-03 21:22:40.000000000","message":"Done using both prompting and the flag!","commit_id":"d723ff4f36b3af938e8180561cf9e8de38d086dc"}]}
