{"action":"created","issue":{"url":"https://api.github.com/repos/keenlabs/KeenClient-Python/issues/67","labels_url":"https://api.github.com/repos/keenlabs/KeenClient-Python/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/keenlabs/KeenClient-Python/issues/67/comments","events_url":"https://api.github.com/repos/keenlabs/KeenClient-Python/issues/67/events","html_url":"https://github.com/keenlabs/KeenClient-Python/issues/67","id":84751500,"number":67,"title":"add events go through even with a bad master key","user":{"login":"tushdante","id":2905522,"avatar_url":"https://avatars.githubusercontent.com/u/2905522?v=3","gravatar_id":"","url":"https://api.github.com/users/tushdante","html_url":"https://github.com/tushdante","followers_url":"https://api.github.com/users/tushdante/followers","following_url":"https://api.github.com/users/tushdante/following{/other_user}","gists_url":"https://api.github.com/users/tushdante/gists{/gist_id}","starred_url":"https://api.github.com/users/tushdante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tushdante/subscriptions","organizations_url":"https://api.github.com/users/tushdante/orgs","repos_url":"https://api.github.com/users/tushdante/repos","events_url":"https://api.github.com/users/tushdante/events{/privacy}","received_events_url":"https://api.github.com/users/tushdante/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-03T20:13:10Z","updated_at":"2015-06-03T21:48:45Z","closed_at":null,"body":"This is the code I've used\r\n\r\n```python\r\nfrom keen.client import KeenClient\r\n\r\nclient = KeenClient(\r\n    project_id=\"[projectid]\",\r\n    write_key=\"[writekey]\",\r\n    read_key=\"[readkey]\",\r\n    master_key=\"[masterkey]\"\r\n)\r\n\r\n\r\nclient.add_event(\"sign_ups\", {\r\n\t\t\"username\": \"lloyd\" ,\r\n\t\t\"value\": 1,\r\n\t})\r\n```\r\n\r\nIt turns out that the `add_event` will go through successfully even with a bad master key. I haven't played around enough to see if the events are written to my project, but even if they're not I think we should be returning an exception for this. "},"comment":{"url":"https://api.github.com/repos/keenlabs/KeenClient-Python/issues/comments/108625557","html_url":"https://github.com/keenlabs/KeenClient-Python/issues/67#issuecomment-108625557","issue_url":"https://api.github.com/repos/keenlabs/KeenClient-Python/issues/67","id":108625557,"user":{"login":"tushdante","id":2905522,"avatar_url":"https://avatars.githubusercontent.com/u/2905522?v=3","gravatar_id":"","url":"https://api.github.com/users/tushdante","html_url":"https://github.com/tushdante","followers_url":"https://api.github.com/users/tushdante/followers","following_url":"https://api.github.com/users/tushdante/following{/other_user}","gists_url":"https://api.github.com/users/tushdante/gists{/gist_id}","starred_url":"https://api.github.com/users/tushdante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tushdante/subscriptions","organizations_url":"https://api.github.com/users/tushdante/orgs","repos_url":"https://api.github.com/users/tushdante/repos","events_url":"https://api.github.com/users/tushdante/events{/privacy}","received_events_url":"https://api.github.com/users/tushdante/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T21:48:45Z","updated_at":"2015-06-03T21:48:45Z","body":"@joshukeen I did use a valid write key with an incorrect master key, and the events went through fine. Feel free to try this on your own. I understand the PoLP, but perhaps we should make this a discussion of using a master key as a fallback in the case of an incorrect write key.\r\n\r\n@jdunck @stroud109  any comments?"}}