{"action":"created","issue":{"url":"https://api.github.com/repos/deis/deis/issues/3259","labels_url":"https://api.github.com/repos/deis/deis/issues/3259/labels{/name}","comments_url":"https://api.github.com/repos/deis/deis/issues/3259/comments","events_url":"https://api.github.com/repos/deis/deis/issues/3259/events","html_url":"https://github.com/deis/deis/pull/3259","id":60519653,"number":3259,"title":"feat(builder): add ssh key variable to support private repositories","user":{"login":"rvaralda","id":751658,"avatar_url":"https://avatars.githubusercontent.com/u/751658?v=3","gravatar_id":"","url":"https://api.github.com/users/rvaralda","html_url":"https://github.com/rvaralda","followers_url":"https://api.github.com/users/rvaralda/followers","following_url":"https://api.github.com/users/rvaralda/following{/other_user}","gists_url":"https://api.github.com/users/rvaralda/gists{/gist_id}","starred_url":"https://api.github.com/users/rvaralda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvaralda/subscriptions","organizations_url":"https://api.github.com/users/rvaralda/orgs","repos_url":"https://api.github.com/users/rvaralda/repos","events_url":"https://api.github.com/users/rvaralda/events{/privacy}","received_events_url":"https://api.github.com/users/rvaralda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deis/deis/labels/builder","name":"builder","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-10T15:40:00Z","updated_at":"2015-03-13T16:10:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/deis/deis/pulls/3259","html_url":"https://github.com/deis/deis/pull/3259","diff_url":"https://github.com/deis/deis/pull/3259.diff","patch_url":"https://github.com/deis/deis/pull/3259.patch"},"body":"Include SSH_KEY to builder.sh in slugbuilder to able to build private buildpacks and dependency repositories\r\n\r\nTo set the key use:\r\n\r\nLinux:\r\n$ deis config:set SSH_KEY=\"`base64 -w 0 <private-key>`\"\r\n\r\nMacOS:\r\n$ deis config:set SSH_KEY=\"`base64 <private-key>`\"\r\n\r\nBREAKING CHANGE: Set SSH_KEY var to builder"},"comment":{"url":"https://api.github.com/repos/deis/deis/issues/comments/79086594","html_url":"https://github.com/deis/deis/pull/3259#issuecomment-79086594","issue_url":"https://api.github.com/repos/deis/deis/issues/3259","id":79086594,"user":{"login":"bacongobbler","id":1360539,"avatar_url":"https://avatars.githubusercontent.com/u/1360539?v=3","gravatar_id":"","url":"https://api.github.com/users/bacongobbler","html_url":"https://github.com/bacongobbler","followers_url":"https://api.github.com/users/bacongobbler/followers","following_url":"https://api.github.com/users/bacongobbler/following{/other_user}","gists_url":"https://api.github.com/users/bacongobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/bacongobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacongobbler/subscriptions","organizations_url":"https://api.github.com/users/bacongobbler/orgs","repos_url":"https://api.github.com/users/bacongobbler/repos","events_url":"https://api.github.com/users/bacongobbler/events{/privacy}","received_events_url":"https://api.github.com/users/bacongobbler/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T16:10:59Z","updated_at":"2015-03-13T16:10:59Z","body":"I wonder if we should allow both types of behaviour, both filepath and raw keys. For example, if I were in a big organization I could imagine that company policy would be to disallow saving company private keys on your workstation.\r\n\r\nTo elaborate:\r\n\r\n1. We should try to see if SSH_KEY path exists\r\n  a. If it does, load er' up\r\n  b. If it doesn't, assume it's a raw key value\r\n2. base64 encode the key\r\n3. Upload to deis\r\n\r\nDoes that seem fair?"}}