)]}'
{"barbican/plugin/interface/certificate_manager.py":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":35,"context_line":"# Configuration for certificate processing plugins:"},{"line_number":36,"context_line":"DEFAULT_PLUGIN_NAMESPACE \u003d \u0027barbican.certificate.plugin\u0027"},{"line_number":37,"context_line":"#TODO(chellygel): Create a default \u0027dummy\u0027 plugin for certificates."},{"line_number":38,"context_line":"DEFAULT_PLUGINS \u003d [\u0027simple_certificate\u0027]"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"cert_opt_group \u003d cfg.OptGroup(name\u003d\u0027certificate\u0027,"},{"line_number":41,"context_line":"                              title\u003d\u0027Certificate Plugin Options\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_b6724fab","line":38,"updated":"2014-08-19 16:11:54.000000000","message":"does this satisfy chellygel\u0027s todo above?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7b61efe11885169a70e6a511bc88298ed9164cb3","unresolved":false,"context_lines":[{"line_number":35,"context_line":"# Configuration for certificate processing plugins:"},{"line_number":36,"context_line":"DEFAULT_PLUGIN_NAMESPACE \u003d \u0027barbican.certificate.plugin\u0027"},{"line_number":37,"context_line":"#TODO(chellygel): Create a default \u0027dummy\u0027 plugin for certificates."},{"line_number":38,"context_line":"DEFAULT_PLUGINS \u003d [\u0027simple_certificate\u0027]"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"cert_opt_group \u003d cfg.OptGroup(name\u003d\u0027certificate\u0027,"},{"line_number":41,"context_line":"                              title\u003d\u0027Certificate Plugin Options\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_a81e5e61","line":38,"in_reply_to":"1abeadc6_b6724fab","updated":"2014-08-19 22:54:00.000000000","message":"Why yes it does! Will remove....","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":55,"context_line":"# Configuration for certificate eventing plugins:"},{"line_number":56,"context_line":"DEFAULT_EVENT_PLUGIN_NAMESPACE \u003d \u0027barbican.certificate.event.plugin\u0027"},{"line_number":57,"context_line":"#TODO(john-wood-w): Create a default \u0027dummy\u0027 plugin for certificate events."},{"line_number":58,"context_line":"DEFAULT_EVENT_PLUGINS \u003d [\u0027simple_certificate_event\u0027]"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"cert_event_opt_group \u003d cfg.OptGroup(name\u003d\u0027certificate_event\u0027,"},{"line_number":61,"context_line":"                                    title\u003d\u0027Certificate Event Plugin Options\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_96271364","line":58,"updated":"2014-08-19 16:11:54.000000000","message":"what\u0027s the difference between this simple_certificate_event and the \u0027dummy\u0027 plugin mentioned in the TODO above?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7b61efe11885169a70e6a511bc88298ed9164cb3","unresolved":false,"context_lines":[{"line_number":55,"context_line":"# Configuration for certificate eventing plugins:"},{"line_number":56,"context_line":"DEFAULT_EVENT_PLUGIN_NAMESPACE \u003d \u0027barbican.certificate.event.plugin\u0027"},{"line_number":57,"context_line":"#TODO(john-wood-w): Create a default \u0027dummy\u0027 plugin for certificate events."},{"line_number":58,"context_line":"DEFAULT_EVENT_PLUGINS \u003d [\u0027simple_certificate_event\u0027]"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"cert_event_opt_group \u003d cfg.OptGroup(name\u003d\u0027certificate_event\u0027,"},{"line_number":61,"context_line":"                                    title\u003d\u0027Certificate Event Plugin Options\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_082bd282","line":58,"in_reply_to":"1abeadc6_96271364","updated":"2014-08-19 22:54:00.000000000","message":"None, will remove this TODO as well.","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":64,"context_line":"               default\u003dDEFAULT_EVENT_PLUGIN_NAMESPACE,"},{"line_number":65,"context_line":"               help\u003du._(\u0027Extension namespace to search for eventing plugins.\u0027)"},{"line_number":66,"context_line":"               ),"},{"line_number":67,"context_line":"    cfg.MultiStrOpt(\u0027enabled_event_plugins\u0027,"},{"line_number":68,"context_line":"                    default\u003dDEFAULT_EVENT_PLUGINS,"},{"line_number":69,"context_line":"                    help\u003du._(\u0027List of certificate plugins to load.\u0027)"},{"line_number":70,"context_line":"                    )"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_1677833b","line":67,"updated":"2014-08-19 16:11:54.000000000","message":"enabled_certificate_event_plugins perhaps? current name seems too general 2 me.","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7b61efe11885169a70e6a511bc88298ed9164cb3","unresolved":false,"context_lines":[{"line_number":64,"context_line":"               default\u003dDEFAULT_EVENT_PLUGIN_NAMESPACE,"},{"line_number":65,"context_line":"               help\u003du._(\u0027Extension namespace to search for eventing plugins.\u0027)"},{"line_number":66,"context_line":"               ),"},{"line_number":67,"context_line":"    cfg.MultiStrOpt(\u0027enabled_event_plugins\u0027,"},{"line_number":68,"context_line":"                    default\u003dDEFAULT_EVENT_PLUGINS,"},{"line_number":69,"context_line":"                    help\u003du._(\u0027List of certificate plugins to load.\u0027)"},{"line_number":70,"context_line":"                    )"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_a8357edb","line":67,"in_reply_to":"1abeadc6_1677833b","updated":"2014-08-19 22:54:00.000000000","message":"Will adjust this as well","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"class CertificatePluginNotFound(exception.BarbicanException):"},{"line_number":80,"context_line":"    \"\"\"Raised when no plugins are installed.\"\"\""},{"line_number":81,"context_line":"    message \u003d u._(\"Certificate plugin not found.\")"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_b6024f6d","line":80,"updated":"2014-08-19 16:11:54.000000000","message":"name implies a specified plugin was not found, rather than no plugins installed.","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7b61efe11885169a70e6a511bc88298ed9164cb3","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"class CertificatePluginNotFound(exception.BarbicanException):"},{"line_number":80,"context_line":"    \"\"\"Raised when no plugins are installed.\"\"\""},{"line_number":81,"context_line":"    message \u003d u._(\"Certificate plugin not found.\")"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_88c0c27d","line":80,"in_reply_to":"1abeadc6_b6024f6d","updated":"2014-08-19 22:54:00.000000000","message":"It covers both situations (i.e. no plugins installed or none found), so will update accordingly.","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"class CertificateEventPluginNotFound(exception.BarbicanException):"},{"line_number":85,"context_line":"    \"\"\"Raised when no plugins are installed.\"\"\""},{"line_number":86,"context_line":"    message \u003d u._(\"Certificate event plugin not found.\")"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_d6d18bfc","line":85,"updated":"2014-08-19 16:11:54.000000000","message":"actually seems to be raised when a specific plugin has not been found, rather than zero plugins installed (which is different)","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    @abc.abstractmethod"},{"line_number":106,"context_line":"    def notify_certificate_is_ready(self, project_id, order_id, container_id):"},{"line_number":107,"context_line":"        \"\"\"Notify that a certificate is generated and ready to use."},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        :param project_id: Project/tenant ID associated with this certificate"},{"line_number":110,"context_line":"        :param order_id: ID associated with the order"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_164a23c5","line":107,"updated":"2014-08-19 16:11:54.000000000","message":"nit -\"has been generated\"","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        :param project_id: Project/tenant ID associated with this certificate"},{"line_number":110,"context_line":"        :param order_id: ID associated with the order"},{"line_number":111,"context_line":"        :param container_id: ID of the generated certificate"},{"line_number":112,"context_line":"        :returns: None"},{"line_number":113,"context_line":"        \"\"\""},{"line_number":114,"context_line":"        raise NotImplementedError  # pragma: no cover"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_76f27770","line":111,"updated":"2014-08-19 16:11:54.000000000","message":"id of container?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7b61efe11885169a70e6a511bc88298ed9164cb3","unresolved":false,"context_lines":[{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        :param project_id: Project/tenant ID associated with this certificate"},{"line_number":110,"context_line":"        :param order_id: ID associated with the order"},{"line_number":111,"context_line":"        :param container_id: ID of the generated certificate"},{"line_number":112,"context_line":"        :returns: None"},{"line_number":113,"context_line":"        \"\"\""},{"line_number":114,"context_line":"        raise NotImplementedError  # pragma: no cover"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_4814eaf4","line":111,"in_reply_to":"1abeadc6_76f27770","updated":"2014-08-19 22:54:00.000000000","message":"This is really the HATEOS URI reference to the generated certificate (bundled in a Container). Will reword this a bit.","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":121,"context_line":"        :param project_id: Project/tenant ID associated with this order"},{"line_number":122,"context_line":"        :param order_id: ID associated with the order"},{"line_number":123,"context_line":"        :param error_msg: Error message if it is available"},{"line_number":124,"context_line":"        :param retry_in_msec: Delay before reattempting to talk to the CA. If"},{"line_number":125,"context_line":"                              this is 0, then no reattempts will be performed."},{"line_number":126,"context_line":"        :returns: None"},{"line_number":127,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_b6488f88","line":124,"updated":"2014-08-19 16:11:54.000000000","message":"is \"reattempting\" a word?  :-)","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7b61efe11885169a70e6a511bc88298ed9164cb3","unresolved":false,"context_lines":[{"line_number":121,"context_line":"        :param project_id: Project/tenant ID associated with this order"},{"line_number":122,"context_line":"        :param order_id: ID associated with the order"},{"line_number":123,"context_line":"        :param error_msg: Error message if it is available"},{"line_number":124,"context_line":"        :param retry_in_msec: Delay before reattempting to talk to the CA. If"},{"line_number":125,"context_line":"                              this is 0, then no reattempts will be performed."},{"line_number":126,"context_line":"        :returns: None"},{"line_number":127,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_abc5783d","line":124,"in_reply_to":"1abeadc6_b6488f88","updated":"2014-08-19 22:54:00.000000000","message":"I thought so, but will reword.","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":271,"context_line":""},{"line_number":272,"context_line":"class _CertificateEventPluginManager(named.NamedExtensionManager):"},{"line_number":273,"context_line":"    \"\"\"Each time this class is initialized it will load a new instance"},{"line_number":274,"context_line":"    of each enabled crypto plugin. This is undesirable, so rather than"},{"line_number":275,"context_line":"    initializing a new instance of this class use the EVENT_PLUGIN_MANAGER"},{"line_number":276,"context_line":"    at the module level."},{"line_number":277,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_1607831d","line":274,"updated":"2014-08-19 16:11:54.000000000","message":"c/crypto/certificate?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":292,"context_line":"        \"\"\""},{"line_number":293,"context_line":"        for ext in self.extensions:"},{"line_number":294,"context_line":"            return ext.obj"},{"line_number":295,"context_line":"        raise CertificateEventPluginNotFound()"},{"line_number":296,"context_line":""},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"EVENT_PLUGIN_MANAGER \u003d _CertificateEventPluginManager()"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_b9afa093","line":295,"updated":"2014-08-19 16:11:54.000000000","message":"is there only 1 of these guys?  Related to the comments above, differentiate between \"can\u0027t find plugin X\" and \"no plugins available\".","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98e5e0cc5de256875a2d8364110bbfb9c4a5847","unresolved":false,"context_lines":[{"line_number":294,"context_line":"        :returns: CertficiateEventPluginBase plugin implementation"},{"line_number":295,"context_line":"        \"\"\""},{"line_number":296,"context_line":"        for ext in self.extensions:"},{"line_number":297,"context_line":"            return ext.obj"},{"line_number":298,"context_line":"        raise CertificateEventPluginNotFound()"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_8f1508e7","line":297,"updated":"2014-08-20 16:43:15.000000000","message":"This is confusing.  I understand why you\u0027ve written it this way, but my immediate reaction to seeing this was - does he know that this will just return the first one?\n\nIn any case, as you\u0027ll see in my subsequent comment, I don\u0027t this is the correct way to do this.","commit_id":"81b05db033a04d98c375897309dfac0428fa4785"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"21531dbb646a91ef5504e6d2948215f4cad8a4af","unresolved":false,"context_lines":[{"line_number":319,"context_line":"            raise CertificateEventPluginNotFound()"},{"line_number":320,"context_line":""},{"line_number":321,"context_line":"        for ext in self.extensions:"},{"line_number":322,"context_line":"            ext.obj.notify_certificate_is_ready("},{"line_number":323,"context_line":"                project_id, order_ref, container_ref)"},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"    def notify_ca_is_unavailable("}],"source_content_type":"text/x-python","patch_set":4,"id":"1abeadc6_4f7e831a","line":322,"updated":"2014-08-20 22:42:11.000000000","message":"is there any way for the manager to know which plugin to notify?  If not then plugins need to be able to ignore calls for certs that aren\u0027t their own, right?","commit_id":"043f9e5eeafb5f244deffa73d111a4298e7d258c"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"21531dbb646a91ef5504e6d2948215f4cad8a4af","unresolved":false,"context_lines":[{"line_number":328,"context_line":"            raise CertificateEventPluginNotFound()"},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"        for ext in self.extensions:"},{"line_number":331,"context_line":"            ext.obj.notify_ca_is_unavailable("},{"line_number":332,"context_line":"                project_id, order_ref, error_msg, retry_in_msec)"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1abeadc6_cf91b348","line":331,"updated":"2014-08-20 22:42:11.000000000","message":"If a ca isn\u0027t available then this notifies everyone - that seems to make sense since I would think that any plugin could use any ca?","commit_id":"043f9e5eeafb5f244deffa73d111a4298e7d258c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"7e9ffcbd14a9578263032c854846846dcebde17f","unresolved":false,"context_lines":[{"line_number":320,"context_line":""},{"line_number":321,"context_line":"        for ext in self.extensions:"},{"line_number":322,"context_line":"            ext.obj.notify_certificate_is_ready("},{"line_number":323,"context_line":"                project_id, order_ref, container_ref)"},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"    def notify_ca_is_unavailable("},{"line_number":326,"context_line":"            self, project_id, order_ref, error_msg, retry_in_msec):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_18566e2a","line":323,"updated":"2014-08-21 19:19:38.000000000","message":"Why notification is sent to multiple plugins? Not understanding the flow here. When certificate is ready, would not that be sent to notification dispatcher to hand off to queuing logic.\nCan you please clarify.","commit_id":"efb32fe6c437ef1041e623b720b892e415442c6b"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"8ffaff27206669fe40ef526a3b8656008784b07e","unresolved":false,"context_lines":[{"line_number":320,"context_line":""},{"line_number":321,"context_line":"        for ext in self.extensions:"},{"line_number":322,"context_line":"            ext.obj.notify_certificate_is_ready("},{"line_number":323,"context_line":"                project_id, order_ref, container_ref)"},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"    def notify_ca_is_unavailable("},{"line_number":326,"context_line":"            self, project_id, order_ref, error_msg, retry_in_msec):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_9697af39","line":323,"in_reply_to":"1abeadc6_18566e2a","updated":"2014-08-21 20:14:32.000000000","message":"I had been thinking that only one event handler plugin would be deployed at a time, but Ade pointed out that more than one event handler might be helpful...say one for audit, one for surfacing CADF events to Ceilometer for monitoring, etc.  I think this approach gives the flexibility for either mode of operation.  Is that still reasonable to you though?","commit_id":"efb32fe6c437ef1041e623b720b892e415442c6b"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"c41c1f78371a4b6762a28aacd2206834afaf2fde","unresolved":false,"context_lines":[{"line_number":330,"context_line":"        for ext in self.extensions:"},{"line_number":331,"context_line":"            ext.obj.notify_ca_is_unavailable("},{"line_number":332,"context_line":"                project_id, order_ref, error_msg, retry_in_msec)"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"EVENT_PLUGIN_MANAGER \u003d _CertificateEventPluginManager()"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_4db90f14","line":333,"updated":"2014-08-21 16:08:00.000000000","message":"I\u0027m OK with this plugin manager implementing the methods in the contract.  That way we can be sure that only the methods in the contract are invoked.  But the above methods - and any others that will be added are really duplicated boiler plate code.\n\nPerhaps we can have each of the above can an _invoke(func, args) method.  You could even add code that introspects CertificateEventPluginBase and throws an exception if the func being called is not valid.","commit_id":"efb32fe6c437ef1041e623b720b892e415442c6b"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"8ffaff27206669fe40ef526a3b8656008784b07e","unresolved":false,"context_lines":[{"line_number":330,"context_line":"        for ext in self.extensions:"},{"line_number":331,"context_line":"            ext.obj.notify_ca_is_unavailable("},{"line_number":332,"context_line":"                project_id, order_ref, error_msg, retry_in_msec)"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"EVENT_PLUGIN_MANAGER \u003d _CertificateEventPluginManager()"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_f6c8e356","line":333,"in_reply_to":"1abeadc6_4db90f14","updated":"2014-08-21 20:14:32.000000000","message":"Hmmm...I\u0027ll think about that one for a bit and put up another CR...","commit_id":"efb32fe6c437ef1041e623b720b892e415442c6b"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"47fd0b6a7f210605c3e58a9256165f15953a6af5","unresolved":false,"context_lines":[{"line_number":288,"context_line":"    def wrapper(self, *args, **kwargs):"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"        if len(self.extensions) \u003c 1:"},{"line_number":291,"context_line":"            raise CertificateEventPluginNotFound()"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"        func_name \u003d func.func_name"},{"line_number":294,"context_line":"        for ext in self.extensions:"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_ac1d2575","line":291,"updated":"2014-08-29 10:20:57.000000000","message":"I think this is not a propper exception to raise in this case, since it would be a misconfiguration issue (that there would be no extensions available) and not that it cannot find some extension.","commit_id":"910b6555bcaf831cf681d7369cc7815193a78ba3"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"edf25ea6a44c0283bdd4f6ca97413185d9e6c428","unresolved":false,"context_lines":[{"line_number":288,"context_line":"    def wrapper(self, *args, **kwargs):"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"        if len(self.extensions) \u003c 1:"},{"line_number":291,"context_line":"            raise CertificateEventPluginNotFound()"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"        func_name \u003d func.func_name"},{"line_number":294,"context_line":"        for ext in self.extensions:"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa98f980_c05b7f85","line":291,"in_reply_to":"1abeadc6_ac1d2575","updated":"2014-09-02 02:10:09.000000000","message":"Juan, this exception handles both no plugins configured or no supporting plugins found conditions...changing the wording of the exception message to reflect this.","commit_id":"910b6555bcaf831cf681d7369cc7815193a78ba3"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"47fd0b6a7f210605c3e58a9256165f15953a6af5","unresolved":false,"context_lines":[{"line_number":290,"context_line":"        if len(self.extensions) \u003c 1:"},{"line_number":291,"context_line":"            raise CertificateEventPluginNotFound()"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"        func_name \u003d func.func_name"},{"line_number":294,"context_line":"        for ext in self.extensions:"},{"line_number":295,"context_line":"            # Invoke the same function by name on the plugins as the wrapped"},{"line_number":296,"context_line":"            #   function has."}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_4c049117","line":293,"updated":"2014-08-29 10:20:57.000000000","message":"I think this is unnecessary","commit_id":"910b6555bcaf831cf681d7369cc7815193a78ba3"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"607c2301c9fa300c7caed5e0f25c3cb0a5ab066a","unresolved":false,"context_lines":[{"line_number":295,"context_line":"            # Invoke the same function by name on the plugins as the wrapped"},{"line_number":296,"context_line":"            #   function has."},{"line_number":297,"context_line":"            getattr(ext.obj, func_name)(*args, **kwargs)"},{"line_number":298,"context_line":"        return func(self, *args, **kwargs)"},{"line_number":299,"context_line":"    return wrapper"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_42136300","line":298,"updated":"2014-08-29 22:50:50.000000000","message":"Does ordering of function invocation matters? I mean, notification events are generated before or after actual wrapped function is called. I mean if there are errors raised in wrapped function, then probably we don\u0027t want to generate notification.\n\nIt may not matter if the manager code, Line#337, has no additional logic. Having little hard time in understanding the logic flow here.","commit_id":"910b6555bcaf831cf681d7369cc7815193a78ba3"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"edf25ea6a44c0283bdd4f6ca97413185d9e6c428","unresolved":false,"context_lines":[{"line_number":295,"context_line":"            # Invoke the same function by name on the plugins as the wrapped"},{"line_number":296,"context_line":"            #   function has."},{"line_number":297,"context_line":"            getattr(ext.obj, func_name)(*args, **kwargs)"},{"line_number":298,"context_line":"        return func(self, *args, **kwargs)"},{"line_number":299,"context_line":"    return wrapper"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa98f980_80c89723","line":298,"in_reply_to":"1abeadc6_42136300","updated":"2014-09-02 02:10:09.000000000","message":"I\u0027m redoing this altogether in the next approach.","commit_id":"910b6555bcaf831cf681d7369cc7815193a78ba3"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"e8aeda8ab45978f20f5650b05cc2e61be629f1eb","unresolved":false,"context_lines":[{"line_number":336,"context_line":"    @_invoke_certificate_plugins"},{"line_number":337,"context_line":"    def notify_certificate_is_ready("},{"line_number":338,"context_line":"            self, project_id, order_ref, container_ref):"},{"line_number":339,"context_line":"        pass"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"    @_invoke_certificate_plugins"},{"line_number":342,"context_line":"    def notify_ca_is_unavailable("}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_3c05f179","line":339,"updated":"2014-08-28 15:09:36.000000000","message":"Considering this doesn\u0027t look implemented, should this raise NotImplementedError?","commit_id":"910b6555bcaf831cf681d7369cc7815193a78ba3"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"63a2b85a5aa434a3ea772dc05dcb10efff213437","unresolved":false,"context_lines":[{"line_number":336,"context_line":"    @_invoke_certificate_plugins"},{"line_number":337,"context_line":"    def notify_certificate_is_ready("},{"line_number":338,"context_line":"            self, project_id, order_ref, container_ref):"},{"line_number":339,"context_line":"        pass"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"    @_invoke_certificate_plugins"},{"line_number":342,"context_line":"    def notify_ca_is_unavailable("}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_a6656fe2","line":339,"in_reply_to":"1abeadc6_3c05f179","updated":"2014-08-28 15:49:35.000000000","message":"Well, the _invoke_certificate_plugins decorator does invoke this method, at line #298 above. However the presence of these methods is to implement the abstract class methods, but the decorator actually does all the work, so that #298 function call is not really required. If that is not confusing (I can add comments to try to make that clear), I can make those changes.","commit_id":"910b6555bcaf831cf681d7369cc7815193a78ba3"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"47fd0b6a7f210605c3e58a9256165f15953a6af5","unresolved":false,"context_lines":[{"line_number":336,"context_line":"    @_invoke_certificate_plugins"},{"line_number":337,"context_line":"    def notify_certificate_is_ready("},{"line_number":338,"context_line":"            self, project_id, order_ref, container_ref):"},{"line_number":339,"context_line":"        pass"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"    @_invoke_certificate_plugins"},{"line_number":342,"context_line":"    def notify_ca_is_unavailable("}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_17438242","line":339,"in_reply_to":"1abeadc6_a6656fe2","updated":"2014-08-29 10:20:57.000000000","message":"I\u0027m actually having a bit of a hard time to follow, maybe a simpler or more explicit approach would be preferable?","commit_id":"910b6555bcaf831cf681d7369cc7815193a78ba3"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"e8aeda8ab45978f20f5650b05cc2e61be629f1eb","unresolved":false,"context_lines":[{"line_number":341,"context_line":"    @_invoke_certificate_plugins"},{"line_number":342,"context_line":"    def notify_ca_is_unavailable("},{"line_number":343,"context_line":"            self, project_id, order_ref, error_msg, retry_in_msec):"},{"line_number":344,"context_line":"        pass"},{"line_number":345,"context_line":""},{"line_number":346,"context_line":""},{"line_number":347,"context_line":"EVENT_PLUGIN_MANAGER \u003d _CertificateEventPluginManager()"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_7cfbe97a","line":344,"updated":"2014-08-28 15:09:36.000000000","message":"Same as above","commit_id":"910b6555bcaf831cf681d7369cc7815193a78ba3"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"ff8099d0ee7c92be0b01e28a77a75a353f5d5d3e","unresolved":false,"context_lines":[{"line_number":382,"context_line":"    def _invoke_certificate_plugins(self, *args, **kwargs):"},{"line_number":383,"context_line":"        \"\"\"Invoke same function on plugins as calling function.\"\"\""},{"line_number":384,"context_line":"        if len(self.extensions) \u003c 1:"},{"line_number":385,"context_line":"            raise CertificateEventPluginNotFound()"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"        func_name \u003d inspect.stack()[1][3]"},{"line_number":388,"context_line":"        for ext in self.extensions:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa98f980_49d793bf","line":385,"updated":"2014-09-02 19:06:06.000000000","message":"I understand your argument, but, I do think in a developer\u0027s perspective it would be better to have something more explicit, since these are two different problems:\n\n* one case is when you actually look for the plugin and not find it for some reason.\n\n* another case is when you look for the plugin, but there is a misconfiguration issue (which might be even the case when developing a plugin)\n\nThis is done with separate exceptions in the barbican.plugin.interface.secret_store module, where there is a SecretStorePluginsNotConfigured exception.","commit_id":"2ddb7c6a0eb50102fb27fa6bcada715d5f69322f"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"eb16d126f6daf47667ef41586ee20d434907d1f3","unresolved":false,"context_lines":[{"line_number":382,"context_line":"    def _invoke_certificate_plugins(self, *args, **kwargs):"},{"line_number":383,"context_line":"        \"\"\"Invoke same function on plugins as calling function.\"\"\""},{"line_number":384,"context_line":"        if len(self.extensions) \u003c 1:"},{"line_number":385,"context_line":"            raise CertificateEventPluginNotFound()"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"        func_name \u003d inspect.stack()[1][3]"},{"line_number":388,"context_line":"        for ext in self.extensions:"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa98f980_116931be","line":385,"in_reply_to":"fa98f980_49d793bf","updated":"2014-09-02 19:56:42.000000000","message":"The distinction between no-plugins configured and no-**supporting**-plugins-found is blurred in the code base now...for example, see: \nhttps://github.com/openstack/barbican/blob/master/barbican/plugin/interface/secret_store.py#L483\n\nTo provide the distinction you speak up, we would need to do the length check first and throw the config error, then do the supports() loop and throw no supporting plugin found. I know at one time we were on a tear to remove the separate length check, but I\u0027d be fine adding that back in.\n\nI think a separate CR should tackle that though. Does that make sense?","commit_id":"2ddb7c6a0eb50102fb27fa6bcada715d5f69322f"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"ff8099d0ee7c92be0b01e28a77a75a353f5d5d3e","unresolved":false,"context_lines":[{"line_number":384,"context_line":"        if len(self.extensions) \u003c 1:"},{"line_number":385,"context_line":"            raise CertificateEventPluginNotFound()"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"        func_name \u003d inspect.stack()[1][3]"},{"line_number":388,"context_line":"        for ext in self.extensions:"},{"line_number":389,"context_line":"            getattr(ext.obj, func_name)(*args, **kwargs)"},{"line_number":390,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa98f980_9b00e202","line":387,"updated":"2014-09-02 19:06:06.000000000","message":"can you be more explicit with what these numbers (1 and 3) represent? perhaps putting them in a variable or something of the sort? Even if those values come from the result of the function from this external dependency, they should be more self-evident.","commit_id":"2ddb7c6a0eb50102fb27fa6bcada715d5f69322f"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"eb16d126f6daf47667ef41586ee20d434907d1f3","unresolved":false,"context_lines":[{"line_number":384,"context_line":"        if len(self.extensions) \u003c 1:"},{"line_number":385,"context_line":"            raise CertificateEventPluginNotFound()"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"        func_name \u003d inspect.stack()[1][3]"},{"line_number":388,"context_line":"        for ext in self.extensions:"},{"line_number":389,"context_line":"            getattr(ext.obj, func_name)(*args, **kwargs)"},{"line_number":390,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa98f980_b19f85b3","line":387,"in_reply_to":"fa98f980_9b00e202","updated":"2014-09-02 19:56:42.000000000","message":"Sounds good...just making sure the use of \u0027inspect\u0027 didn\u0027t freak ya our!","commit_id":"2ddb7c6a0eb50102fb27fa6bcada715d5f69322f"}],"barbican/plugin/simple_certificate_manager.py":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":2,"context_line":"# you may not use this file except in compliance with the License."},{"line_number":3,"context_line":"# You may obtain a copy of the License at"},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_39739016","line":1,"updated":"2014-08-19 16:11:54.000000000","message":"do we need the Rackspace cpyrite?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7b61efe11885169a70e6a511bc88298ed9164cb3","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":2,"context_line":"# you may not use this file except in compliance with the License."},{"line_number":3,"context_line":"# You may obtain a copy of the License at"},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_eb2cd004","line":1,"in_reply_to":"1abeadc6_39739016","updated":"2014-08-19 22:54:00.000000000","message":"Jarret said we shouldn\u0027t be putting the Rackspace info on these files, as this code is open source licensed anyway.","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                            information here which Barbican will persist"},{"line_number":49,"context_line":"                            on their behalf."},{"line_number":50,"context_line":"        \"\"\""},{"line_number":51,"context_line":"        LOG.info(u._(\u0027Invoking modify_certificate_request()\u0027))"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def cancel_certificate_request(self, order_id, order_meta, plugin_meta):"},{"line_number":54,"context_line":"        \"\"\"Cancel the order"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_996e6400","line":51,"updated":"2014-08-19 16:11:54.000000000","message":"The updated status will be in the DTO that the user got when they called issue_certificate_request?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"7b61efe11885169a70e6a511bc88298ed9164cb3","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                            information here which Barbican will persist"},{"line_number":49,"context_line":"                            on their behalf."},{"line_number":50,"context_line":"        \"\"\""},{"line_number":51,"context_line":"        LOG.info(u._(\u0027Invoking modify_certificate_request()\u0027))"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def cancel_certificate_request(self, order_id, order_meta, plugin_meta):"},{"line_number":54,"context_line":"        \"\"\"Cancel the order"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_ab21f8fc","line":51,"in_reply_to":"1abeadc6_996e6400","updated":"2014-08-19 22:54:00.000000000","message":"Good point, they should all return the ResultDTO.","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                            information here which Barbican will persist"},{"line_number":61,"context_line":"                            on their behalf."},{"line_number":62,"context_line":"        \"\"\""},{"line_number":63,"context_line":"        LOG.info(u._(\u0027Invoking cancel_certificate_request()\u0027))"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    def check_certificate_status(self, order_id, order_meta, plugin_meta):"},{"line_number":66,"context_line":"        \"\"\"Check status of the order"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_19825494","line":63,"updated":"2014-08-19 16:11:54.000000000","message":"same as above - updated status","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                            information here which Barbican will persist"},{"line_number":73,"context_line":"                            on their behalf."},{"line_number":74,"context_line":"        \"\"\""},{"line_number":75,"context_line":"        LOG.info(u._(\u0027Invoking check_certificate_status()\u0027))"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def supports(self, certificate_spec):"},{"line_number":78,"context_line":"        \"\"\"Returns a boolean indicating if the plugin supports the"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_59320c11","line":75,"updated":"2014-08-19 16:11:54.000000000","message":"same as above - updated status?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    \"\"\"Simple/default certificate event plugin.\"\"\""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def notify_certificate_is_ready(self, project_id, order_id, container_id):"},{"line_number":93,"context_line":"        \"\"\"Notify that a certificate is generated and ready to use."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        :param project_id: Project/tenant ID associated with this certificate"},{"line_number":96,"context_line":"        :param order_id: ID associated with the order"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_9913c465","line":93,"updated":"2014-08-19 16:11:54.000000000","message":"c/is/has been\n\n\"and is ready to use\"","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"        :param project_id: Project/tenant ID associated with this certificate"},{"line_number":96,"context_line":"        :param order_id: ID associated with the order"},{"line_number":97,"context_line":"        :param container_id: ID of the generated certificate"},{"line_number":98,"context_line":"        :returns: None"},{"line_number":99,"context_line":"        \"\"\""},{"line_number":100,"context_line":"        LOG.info(u._(\u0027Invoking notify_certificate_is_ready()\u0027))"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_ec0eb831","line":97,"updated":"2014-08-19 16:11:54.000000000","message":"container contains certificate, or are they considered equiv?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        :param project_id: Project/tenant ID associated with this order"},{"line_number":107,"context_line":"        :param order_id: ID associated with the order"},{"line_number":108,"context_line":"        :param error_msg: Error message if it is available"},{"line_number":109,"context_line":"        :param retry_in_msec: Delay before reattempting to talk to the CA. If"},{"line_number":110,"context_line":"                              this is 0, then no reattempts will be performed."},{"line_number":111,"context_line":"        :returns: None"},{"line_number":112,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_cc681cbd","line":109,"updated":"2014-08-19 16:11:54.000000000","message":"ok, I guess \"reattempting\" is a real word :-)","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"}],"barbican/tasks/certificate_resources.py":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"e98e5e0cc5de256875a2d8364110bbfb9c4a5847","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        order_model.id,"},{"line_number":66,"context_line":"        result.status_message,"},{"line_number":67,"context_line":"        result.retry_msec)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"def _save_plugin_metadata(order_model, plugin_meta, repos):"},{"line_number":71,"context_line":"    \"\"\"Add plugin metadata to an order.\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_cf19c0d8","line":68,"updated":"2014-08-20 16:43:15.000000000","message":"This will just get the first configured plugin and use it to do a notification.  But isn\u0027t the point of having event plugins to be able to invoke multiple eventing plugins at once?  ie. if I want to say fire off a CADF event, write to an audit log and send off an email say, or talk to a ticketing system.\n\nSeems to me that we should have something like:\ncert.EVENT_PLUGIN_MANAGER.invoke(\"notify_ca_is_unavailable\", args, plugin_name\u003dNone)\n\nwhere invoke() will invoke the method on a specific plugin if plugin_name is specified, or on all configured plugins otherwise.\n\nThat also encapsulates the plugin details within the plugin_manager.","commit_id":"81b05db033a04d98c375897309dfac0428fa4785"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"c41c1f78371a4b6762a28aacd2206834afaf2fde","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        pass"},{"line_number":34,"context_line":"    elif cert.CertificateStatus.CERTIFICATE_GENERATED \u003d\u003d result.status:"},{"line_number":35,"context_line":"        #TODO(chellygel): Logic for store cert in container"},{"line_number":36,"context_line":"        pass"},{"line_number":37,"context_line":"    elif cert.CertificateStatus.CLIENT_DATA_ISSUE_SEEN \u003d\u003d result.status:"},{"line_number":38,"context_line":"        #TODO(chellygel): Logic for notify client of issue"},{"line_number":39,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_8d65e7b6","line":36,"updated":"2014-08-21 16:08:00.000000000","message":"Going to add something here for certificate generated?","commit_id":"efb32fe6c437ef1041e623b720b892e415442c6b"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"d3ff71a6572a89cc3724b2db8faf9a4521b7677b","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        pass"},{"line_number":34,"context_line":"    elif cert.CertificateStatus.CERTIFICATE_GENERATED \u003d\u003d result.status:"},{"line_number":35,"context_line":"        #TODO(chellygel): Logic for store cert in container"},{"line_number":36,"context_line":"        pass"},{"line_number":37,"context_line":"    elif cert.CertificateStatus.CLIENT_DATA_ISSUE_SEEN \u003d\u003d result.status:"},{"line_number":38,"context_line":"        #TODO(chellygel): Logic for notify client of issue"},{"line_number":39,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_118e4979","line":36,"in_reply_to":"1abeadc6_16d9df21","updated":"2014-08-21 20:33:16.000000000","message":"Thats fine,","commit_id":"efb32fe6c437ef1041e623b720b892e415442c6b"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"8ffaff27206669fe40ef526a3b8656008784b07e","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        pass"},{"line_number":34,"context_line":"    elif cert.CertificateStatus.CERTIFICATE_GENERATED \u003d\u003d result.status:"},{"line_number":35,"context_line":"        #TODO(chellygel): Logic for store cert in container"},{"line_number":36,"context_line":"        pass"},{"line_number":37,"context_line":"    elif cert.CertificateStatus.CLIENT_DATA_ISSUE_SEEN \u003d\u003d result.status:"},{"line_number":38,"context_line":"        #TODO(chellygel): Logic for notify client of issue"},{"line_number":39,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_16d9df21","line":36,"in_reply_to":"1abeadc6_8d65e7b6","updated":"2014-08-21 20:14:32.000000000","message":"I hadn\u0027t planned to add that in this initial CR. I figure as functionality is developed in in this file in future CRs, we should add the hooks in at that point?","commit_id":"efb32fe6c437ef1041e623b720b892e415442c6b"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"cf1b42d4ce2b320cd190d76035b642e08eef2f99","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    :param: order_model - order associated with this cert request"},{"line_number":63,"context_line":"    :param: tenant_model - tenant associated with this request"},{"line_number":64,"context_line":"    :param; repos - repos (to be removed)"},{"line_number":65,"context_line":"    :returns: container_model - container with the relevant cert if"},{"line_number":66,"context_line":"        the request has been completed.  None otherwise"},{"line_number":67,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa98f980_7147dd4b","line":64,"updated":"2014-09-02 20:13:00.000000000","message":"should be : after :param (its a semicolon now)","commit_id":"2ddb7c6a0eb50102fb27fa6bcada715d5f69322f"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"684d3d938168655bd3e179cba3f7fe48a746eeb0","unresolved":false,"context_lines":[{"line_number":225,"context_line":"        return dict()"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"def _ca_unavailable(order_model, result):"},{"line_number":229,"context_line":"    cert.EVENT_PLUGIN_MANAGER.notify_ca_is_unavailable("},{"line_number":230,"context_line":"        order_model.tenant_id,"},{"line_number":231,"context_line":"        order_model.id,"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_8fbb38e4","line":228,"updated":"2014-09-02 21:15:51.000000000","message":"does it make sense to call this _notify_ca_unavailable() ?","commit_id":"c5962c45fe0dc4b41b2e3f0f0e0db3bf27f64a6c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"465d61587721f115f7bcc5daa7dbdf394813a38a","unresolved":false,"context_lines":[{"line_number":228,"context_line":"def _ca_unavailable(order_model, result):"},{"line_number":229,"context_line":"    cert.EVENT_PLUGIN_MANAGER.notify_ca_is_unavailable("},{"line_number":230,"context_line":"        order_model.tenant_id,"},{"line_number":231,"context_line":"        order_model.id,"},{"line_number":232,"context_line":"        result.status_message,"},{"line_number":233,"context_line":"        result.retry_msec)"},{"line_number":234,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa98f980_029d5a59","line":231,"updated":"2014-09-02 22:58:50.000000000","message":"Is it supposed to order_ref or just id? As per base API, it appears to be reference URI to the order.","commit_id":"c5962c45fe0dc4b41b2e3f0f0e0db3bf27f64a6c"}],"barbican/tests/plugin/interface/test_certificate_manager.py":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":2,"context_line":"# you may not use this file except in compliance with the License."},{"line_number":3,"context_line":"# You may obtain a copy of the License at"},{"line_number":4,"context_line":"#"},{"line_number":5,"context_line":"#    http://www.apache.org/licenses/LICENSE-2.0"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_ecaa38d1","line":2,"updated":"2014-08-19 16:11:54.000000000","message":"Rackspace cpyrite?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"}],"barbican/tests/plugin/test_simple_certificate_manager.py":[{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"47aff03f594939ebac003654b31c1bfb26d9f493","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        self.plugin \u003d simple.SimpleCertificateEventPlugin()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def test_notify_ca_is_unavailable(self):"},{"line_number":59,"context_line":"        self.plugin.notify_ca_is_unavailable(None, None, None, None)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def test_notify_certificate_is_ready(self):"},{"line_number":62,"context_line":"        self.plugin.notify_certificate_is_ready(None, None, None)"}],"source_content_type":"text/x-python","patch_set":11,"id":"fa98f980_f27564cb","line":59,"range":{"start_line":59,"start_character":13,"end_line":59,"end_character":19},"updated":"2014-09-03 18:15:41.000000000","message":"Shouldn\u0027t there be an assertion in here?","commit_id":"8389c3b4c3f7206648c88dd675c16e35087250e6"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"18ec60a8927e19f76ef0e99dff12039acf3ee8f1","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        self.plugin \u003d simple.SimpleCertificateEventPlugin()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def test_notify_ca_is_unavailable(self):"},{"line_number":59,"context_line":"        self.plugin.notify_ca_is_unavailable(None, None, None, None)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def test_notify_certificate_is_ready(self):"},{"line_number":62,"context_line":"        self.plugin.notify_certificate_is_ready(None, None, None)"}],"source_content_type":"text/x-python","patch_set":11,"id":"fa98f980_d8c5e18e","line":59,"range":{"start_line":59,"start_character":13,"end_line":59,"end_character":19},"in_reply_to":"fa98f980_f27564cb","updated":"2014-09-03 18:41:00.000000000","message":"The cert event plugin is only use to handle/surface events...it should not ever raise exceptions. :)","commit_id":"8389c3b4c3f7206648c88dd675c16e35087250e6"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"47aff03f594939ebac003654b31c1bfb26d9f493","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        self.plugin.notify_ca_is_unavailable(None, None, None, None)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def test_notify_certificate_is_ready(self):"},{"line_number":62,"context_line":"        self.plugin.notify_certificate_is_ready(None, None, None)"}],"source_content_type":"text/x-python","patch_set":11,"id":"fa98f980_127f48ac","line":62,"range":{"start_line":62,"start_character":20,"end_line":62,"end_character":47},"updated":"2014-09-03 18:15:41.000000000","message":"Same as above","commit_id":"8389c3b4c3f7206648c88dd675c16e35087250e6"}],"barbican/tests/tasks/test_certificate_resources.py":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        self.cert_plugin_patcher.start()"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def _config_cert_event_plugin(self):"},{"line_number":136,"context_line":"        \"\"\"Setting up mock data for the certificate event plugin manager.\"\"\""},{"line_number":137,"context_line":"        cert_event_plugin_config \u003d {"},{"line_number":138,"context_line":"            \u0027get_plugin.return_value\u0027: self.cert_event_plugin"},{"line_number":139,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_d9f8dc7e","line":136,"updated":"2014-08-19 16:11:54.000000000","message":"\"Set up\"?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":145,"context_line":"        self.cert_event_plugin_patcher.start()"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    def _config_save_meta_plugin(self):"},{"line_number":148,"context_line":"        \"\"\"Setting up mock data for save plugin meta.\"\"\""},{"line_number":149,"context_line":"        self.save_plugin_meta_patcher \u003d mock.patch("},{"line_number":150,"context_line":"            \u0027barbican.tasks.certificate_resources._save_plugin_metadata\u0027"},{"line_number":151,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_99366451","line":148,"updated":"2014-08-19 16:11:54.000000000","message":"\"Set up\"?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":152,"context_line":"        self.mock_save_plugin \u003d self.save_plugin_meta_patcher.start()"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def _config_get_meta_plugin(self):"},{"line_number":155,"context_line":"        \"\"\"Setting up mock data for get plugin meta.\"\"\""},{"line_number":156,"context_line":"        get_plugin_config \u003d {\u0027return_value\u0027: self.plugin_meta}"},{"line_number":157,"context_line":"        self.get_plugin_meta_patcher \u003d mock.patch("},{"line_number":158,"context_line":"            \u0027barbican.tasks.certificate_resources._get_plugin_meta\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1abeadc6_f92118fd","line":155,"updated":"2014-08-19 16:11:54.000000000","message":"\"Set up?\"","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"47aff03f594939ebac003654b31c1bfb26d9f493","unresolved":false,"context_lines":[{"line_number":57,"context_line":"                self.plugin_meta \u003d plugin_meta"},{"line_number":58,"context_line":"                self.order_model \u003d order_model"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        test_repo \u003d Repo()"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        class Repos(object):"},{"line_number":63,"context_line":"            def __init__(self, repo):"}],"source_content_type":"text/x-python","patch_set":11,"id":"fa98f980_ad0c5d3c","line":60,"range":{"start_line":60,"start_character":8,"end_line":60,"end_character":17},"updated":"2014-09-03 18:15:41.000000000","message":"Shouldn\u0027t this go right above line 66 instead of in between two nested classes?","commit_id":"8389c3b4c3f7206648c88dd675c16e35087250e6"}],"etc/barbican/barbican-api.conf":[{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"e390e2444b362f1a39ce05e390eafc49b15405e8","unresolved":false,"context_lines":[{"line_number":181,"context_line":"[certificate]"},{"line_number":182,"context_line":"namespace \u003d barbican.certificate.plugin"},{"line_number":183,"context_line":"enabled_certificate_plugins \u003d simple_certificate"},{"line_number":184,"context_line":"#enabled_certificate_plugins \u003d symantec"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"[certificate_event]"},{"line_number":187,"context_line":"namespace \u003d barbican.certificate.event.plugin"}],"source_content_type":"text/plain","patch_set":1,"id":"1abeadc6_d6134b5a","line":184,"updated":"2014-08-19 16:11:54.000000000","message":"was this just for testing?","commit_id":"784272fccc16344bf4bcabe2baf15e950f51bd55"}],"setup.cfg":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"6b599c13749d84c40cee054d635be991ce3bf058","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    simple_crypto \u003d barbican.plugin.crypto.simple_crypto:SimpleCryptoPlugin"},{"line_number":36,"context_line":"barbican.certificate.plugin \u003d"},{"line_number":37,"context_line":"    simple_certificate \u003d barbican.plugin.simple_certificate_manager:SimpleCertificatePlugin"},{"line_number":38,"context_line":"    symantec \u003d barbican.plugin.symantec:SymantecCertificatePlugin"},{"line_number":39,"context_line":"barbican.certificate.event.plugin \u003d"},{"line_number":40,"context_line":"    simple_certificate_event \u003d barbican.plugin.simple_certificate_manager:SimpleCertificateEventPlugin"},{"line_number":41,"context_line":"barbican.test.crypto.plugin \u003d"}],"source_content_type":"text/x-ttcn-cfg","patch_set":11,"id":"fa98f980_dc7cfcb7","line":38,"updated":"2014-09-03 15:50:57.000000000","message":"If you end up doing another update, can you add the dogtag cert plugin here too?\n\nIf not, no worries - I will add in another CR,","commit_id":"8389c3b4c3f7206648c88dd675c16e35087250e6"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"04a20693e875bdb9e330d06b5d040fd49f432ed0","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    simple_crypto \u003d barbican.plugin.crypto.simple_crypto:SimpleCryptoPlugin"},{"line_number":36,"context_line":"barbican.certificate.plugin \u003d"},{"line_number":37,"context_line":"    simple_certificate \u003d barbican.plugin.simple_certificate_manager:SimpleCertificatePlugin"},{"line_number":38,"context_line":"    symantec \u003d barbican.plugin.symantec:SymantecCertificatePlugin"},{"line_number":39,"context_line":"barbican.certificate.event.plugin \u003d"},{"line_number":40,"context_line":"    simple_certificate_event \u003d barbican.plugin.simple_certificate_manager:SimpleCertificateEventPlugin"},{"line_number":41,"context_line":"barbican.test.crypto.plugin \u003d"}],"source_content_type":"text/x-ttcn-cfg","patch_set":11,"id":"fa98f980_53df120d","line":38,"in_reply_to":"fa98f980_dc7cfcb7","updated":"2014-09-03 19:24:08.000000000","message":"I\u0027m adding one shortly, so will put it in...","commit_id":"8389c3b4c3f7206648c88dd675c16e35087250e6"}]}
