{"action":"created","issue":{"url":"https://api.github.com/repos/drone/drone/issues/1090","labels_url":"https://api.github.com/repos/drone/drone/issues/1090/labels{/name}","comments_url":"https://api.github.com/repos/drone/drone/issues/1090/comments","events_url":"https://api.github.com/repos/drone/drone/issues/1090/events","html_url":"https://github.com/drone/drone/issues/1090","id":94109673,"number":1090,"title":"Drone overwrites user's .ssh/* configuration","user":{"login":"dennybaa","id":891419,"avatar_url":"https://avatars.githubusercontent.com/u/891419?v=3","gravatar_id":"","url":"https://api.github.com/users/dennybaa","html_url":"https://github.com/dennybaa","followers_url":"https://api.github.com/users/dennybaa/followers","following_url":"https://api.github.com/users/dennybaa/following{/other_user}","gists_url":"https://api.github.com/users/dennybaa/gists{/gist_id}","starred_url":"https://api.github.com/users/dennybaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennybaa/subscriptions","organizations_url":"https://api.github.com/users/dennybaa/orgs","repos_url":"https://api.github.com/users/dennybaa/repos","events_url":"https://api.github.com/users/dennybaa/events{/privacy}","received_events_url":"https://api.github.com/users/dennybaa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-09T17:38:16Z","updated_at":"2015-07-10T07:10:23Z","closed_at":"2015-07-09T18:13:06Z","body":"Is there any necessity to do so?\r\n\r\nI was struggling with this for half-of day :) And yeah I found it, but overwriting the user's data might seem to be not the best solution.\r\n\r\nBtw what's the purpose **id_rsa** which can be found in runner container?\r\n"},"comment":{"url":"https://api.github.com/repos/drone/drone/issues/comments/120259749","html_url":"https://github.com/drone/drone/issues/1090#issuecomment-120259749","issue_url":"https://api.github.com/repos/drone/drone/issues/1090","id":120259749,"user":{"login":"dennybaa","id":891419,"avatar_url":"https://avatars.githubusercontent.com/u/891419?v=3","gravatar_id":"","url":"https://api.github.com/users/dennybaa","html_url":"https://github.com/dennybaa","followers_url":"https://api.github.com/users/dennybaa/followers","following_url":"https://api.github.com/users/dennybaa/following{/other_user}","gists_url":"https://api.github.com/users/dennybaa/gists{/gist_id}","starred_url":"https://api.github.com/users/dennybaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennybaa/subscriptions","organizations_url":"https://api.github.com/users/dennybaa/orgs","repos_url":"https://api.github.com/users/dennybaa/repos","events_url":"https://api.github.com/users/dennybaa/events{/privacy}","received_events_url":"https://api.github.com/users/dennybaa/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T07:10:23Z","updated_at":"2015-07-10T07:10:23Z","body":"> Drone automatically uploads the key for GitHub, GitLab, Gogs, Bitbucket and Stash. This covers the most popular use cases.\r\n\r\nIt's an awesome feature indeed.\r\n\r\n> My concern with GIT_SSH is that it may not work with all dependency management solutions. Early versions of npm install didn't support GIT_SSH, for example, which is why we didn't use it. I'd hate to break Drone for an entire language or ecosystem. Is there some way to avoid this?\r\n\r\nYeap, I totally agree GIT_SSH approach doesn't scale with different tools (such as mentioned old versions of npm). I'm starting to think the drone's approach is the optimal so far.\r\n\r\nBut again, I would suggest maybe to implement key selection, it would eliminate user's misunderstanding. For example there might be option such as:\r\n**private key /root/.ssh/id_rsa:**\r\n1. Use drone automatic key\r\n1. Provide manual key\r\n\r\nIn case key exists **do not overwrite** (same with config) when the first way is chosen but this should be logged into the build session. I don't know maybe I'm overcomplicating if say that it would be a nice thing), because implementation all these can be tricky...\r\n\r\n\r\n\r\n"}}