{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/marathon-lb/issues/272","repository_url":"https://api.github.com/repos/mesosphere/marathon-lb","labels_url":"https://api.github.com/repos/mesosphere/marathon-lb/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon-lb/issues/272/comments","events_url":"https://api.github.com/repos/mesosphere/marathon-lb/issues/272/events","html_url":"https://github.com/mesosphere/marathon-lb/issues/272","id":166558749,"number":272,"title":"Define and use custom ACLs for routing to backend","user":{"login":"davoustp","id":2195557,"avatar_url":"https://avatars.githubusercontent.com/u/2195557?v=3","gravatar_id":"","url":"https://api.github.com/users/davoustp","html_url":"https://github.com/davoustp","followers_url":"https://api.github.com/users/davoustp/followers","following_url":"https://api.github.com/users/davoustp/following{/other_user}","gists_url":"https://api.github.com/users/davoustp/gists{/gist_id}","starred_url":"https://api.github.com/users/davoustp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davoustp/subscriptions","organizations_url":"https://api.github.com/users/davoustp/orgs","repos_url":"https://api.github.com/users/davoustp/repos","events_url":"https://api.github.com/users/davoustp/events{/privacy}","received_events_url":"https://api.github.com/users/davoustp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mesosphere/marathon-lb/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-20T11:24:21Z","updated_at":"2016-07-26T14:59:40Z","closed_at":null,"body":"Current marathon-lb implementation allows to setup / override vhost-, path- and auth-based ACLs and backend routing rules, but I did not find any way to setup a custom ACL, for ex. based on a HTTP Content-Type header (I would use haproxy hdr_reg operator here) and use it as a condition for routing to the related backend.\r\n\r\nDid I miss something or is it an improvement request?\r\nI would like to avoid overriding and tweaking an existing template to perform a different function and rather get something straight.\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/mesosphere/marathon-lb/issues/comments/235295310","html_url":"https://github.com/mesosphere/marathon-lb/issues/272#issuecomment-235295310","issue_url":"https://api.github.com/repos/mesosphere/marathon-lb/issues/272","id":235295310,"user":{"login":"davoustp","id":2195557,"avatar_url":"https://avatars.githubusercontent.com/u/2195557?v=3","gravatar_id":"","url":"https://api.github.com/users/davoustp","html_url":"https://github.com/davoustp","followers_url":"https://api.github.com/users/davoustp/followers","following_url":"https://api.github.com/users/davoustp/following{/other_user}","gists_url":"https://api.github.com/users/davoustp/gists{/gist_id}","starred_url":"https://api.github.com/users/davoustp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davoustp/subscriptions","organizations_url":"https://api.github.com/users/davoustp/orgs","repos_url":"https://api.github.com/users/davoustp/repos","events_url":"https://api.github.com/users/davoustp/events{/privacy}","received_events_url":"https://api.github.com/users/davoustp/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T14:59:40Z","updated_at":"2016-07-26T14:59:40Z","body":"Hi,\r\nThanks for the reply.\r\nI did not find any ACL_RELATED template in https://github.com/mesosphere/marathon-lb/blob/master/Longhelp.md#templates - is it an undocumented template?\r\n\r\nI agree with the fact that overriding a template is not a big deal. However, I think that I would have to override an existing template and **change its semantic**, which is bad. For instance, I could override `HAPROXY_HTTPS_FRONTEND_ACL_ONLY_WITH_PATH` and implement an ACL with a header-based pattern matching, which is not a path-based ACL any more...\r\nAgain, technically feasible, but difficult to understand and maintain in the long run, IMHO."}}
{"actor":{"display_login":"davoustp"}}