{"action":"reopened","issue":{"url":"https://api.github.com/repos/vigour-io/hub/issues/84","repository_url":"https://api.github.com/repos/vigour-io/hub","labels_url":"https://api.github.com/repos/vigour-io/hub/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/vigour-io/hub/issues/84/comments","events_url":"https://api.github.com/repos/vigour-io/hub/issues/84/events","html_url":"https://github.com/vigour-io/hub/issues/84","id":119208994,"number":84,"title":"[Security] Method verification","user":{"login":"jimdebeer","id":5682524,"avatar_url":"https://avatars.githubusercontent.com/u/5682524?v=3","gravatar_id":"","url":"https://api.github.com/users/jimdebeer","html_url":"https://github.com/jimdebeer","followers_url":"https://api.github.com/users/jimdebeer/followers","following_url":"https://api.github.com/users/jimdebeer/following{/other_user}","gists_url":"https://api.github.com/users/jimdebeer/gists{/gist_id}","starred_url":"https://api.github.com/users/jimdebeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimdebeer/subscriptions","organizations_url":"https://api.github.com/users/jimdebeer/orgs","repos_url":"https://api.github.com/users/jimdebeer/repos","events_url":"https://api.github.com/users/jimdebeer/events{/privacy}","received_events_url":"https://api.github.com/users/jimdebeer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-27T15:02:04Z","updated_at":"2016-03-13T09:34:08Z","closed_at":null,"body":"Hubs need to have the option to verify subscription methods\r\n\r\n- for now length, a try catch (+blocking of all global methods like console) then creating a hash is enough (can create max callstacks) \r\n\r\n- in the future a separate service that executes functions, this service also needs a redis store with hashes of passed functions, this list of hashes can be used by the hub to verify if a method is allowed\r\n\r\n- later this system can also be used for patterns (if you want to be super secure)"}}