{"action":"opened","issue":{"url":"https://api.github.com/repos/whatwedo/Vaprobash/issues/1","repository_url":"https://api.github.com/repos/whatwedo/Vaprobash","labels_url":"https://api.github.com/repos/whatwedo/Vaprobash/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/whatwedo/Vaprobash/issues/1/comments","events_url":"https://api.github.com/repos/whatwedo/Vaprobash/issues/1/events","html_url":"https://github.com/whatwedo/Vaprobash/issues/1","id":140940266,"number":1,"title":"clean up known_hosts","user":{"login":"xarem","id":647483,"avatar_url":"https://avatars.githubusercontent.com/u/647483?v=3","gravatar_id":"","url":"https://api.github.com/users/xarem","html_url":"https://github.com/xarem","followers_url":"https://api.github.com/users/xarem/followers","following_url":"https://api.github.com/users/xarem/following{/other_user}","gists_url":"https://api.github.com/users/xarem/gists{/gist_id}","starred_url":"https://api.github.com/users/xarem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xarem/subscriptions","organizations_url":"https://api.github.com/users/xarem/orgs","repos_url":"https://api.github.com/users/xarem/repos","events_url":"https://api.github.com/users/xarem/events{/privacy}","received_events_url":"https://api.github.com/users/xarem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-15T11:09:18Z","updated_at":"2016-03-15T11:09:18Z","closed_at":null,"body":"Either on boot, on creation or on destruction of a vagrant machine, the `~/.known_hosts` should be modified with the key of the machine.\r\n\r\n## on boot\r\non every boot, remove old [hostnames](https://github.com/whatwedo/Vaprobash/blob/develop/Vagrantfile#L15) and their fingerprints and add the current machine fingerprint\r\n\r\n## on creation\r\nadd the generated machine fingerprint to known_hosts and remove existing fingerprints with the same hostname\r\n\r\n## on destruction\r\nremove the fingerprint of the hostname\r\n\r\nin my opinion, the most suitable method would be to clean up existing fingerprints and add the new fingerprint on creation of a machine and remove the fingerprint on destruction. it could be a security problem if we do this at the time of booting up the machine.\r\n\r\nwhat's your opinion, @n3r0-ch?"}}