{"action":"created","issue":{"url":"https://api.github.com/repos/theforeman/smart-proxy/issues/260","labels_url":"https://api.github.com/repos/theforeman/smart-proxy/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/theforeman/smart-proxy/issues/260/comments","events_url":"https://api.github.com/repos/theforeman/smart-proxy/issues/260/events","html_url":"https://github.com/theforeman/smart-proxy/pull/260","id":58342209,"number":260,"title":"Fixes #9482 - introduced path patterns to authorize_with_trusted_hosts","user":{"login":"lzap","id":49752,"avatar_url":"https://avatars.githubusercontent.com/u/49752?v=3","gravatar_id":"","url":"https://api.github.com/users/lzap","html_url":"https://github.com/lzap","followers_url":"https://api.github.com/users/lzap/followers","following_url":"https://api.github.com/users/lzap/following{/other_user}","gists_url":"https://api.github.com/users/lzap/gists{/gist_id}","starred_url":"https://api.github.com/users/lzap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzap/subscriptions","organizations_url":"https://api.github.com/users/lzap/orgs","repos_url":"https://api.github.com/users/lzap/repos","events_url":"https://api.github.com/users/lzap/events{/privacy}","received_events_url":"https://api.github.com/users/lzap/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/theforeman/smart-proxy/labels/Needs%20testing","name":"Needs testing","color":"fbca04"},{"url":"https://api.github.com/repos/theforeman/smart-proxy/labels/Not%20yet%20reviewed","name":"Not yet reviewed","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-02-20T11:51:25Z","updated_at":"2015-02-23T08:55:53Z","closed_at":"2015-02-23T08:55:53Z","pull_request":{"url":"https://api.github.com/repos/theforeman/smart-proxy/pulls/260","html_url":"https://github.com/theforeman/smart-proxy/pull/260","diff_url":"https://github.com/theforeman/smart-proxy/pull/260.diff","patch_url":"https://github.com/theforeman/smart-proxy/pull/260.patch"},"body":"Foreman discovery proxy plugin needs to specify for which paths it will\nauthorize. Since Sinatra supports patters for filters\n(http://www.sinatrarb.com/intro.html#Filters) it is relatively easy to\nimplement this so plugins can take advantage of this. This change will NOT\nbreak the API, by default filters will apply to all paths (nil).\n\nFor https://github.com/theforeman/smart_proxy_discovery/pull/6"},"comment":{"url":"https://api.github.com/repos/theforeman/smart-proxy/issues/comments/75507702","html_url":"https://github.com/theforeman/smart-proxy/pull/260#issuecomment-75507702","issue_url":"https://api.github.com/repos/theforeman/smart-proxy/issues/260","id":75507702,"user":{"login":"lzap","id":49752,"avatar_url":"https://avatars.githubusercontent.com/u/49752?v=3","gravatar_id":"","url":"https://api.github.com/users/lzap","html_url":"https://github.com/lzap","followers_url":"https://api.github.com/users/lzap/followers","following_url":"https://api.github.com/users/lzap/following{/other_user}","gists_url":"https://api.github.com/users/lzap/gists{/gist_id}","starred_url":"https://api.github.com/users/lzap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzap/subscriptions","organizations_url":"https://api.github.com/users/lzap/orgs","repos_url":"https://api.github.com/users/lzap/repos","events_url":"https://api.github.com/users/lzap/events{/privacy}","received_events_url":"https://api.github.com/users/lzap/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T08:55:53Z","updated_at":"2015-02-23T08:55:53Z","body":"Ok after some research I found it is not possible to do multiple `run` calls as it is stored in a hash.\r\n\r\nAnyway I found a more sane way of splitting the Sinatra app into two. Closing this in fav of: https://github.com/theforeman/smart_proxy_discovery/pull/7"}}