{"action":"created","issue":{"url":"https://api.github.com/repos/dokku/dokku/issues/2445","repository_url":"https://api.github.com/repos/dokku/dokku","labels_url":"https://api.github.com/repos/dokku/dokku/issues/2445/labels{/name}","comments_url":"https://api.github.com/repos/dokku/dokku/issues/2445/comments","events_url":"https://api.github.com/repos/dokku/dokku/issues/2445/events","html_url":"https://github.com/dokku/dokku/issues/2445","id":180766420,"number":2445,"title":"Web SSH Key not added when key is already attached to server","user":{"login":"josegonzalez","id":65675,"avatar_url":"https://avatars.githubusercontent.com/u/65675?v=3","gravatar_id":"","url":"https://api.github.com/users/josegonzalez","html_url":"https://github.com/josegonzalez","followers_url":"https://api.github.com/users/josegonzalez/followers","following_url":"https://api.github.com/users/josegonzalez/following{/other_user}","gists_url":"https://api.github.com/users/josegonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/josegonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josegonzalez/subscriptions","organizations_url":"https://api.github.com/users/josegonzalez/orgs","repos_url":"https://api.github.com/users/josegonzalez/repos","events_url":"https://api.github.com/users/josegonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/josegonzalez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dokku/dokku/labels/hacktoberfest","name":"hacktoberfest","color":"b0581d"},{"url":"https://api.github.com/repos/dokku/dokku/labels/type:%20bug","name":"type: bug","color":"e01b1b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-03T22:46:45Z","updated_at":"2016-10-07T22:57:29Z","closed_at":null,"body":"As both the debian package and the web ui use the `admin` user, the web ui will fail to add the ssh key, resulting in some users not having access to dokku push.\r\n\r\nWe should instead use `admin-web` as the admin user from the web ui if we detect that there is an existing `admin` user.\r\n\r\n[Here](https://github.com/dokku/dokku/blob/master/contrib/dokku-installer.py#L103) is the line of code that executes this. What I'd do is list users, check if `admin` is in the list, and if so, change the username there from `admin` to `admin-web`."},"comment":{"url":"https://api.github.com/repos/dokku/dokku/issues/comments/252380113","html_url":"https://github.com/dokku/dokku/issues/2445#issuecomment-252380113","issue_url":"https://api.github.com/repos/dokku/dokku/issues/2445","id":252380113,"user":{"login":"mbtamuli","id":10382077,"avatar_url":"https://avatars.githubusercontent.com/u/10382077?v=3","gravatar_id":"","url":"https://api.github.com/users/mbtamuli","html_url":"https://github.com/mbtamuli","followers_url":"https://api.github.com/users/mbtamuli/followers","following_url":"https://api.github.com/users/mbtamuli/following{/other_user}","gists_url":"https://api.github.com/users/mbtamuli/gists{/gist_id}","starred_url":"https://api.github.com/users/mbtamuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbtamuli/subscriptions","organizations_url":"https://api.github.com/users/mbtamuli/orgs","repos_url":"https://api.github.com/users/mbtamuli/repos","events_url":"https://api.github.com/users/mbtamuli/events{/privacy}","received_events_url":"https://api.github.com/users/mbtamuli/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T22:57:29Z","updated_at":"2016-10-07T22:57:29Z","body":"@josegonzalez \r\n> Here is the line of code that executes this. What I'd do is list users, check if admin is in the list, and if so, change the username there from admin to admin-web.\r\n\r\nBy list users, do you mean the users found when we do `dokku ssh-keys:list`\r\n```shell\r\n48:74:c1:5a:23:bd:0c:0f:fb:b3:09:0a:c4:48:94:74 NAME=\"admin\" SSHCOMMAND_ALLOWED_KEYS=\"no-agent-forwarding,no-user-rc,no-X11-forwarding,no-port-forwarding\"\r\n05:9f:fb:be:eb:91:79:00:96:81:9b:dc:b1:86:48:90 NAME=\"test\" SSHCOMMAND_ALLOWED_KEYS=\"no-agent-forwarding,no-user-rc,no-X11-forwarding,no-port-forwarding\"\r\n```\r\n\r\nLike _admin_ and _test_ in this case?"}}
{"actor":{"display_login":"mbtamuli"}}