)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"ac135b9e82497c25344824963f261f0abd5ebdb7","unresolved":false,"context_lines":[{"line_number":10,"context_line":"of public key. Reuse already existing func \u0027read_file_as_root\u0027 for getting"},{"line_number":11,"context_line":"value of public key file."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I7047bba17df1f12907a4c7ced2c17afc7e05756c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1a4dcd0f_bda9d292","line":13,"updated":"2015-08-07 22:09:48.000000000","message":"needs bug #","commit_id":"bed266e1fc067a01db5ae5827dfb7567557d2271"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"363f90b629b5252e2e3c2e33657b6d3a718d3b04","unresolved":false,"context_lines":[{"line_number":10,"context_line":"of public key. Reuse already existing func \u0027read_file_as_root\u0027 for getting"},{"line_number":11,"context_line":"value of public key file."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I7047bba17df1f12907a4c7ced2c17afc7e05756c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1a4dcd0f_98083bdb","line":13,"in_reply_to":"1a4dcd0f_bda9d292","updated":"2015-08-11 11:11:50.000000000","message":"Done","commit_id":"bed266e1fc067a01db5ae5827dfb7567557d2271"}],"manila/share/drivers/service_instance.py":[{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"ca68ffc30103637f201980880a19dc245ffafdc7","unresolved":false,"context_lines":[{"line_number":437,"context_line":"        if len(keypairs) \u003e 1:"},{"line_number":438,"context_line":"            raise exception.ServiceInstanceException(_(\u0027Ambiguous keypairs.\u0027))"},{"line_number":439,"context_line":""},{"line_number":440,"context_line":"        public_key \u003d utils.read_file_as_root(path_to_public_key)"},{"line_number":441,"context_line":"        if not public_key:"},{"line_number":442,"context_line":"            LOG.warning(_LW(\"Public key \u0027%s\u0027 is empty.\") % path_to_public_key)"},{"line_number":443,"context_line":"        if not keypairs:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_9aeceec8","line":440,"updated":"2015-08-04 12:10:41.000000000","message":"do we really need to read it as \"root\"?","commit_id":"bed266e1fc067a01db5ae5827dfb7567557d2271"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"363f90b629b5252e2e3c2e33657b6d3a718d3b04","unresolved":false,"context_lines":[{"line_number":437,"context_line":"        if len(keypairs) \u003e 1:"},{"line_number":438,"context_line":"            raise exception.ServiceInstanceException(_(\u0027Ambiguous keypairs.\u0027))"},{"line_number":439,"context_line":""},{"line_number":440,"context_line":"        public_key \u003d utils.read_file_as_root(path_to_public_key)"},{"line_number":441,"context_line":"        if not public_key:"},{"line_number":442,"context_line":"            LOG.warning(_LW(\"Public key \u0027%s\u0027 is empty.\") % path_to_public_key)"},{"line_number":443,"context_line":"        if not keypairs:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_d8ec83f5","line":440,"in_reply_to":"1a4dcd0f_1d217db4","updated":"2015-08-11 11:11:50.000000000","message":"Filed bug [1] and referenced to it in commit message.\n\n[1] https://bugs.launchpad.net/manila/+bug/1483655\n\nThomas, there is no need to document \"such things\" when we stop having such restriction with this change.","commit_id":"bed266e1fc067a01db5ae5827dfb7567557d2271"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"91e8ed314659be70ca9a0f41f23d5f4d0bcd6e68","unresolved":false,"context_lines":[{"line_number":437,"context_line":"        if len(keypairs) \u003e 1:"},{"line_number":438,"context_line":"            raise exception.ServiceInstanceException(_(\u0027Ambiguous keypairs.\u0027))"},{"line_number":439,"context_line":""},{"line_number":440,"context_line":"        public_key \u003d utils.read_file_as_root(path_to_public_key)"},{"line_number":441,"context_line":"        if not public_key:"},{"line_number":442,"context_line":"            LOG.warning(_LW(\"Public key \u0027%s\u0027 is empty.\") % path_to_public_key)"},{"line_number":443,"context_line":"        if not keypairs:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_b324ba5f","line":440,"in_reply_to":"1a4dcd0f_4a48a22d","updated":"2015-08-07 14:20:34.000000000","message":"What about documenting that the public key must be accessable by the user under which manila is running?","commit_id":"bed266e1fc067a01db5ae5827dfb7567557d2271"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"23fb996406138b21ffa6e115c89d3d87bfc759f5","unresolved":false,"context_lines":[{"line_number":437,"context_line":"        if len(keypairs) \u003e 1:"},{"line_number":438,"context_line":"            raise exception.ServiceInstanceException(_(\u0027Ambiguous keypairs.\u0027))"},{"line_number":439,"context_line":""},{"line_number":440,"context_line":"        public_key \u003d utils.read_file_as_root(path_to_public_key)"},{"line_number":441,"context_line":"        if not public_key:"},{"line_number":442,"context_line":"            LOG.warning(_LW(\"Public key \u0027%s\u0027 is empty.\") % path_to_public_key)"},{"line_number":443,"context_line":"        if not keypairs:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_1d217db4","line":440,"in_reply_to":"1a4dcd0f_7d7b4a2a","updated":"2015-08-11 11:01:34.000000000","message":"In case of autosetup by devstack - no problem. But if we set up some custom key from some specific place then it is very likely to get \"permission denied\" result.","commit_id":"bed266e1fc067a01db5ae5827dfb7567557d2271"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"349bc38574b20cb3344960fb12757318bf9d1292","unresolved":false,"context_lines":[{"line_number":437,"context_line":"        if len(keypairs) \u003e 1:"},{"line_number":438,"context_line":"            raise exception.ServiceInstanceException(_(\u0027Ambiguous keypairs.\u0027))"},{"line_number":439,"context_line":""},{"line_number":440,"context_line":"        public_key \u003d utils.read_file_as_root(path_to_public_key)"},{"line_number":441,"context_line":"        if not public_key:"},{"line_number":442,"context_line":"            LOG.warning(_LW(\"Public key \u0027%s\u0027 is empty.\") % path_to_public_key)"},{"line_number":443,"context_line":"        if not keypairs:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_4a48a22d","line":440,"in_reply_to":"1a4dcd0f_9aeceec8","updated":"2015-08-05 08:13:13.000000000","message":"Do we really need to expect that it is accessible without root rights?","commit_id":"bed266e1fc067a01db5ae5827dfb7567557d2271"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"ac135b9e82497c25344824963f261f0abd5ebdb7","unresolved":false,"context_lines":[{"line_number":437,"context_line":"        if len(keypairs) \u003e 1:"},{"line_number":438,"context_line":"            raise exception.ServiceInstanceException(_(\u0027Ambiguous keypairs.\u0027))"},{"line_number":439,"context_line":""},{"line_number":440,"context_line":"        public_key \u003d utils.read_file_as_root(path_to_public_key)"},{"line_number":441,"context_line":"        if not public_key:"},{"line_number":442,"context_line":"            LOG.warning(_LW(\"Public key \u0027%s\u0027 is empty.\") % path_to_public_key)"},{"line_number":443,"context_line":"        if not keypairs:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_7d7b4a2a","line":440,"in_reply_to":"1a4dcd0f_b324ba5f","updated":"2015-08-07 22:09:48.000000000","message":"Both proposed solution sound sensible to me. I\u0027m confused about which issue this solves though as there is no bug. Did something happen to the installation of public keys due to recent nova or manila-image-elements changes?","commit_id":"bed266e1fc067a01db5ae5827dfb7567557d2271"},{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"5b8bc45fcdddcf53649ff9d219e6d85828b22c74","unresolved":false,"context_lines":[{"line_number":451,"context_line":"        if len(keypairs) \u003e 1:"},{"line_number":452,"context_line":"            raise exception.ServiceInstanceException(_(\u0027Ambiguous keypairs.\u0027))"},{"line_number":453,"context_line":""},{"line_number":454,"context_line":"        public_key \u003d utils.read_file_as_root(path_to_public_key)"},{"line_number":455,"context_line":"        if not public_key:"},{"line_number":456,"context_line":"            LOG.warning(_LW(\"Public key \u0027%s\u0027 is empty.\") % path_to_public_key)"},{"line_number":457,"context_line":"        if not keypairs:"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_e27ed769","line":454,"updated":"2015-09-08 12:03:58.000000000","message":"If this code is considered to run in a production system I would not switch to root and read files with wrong permissions. I have security concerns since ssh keys (private + public) can be manipulated.","commit_id":"5e982107fbfeac41109135eeb6095d86d0de188f"}]}
