{"action":"opened","issue":{"url":"https://api.github.com/repos/mirage/mirage/issues/490","repository_url":"https://api.github.com/repos/mirage/mirage","labels_url":"https://api.github.com/repos/mirage/mirage/issues/490/labels{/name}","comments_url":"https://api.github.com/repos/mirage/mirage/issues/490/comments","events_url":"https://api.github.com/repos/mirage/mirage/issues/490/events","html_url":"https://github.com/mirage/mirage/issues/490","id":133967417,"number":490,"title":"Protection against key confusion","user":{"login":"Drup","id":801124,"avatar_url":"https://avatars.githubusercontent.com/u/801124?v=3","gravatar_id":"","url":"https://api.github.com/users/Drup","html_url":"https://github.com/Drup","followers_url":"https://api.github.com/users/Drup/followers","following_url":"https://api.github.com/users/Drup/following{/other_user}","gists_url":"https://api.github.com/users/Drup/gists{/gist_id}","starred_url":"https://api.github.com/users/Drup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drup/subscriptions","organizations_url":"https://api.github.com/users/Drup/orgs","repos_url":"https://api.github.com/users/Drup/repos","events_url":"https://api.github.com/users/Drup/events{/privacy}","received_events_url":"https://api.github.com/users/Drup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-16T12:24:00Z","updated_at":"2016-02-16T12:24:00Z","closed_at":null,"body":"The multi-connect issue is fixed, but it is still possible to have multiple connects by using keys. If you have two ethernet devices, eth1 and eth2, that both have a key and you point to the same interface on the command line, it's going to crash.\r\n\r\nI think this issue is inherent to how key works, and it's difficult to know if it's valid to have the same key twice without adding semantics to the keys, which we avoided in functoria.\r\n\r\nThe obvious solution is to make the various connect resilient to multi-connects, but since this seems difficult, maybe introducing some memoisation somewhere would help ? "}}