{"action":"closed","issue":{"url":"https://api.github.com/repos/mozilla/ssh_scan/issues/328","repository_url":"https://api.github.com/repos/mozilla/ssh_scan","labels_url":"https://api.github.com/repos/mozilla/ssh_scan/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/ssh_scan/issues/328/comments","events_url":"https://api.github.com/repos/mozilla/ssh_scan/issues/328/events","html_url":"https://github.com/mozilla/ssh_scan/issues/328","id":206532477,"number":328,"title":"API authentication is broken","user":{"login":"agaurav77","id":6812772,"avatar_url":"https://avatars3.githubusercontent.com/u/6812772?v=3","gravatar_id":"","url":"https://api.github.com/users/agaurav77","html_url":"https://github.com/agaurav77","followers_url":"https://api.github.com/users/agaurav77/followers","following_url":"https://api.github.com/users/agaurav77/following{/other_user}","gists_url":"https://api.github.com/users/agaurav77/gists{/gist_id}","starred_url":"https://api.github.com/users/agaurav77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agaurav77/subscriptions","organizations_url":"https://api.github.com/users/agaurav77/orgs","repos_url":"https://api.github.com/users/agaurav77/repos","events_url":"https://api.github.com/users/agaurav77/events{/privacy}","received_events_url":"https://api.github.com/users/agaurav77/received_events","type":"User","site_admin":false},"labels":[{"id":318759285,"url":"https://api.github.com/repos/mozilla/ssh_scan/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"claudijd","id":794283,"avatar_url":"https://avatars0.githubusercontent.com/u/794283?v=3","gravatar_id":"","url":"https://api.github.com/users/claudijd","html_url":"https://github.com/claudijd","followers_url":"https://api.github.com/users/claudijd/followers","following_url":"https://api.github.com/users/claudijd/following{/other_user}","gists_url":"https://api.github.com/users/claudijd/gists{/gist_id}","starred_url":"https://api.github.com/users/claudijd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudijd/subscriptions","organizations_url":"https://api.github.com/users/claudijd/orgs","repos_url":"https://api.github.com/users/claudijd/repos","events_url":"https://api.github.com/users/claudijd/events{/privacy}","received_events_url":"https://api.github.com/users/claudijd/received_events","type":"User","site_admin":false},"assignees":[{"login":"claudijd","id":794283,"avatar_url":"https://avatars0.githubusercontent.com/u/794283?v=3","gravatar_id":"","url":"https://api.github.com/users/claudijd","html_url":"https://github.com/claudijd","followers_url":"https://api.github.com/users/claudijd/followers","following_url":"https://api.github.com/users/claudijd/following{/other_user}","gists_url":"https://api.github.com/users/claudijd/gists{/gist_id}","starred_url":"https://api.github.com/users/claudijd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudijd/subscriptions","organizations_url":"https://api.github.com/users/claudijd/orgs","repos_url":"https://api.github.com/users/claudijd/repos","events_url":"https://api.github.com/users/claudijd/events{/privacy}","received_events_url":"https://api.github.com/users/claudijd/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-02-09T15:14:31Z","updated_at":"2017-03-02T02:44:58Z","closed_at":"2017-03-02T02:44:58Z","body":"Currently, scans are not processed if they are added via an authenticated request. For example, if I add a token `testpass` for user `test`, and do\r\n\r\n```bash\r\n$ curl --data \"target=192.168.11.22&port=9999\" http://localhost:8000/api/v1/scan -H \"SSH_SCAN_AUTH_TOKEN: testpass\"\r\n{\"uuid\":\"dc90e613-5c20-4de6-b893-44bc86d39b16\"}\r\n```\r\n\r\nthen I get a scan not found error when I try to retrieve the scan:\r\n\r\n```bash\r\n$ curl http://localhost:8000/api/v1/scan/results\\?uuid\\=dc90e613-5c20-4de6-b893-44bc86d39b16 -H \"SSH_SCAN_AUTH_TOKEN: testpass\"\r\n{\"scan\":\"not found\"}\r\n```"}}
{"actor":{"display_login":"claudijd"}}