)]}'
{"nova/virt/xenapi/agent.py":[{"author":{"_account_id":2835,"name":"Brian Elliott","email":"bdelliott@gmail.com","username":"belliott"},"change_message_id":"ef0ffb3bb5a1435f6d2eb00c21b60b00519262ea","unresolved":false,"context_lines":[{"line_number":199,"context_line":"            ctxt \u003d context.get_admin_context()"},{"line_number":200,"context_line":"            enc \u003d crypto.ssh_encrypt_text(sshkey, new_pass)"},{"line_number":201,"context_line":"            sys_meta \u003d utils.instance_sys_meta(self.instance)"},{"line_number":202,"context_line":"            sys_meta.update(password.convert_password(ctxt,"},{"line_number":203,"context_line":"                                                      base64.b64encode(enc)))"},{"line_number":204,"context_line":"            self.virtapi.instance_update(ctxt, self.instance[\u0027uuid\u0027],"},{"line_number":205,"context_line":"                                         {\u0027system_metadata\u0027: sys_meta})"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAQn%2F%2FdP4%3D","line":202,"updated":"2013-07-30 22:09:56.000000000","message":"Out of curiosity, what is the purpose of saving a password in system metadata.  It\u0027s encrypted with an RSA public key associated with the instance, right?  How does it ever get accessed again after that?","commit_id":"81ff839948f92d257b48236729f8d1fdf0071875"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"679b4af36d6143df426ca033eeb109f5b372378c","unresolved":false,"context_lines":[{"line_number":199,"context_line":"            ctxt \u003d context.get_admin_context()"},{"line_number":200,"context_line":"            enc \u003d crypto.ssh_encrypt_text(sshkey, new_pass)"},{"line_number":201,"context_line":"            sys_meta \u003d utils.instance_sys_meta(self.instance)"},{"line_number":202,"context_line":"            sys_meta.update(password.convert_password(ctxt,"},{"line_number":203,"context_line":"                                                      base64.b64encode(enc)))"},{"line_number":204,"context_line":"            self.virtapi.instance_update(ctxt, self.instance[\u0027uuid\u0027],"},{"line_number":205,"context_line":"                                         {\u0027system_metadata\u0027: sys_meta})"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAQn%2F%2Fan4%3D","line":202,"in_reply_to":"AAAAQn%2F%2FdP4%3D","updated":"2013-07-31 14:57:34.000000000","message":"There is a get_password api that returns the encrpyted version of the password.\n\nIn cloud-init land, this is set via the metadata service, and generated inside the instance.","commit_id":"81ff839948f92d257b48236729f8d1fdf0071875"}]}
