)]}'
{"mistral/actions/std_actions.py":[{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"36f90178552be704cd82da0d4d19363d31cd42c5","unresolved":false,"context_lines":[{"line_number":387,"context_line":"        return ssh_utils.execute_command_via_gateway"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"    def __init__(self, cmd, host, username, private_key, gateway_host,"},{"line_number":390,"context_line":"                 gateway_username\u003dNone, password\u003dNone, proxy_command\u003dNone):"},{"line_number":391,"context_line":"        super(GatewaySSHAction, self).__init__("},{"line_number":392,"context_line":"            cmd,"},{"line_number":393,"context_line":"            host,"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_0b70a671","line":390,"updated":"2015-10-06 12:59:00.000000000","message":"What is proxy_command?","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":7700,"name":"Nikolay Mahotkin","email":"nikolay.makhotkin@gmail.com","username":"nmakhotkin"},"change_message_id":"00110e08006e980f2a55b70b01d30159952ed30f","unresolved":false,"context_lines":[{"line_number":387,"context_line":"        return ssh_utils.execute_command_via_gateway"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"    def __init__(self, cmd, host, username, private_key, gateway_host,"},{"line_number":390,"context_line":"                 gateway_username\u003dNone, password\u003dNone, proxy_command\u003dNone):"},{"line_number":391,"context_line":"        super(GatewaySSHAction, self).__init__("},{"line_number":392,"context_line":"            cmd,"},{"line_number":393,"context_line":"            host,"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_2801e5ae","line":390,"in_reply_to":"7a2fa921_0b70a671","updated":"2015-10-06 13:44:43.000000000","message":"proxyCommand specifies the command to use to connect to the server (by default netcat is used), see details at http://www.cyberciti.biz/faq/linux-unix-ssh-proxycommand-passing-through-one-host-gateway-server/\n\nGenerally, user must be available to change that command.","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"47f149c0477927b38db73b9cf6e6c51e295f3e75","unresolved":false,"context_lines":[{"line_number":387,"context_line":"        return ssh_utils.execute_command_via_gateway"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"    def __init__(self, cmd, host, username, private_key, gateway_host,"},{"line_number":390,"context_line":"                 gateway_username\u003dNone, password\u003dNone, proxy_command\u003dNone):"},{"line_number":391,"context_line":"        super(GatewaySSHAction, self).__init__("},{"line_number":392,"context_line":"            cmd,"},{"line_number":393,"context_line":"            host,"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_870d5b40","line":390,"in_reply_to":"7a2fa921_2801e5ae","updated":"2015-10-07 10:11:02.000000000","message":"Ok, clear.","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"}],"mistral/utils/ssh_utils.py":[{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"36f90178552be704cd82da0d4d19363d31cd42c5","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    return ssh"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"def _cleanup(ssh):"},{"line_number":64,"context_line":"    ssh.close()"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_26f3570c","line":63,"updated":"2015-10-06 12:59:00.000000000","message":"I somewhat don\u0027t like that it\u0027s called just \"ssh\". It\u0027s not clear what it is. A better name could be \"ssh_session\", \"ssh_connection\" etc.","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":7700,"name":"Nikolay Mahotkin","email":"nikolay.makhotkin@gmail.com","username":"nmakhotkin"},"change_message_id":"00110e08006e980f2a55b70b01d30159952ed30f","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    return ssh"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"def _cleanup(ssh):"},{"line_number":64,"context_line":"    ssh.close()"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_a8b975eb","line":63,"in_reply_to":"7a2fa921_26f3570c","updated":"2015-10-06 13:44:43.000000000","message":"In fact, it is ssh_client.","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"36f90178552be704cd82da0d4d19363d31cd42c5","unresolved":false,"context_lines":[{"line_number":89,"context_line":"def execute_command_via_gateway(cmd, host, username, private_key,"},{"line_number":90,"context_line":"                                gateway_host, gateway_username\u003dNone,"},{"line_number":91,"context_line":"                                proxy_command\u003dNone, password\u003dNone):"},{"line_number":92,"context_line":"    LOG.debug(\u0027Creating SSH connection\u0027)"},{"line_number":93,"context_line":"    if isinstance(private_key, six.string_types):"},{"line_number":94,"context_line":"        private_key \u003d _to_paramiko_private_key(private_key, password)"},{"line_number":95,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_eb6d2a33","line":92,"updated":"2015-10-06 12:59:00.000000000","message":"Soft: Blank line before \"if\".","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":7700,"name":"Nikolay Mahotkin","email":"nikolay.makhotkin@gmail.com","username":"nmakhotkin"},"change_message_id":"00110e08006e980f2a55b70b01d30159952ed30f","unresolved":false,"context_lines":[{"line_number":89,"context_line":"def execute_command_via_gateway(cmd, host, username, private_key,"},{"line_number":90,"context_line":"                                gateway_host, gateway_username\u003dNone,"},{"line_number":91,"context_line":"                                proxy_command\u003dNone, password\u003dNone):"},{"line_number":92,"context_line":"    LOG.debug(\u0027Creating SSH connection\u0027)"},{"line_number":93,"context_line":"    if isinstance(private_key, six.string_types):"},{"line_number":94,"context_line":"        private_key \u003d _to_paramiko_private_key(private_key, password)"},{"line_number":95,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_08c5093b","line":92,"in_reply_to":"7a2fa921_eb6d2a33","updated":"2015-10-06 13:44:43.000000000","message":"Done","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"36f90178552be704cd82da0d4d19363d31cd42c5","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        private_key \u003d _to_paramiko_private_key(private_key, password)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    proxy \u003d None"},{"line_number":97,"context_line":"    if proxy_command:"},{"line_number":98,"context_line":"        LOG.debug(\u0027Creating proxy using command: %s\u0027 % proxy_command)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        proxy \u003d paramiko.ProxyCommand(proxy_command)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_ab773201","line":97,"updated":"2015-10-06 12:59:00.000000000","message":"Soft: Blank line before \"if\".","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":7700,"name":"Nikolay Mahotkin","email":"nikolay.makhotkin@gmail.com","username":"nmakhotkin"},"change_message_id":"00110e08006e980f2a55b70b01d30159952ed30f","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        private_key \u003d _to_paramiko_private_key(private_key, password)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    proxy \u003d None"},{"line_number":97,"context_line":"    if proxy_command:"},{"line_number":98,"context_line":"        LOG.debug(\u0027Creating proxy using command: %s\u0027 % proxy_command)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        proxy \u003d paramiko.ProxyCommand(proxy_command)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_28c24534","line":97,"in_reply_to":"7a2fa921_ab773201","updated":"2015-10-06 13:44:43.000000000","message":"Done","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"36f90178552be704cd82da0d4d19363d31cd42c5","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        proxy \u003d paramiko.ProxyCommand(proxy_command)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    _proxy_ssh \u003d paramiko.SSHClient()"},{"line_number":103,"context_line":"    _proxy_ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    LOG.debug(\u0027Connecting to proxy gateway at: %s\u0027 % gateway_host)"},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_2be8027c","line":103,"updated":"2015-10-06 12:59:00.000000000","message":"What does this policy do?","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":7700,"name":"Nikolay Mahotkin","email":"nikolay.makhotkin@gmail.com","username":"nmakhotkin"},"change_message_id":"00110e08006e980f2a55b70b01d30159952ed30f","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        proxy \u003d paramiko.ProxyCommand(proxy_command)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    _proxy_ssh \u003d paramiko.SSHClient()"},{"line_number":103,"context_line":"    _proxy_ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    LOG.debug(\u0027Connecting to proxy gateway at: %s\u0027 % gateway_host)"},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_68c83d56","line":103,"in_reply_to":"7a2fa921_2be8027c","updated":"2015-10-06 13:44:43.000000000","message":"This policy automatically makes session to establish the connection to unknown host. Otherwise RejectPolicy will be used. See doc: http://paramiko-docs.readthedocs.org/en/latest/api/client.html#paramiko.client.AutoAddPolicy","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"47f149c0477927b38db73b9cf6e6c51e295f3e75","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        proxy \u003d paramiko.ProxyCommand(proxy_command)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    _proxy_ssh \u003d paramiko.SSHClient()"},{"line_number":103,"context_line":"    _proxy_ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    LOG.debug(\u0027Connecting to proxy gateway at: %s\u0027 % gateway_host)"},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_c209012e","line":103,"in_reply_to":"7a2fa921_68c83d56","updated":"2015-10-07 10:11:02.000000000","message":"Done","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"36f90178552be704cd82da0d4d19363d31cd42c5","unresolved":false,"context_lines":[{"line_number":115,"context_line":"    )"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    proxy \u003d _proxy_ssh.get_transport().open_session()"},{"line_number":118,"context_line":"    proxy.exec_command(\"nc {0} 22\".format(host))"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    ssh \u003d _connect(host, username\u003dusername, pkey\u003dprivate_key, proxy\u003dproxy)"},{"line_number":121,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_a66207d7","line":118,"updated":"2015-10-06 12:59:00.000000000","message":"Why are using netcat here? Can we just use \"ssh\" under an ssh-session again? Some explanations would be helpful here.","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"47f149c0477927b38db73b9cf6e6c51e295f3e75","unresolved":false,"context_lines":[{"line_number":115,"context_line":"    )"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    proxy \u003d _proxy_ssh.get_transport().open_session()"},{"line_number":118,"context_line":"    proxy.exec_command(\"nc {0} 22\".format(host))"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    ssh \u003d _connect(host, username\u003dusername, pkey\u003dprivate_key, proxy\u003dproxy)"},{"line_number":121,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_82146944","line":118,"in_reply_to":"7a2fa921_8b26f366","updated":"2015-10-07 10:11:02.000000000","message":"Done","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":7700,"name":"Nikolay Mahotkin","email":"nikolay.makhotkin@gmail.com","username":"nmakhotkin"},"change_message_id":"00110e08006e980f2a55b70b01d30159952ed30f","unresolved":false,"context_lines":[{"line_number":115,"context_line":"    )"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    proxy \u003d _proxy_ssh.get_transport().open_session()"},{"line_number":118,"context_line":"    proxy.exec_command(\"nc {0} 22\".format(host))"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    ssh \u003d _connect(host, username\u003dusername, pkey\u003dprivate_key, proxy\u003dproxy)"},{"line_number":121,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_8b26f366","line":118,"in_reply_to":"7a2fa921_a66207d7","updated":"2015-10-06 13:44:43.000000000","message":"netcat is used to pass connection to next server here. Using ssh twice we would have an issue: the problem with passing the original private key to 2nd server.","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"}],"setup.cfg":[{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"36f90178552be704cd82da0d4d19363d31cd42c5","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    std.http \u003d mistral.actions.std_actions:HTTPAction"},{"line_number":47,"context_line":"    std.mistral_http \u003d mistral.actions.std_actions:MistralHTTPAction"},{"line_number":48,"context_line":"    std.ssh \u003d mistral.actions.std_actions:SSHAction"},{"line_number":49,"context_line":"    std.ssh_gateway \u003d mistral.actions.std_actions:GatewaySSHAction"},{"line_number":50,"context_line":"    std.email \u003d mistral.actions.std_actions:SendEmailAction"},{"line_number":51,"context_line":"    std.javascript \u003d mistral.actions.std_actions:JavaScriptAction"}],"source_content_type":"text/x-ttcn-cfg","patch_set":2,"id":"7a2fa921_86634bb1","line":49,"updated":"2015-10-06 12:59:00.000000000","message":"ssh_gateway is not consistent with GatewaySSHAction. How about renaming GatewaySSHAction to SSHGatewayAction or may be SSHProxiedAction?","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"},{"author":{"_account_id":7700,"name":"Nikolay Mahotkin","email":"nikolay.makhotkin@gmail.com","username":"nmakhotkin"},"change_message_id":"00110e08006e980f2a55b70b01d30159952ed30f","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    std.http \u003d mistral.actions.std_actions:HTTPAction"},{"line_number":47,"context_line":"    std.mistral_http \u003d mistral.actions.std_actions:MistralHTTPAction"},{"line_number":48,"context_line":"    std.ssh \u003d mistral.actions.std_actions:SSHAction"},{"line_number":49,"context_line":"    std.ssh_gateway \u003d mistral.actions.std_actions:GatewaySSHAction"},{"line_number":50,"context_line":"    std.email \u003d mistral.actions.std_actions:SendEmailAction"},{"line_number":51,"context_line":"    std.javascript \u003d mistral.actions.std_actions:JavaScriptAction"}],"source_content_type":"text/x-ttcn-cfg","patch_set":2,"id":"7a2fa921_0bf3c39f","line":49,"in_reply_to":"7a2fa921_86634bb1","updated":"2015-10-06 13:44:43.000000000","message":"yep, SSHProxied better fits to this action.","commit_id":"d3e288c64e6d9ba0b2e1d0e3dcba308446bd90d2"}]}
