{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/alerta/issues/204","repository_url":"https://api.github.com/repos/guardian/alerta","labels_url":"https://api.github.com/repos/guardian/alerta/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/guardian/alerta/issues/204/comments","events_url":"https://api.github.com/repos/guardian/alerta/issues/204/events","html_url":"https://github.com/guardian/alerta/issues/204","id":157512312,"number":204,"title":"Can't create an API Key","user":{"login":"mikesand","id":19651158,"avatar_url":"https://avatars.githubusercontent.com/u/19651158?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesand","html_url":"https://github.com/mikesand","followers_url":"https://api.github.com/users/mikesand/followers","following_url":"https://api.github.com/users/mikesand/following{/other_user}","gists_url":"https://api.github.com/users/mikesand/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesand/subscriptions","organizations_url":"https://api.github.com/users/mikesand/orgs","repos_url":"https://api.github.com/users/mikesand/repos","events_url":"https://api.github.com/users/mikesand/events{/privacy}","received_events_url":"https://api.github.com/users/mikesand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/guardian/alerta/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"satterly","id":615057,"avatar_url":"https://avatars.githubusercontent.com/u/615057?v=3","gravatar_id":"","url":"https://api.github.com/users/satterly","html_url":"https://github.com/satterly","followers_url":"https://api.github.com/users/satterly/followers","following_url":"https://api.github.com/users/satterly/following{/other_user}","gists_url":"https://api.github.com/users/satterly/gists{/gist_id}","starred_url":"https://api.github.com/users/satterly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satterly/subscriptions","organizations_url":"https://api.github.com/users/satterly/orgs","repos_url":"https://api.github.com/users/satterly/repos","events_url":"https://api.github.com/users/satterly/events{/privacy}","received_events_url":"https://api.github.com/users/satterly/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-05-30T14:23:14Z","updated_at":"2016-05-30T15:48:16Z","closed_at":null,"body":"Hi,\r\n\r\nI have been trying to create an API key from the web interface and from the CLI without success. When I log in as an admin n the Web UI and enter an application, leave customer blank (customer is set to false in alertad) it refreshes the page and no key is created.\r\n\r\nI then tried to do the same through command line and I got:\r\n\r\nalerta key -u email@domain.com --no-customer\r\n2016-05-30 14:10:33,093 - alerta.shell - ERROR - Must supply 'user' as parameter \r\n\r\nand\r\n\r\nalerta key --user-name email@domain.com --no-customer\r\n2016-05-30 14:21:32,003 - alerta.shell - ERROR - Must supply 'user' as parameter\r\n\r\nI'm sure it's user error but the cli help shows this as the correct syntax and I can't find any previous questions or docs on why this might be happening.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/guardian/alerta/issues/comments/222518401","html_url":"https://github.com/guardian/alerta/issues/204#issuecomment-222518401","issue_url":"https://api.github.com/repos/guardian/alerta/issues/204","id":222518401,"user":{"login":"mikesand","id":19651158,"avatar_url":"https://avatars.githubusercontent.com/u/19651158?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesand","html_url":"https://github.com/mikesand","followers_url":"https://api.github.com/users/mikesand/followers","following_url":"https://api.github.com/users/mikesand/following{/other_user}","gists_url":"https://api.github.com/users/mikesand/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesand/subscriptions","organizations_url":"https://api.github.com/users/mikesand/orgs","repos_url":"https://api.github.com/users/mikesand/repos","events_url":"https://api.github.com/users/mikesand/events{/privacy}","received_events_url":"https://api.github.com/users/mikesand/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T15:48:16Z","updated_at":"2016-05-30T15:48:16Z","body":"Confirmed. Here is a copy of my alertad.conf and I rebooted (is there another way to reload the alertad.conf). Logged out of alerta webui and then back in and clicked create API and nothing happened.\r\n\r\nSECRET_KEY='secretky made using the cli reccomended in docs'\r\nAUTH_REQUIRED=True\r\nOAUTH2_CLIENT_ID=''\r\nOAUTH2_CLIENT_SECRET=''\r\nALLOWED_EMAIL_DOMAINS=['*']\r\nALLOWED_GITHUB_ORGS=['*']\r\nPLUGINS=['reject','sns']\r\nAPI_KEY_EXPIRE_DAYS = 3650\r\nAWS_ACCESS_KEY_ID='AKIAJK3LU2R25BEMA25A'\r\nAWS_SECRET_ACCESS_KEY='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'\r\nAWS_REGION='us-east-1'\r\nAWS_SNS_TOPIC='alarm-topic'\r\nADMIN_USERS = ['myemail']"}}
{"actor":{"display_login":"mikesand"}}