{"action":"created","issue":{"url":"https://api.github.com/repos/marcosbarbero/spring-cloud-zuul-ratelimit/issues/95","repository_url":"https://api.github.com/repos/marcosbarbero/spring-cloud-zuul-ratelimit","labels_url":"https://api.github.com/repos/marcosbarbero/spring-cloud-zuul-ratelimit/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/marcosbarbero/spring-cloud-zuul-ratelimit/issues/95/comments","events_url":"https://api.github.com/repos/marcosbarbero/spring-cloud-zuul-ratelimit/issues/95/events","html_url":"https://github.com/marcosbarbero/spring-cloud-zuul-ratelimit/issues/95","id":342237026,"node_id":"MDU6SXNzdWUzNDIyMzcwMjY=","number":95,"title":"Does not work for a specific url or user","user":{"login":"pggsnap","id":36917481,"node_id":"MDQ6VXNlcjM2OTE3NDgx","avatar_url":"https://avatars1.githubusercontent.com/u/36917481?v=4","gravatar_id":"","url":"https://api.github.com/users/pggsnap","html_url":"https://github.com/pggsnap","followers_url":"https://api.github.com/users/pggsnap/followers","following_url":"https://api.github.com/users/pggsnap/following{/other_user}","gists_url":"https://api.github.com/users/pggsnap/gists{/gist_id}","starred_url":"https://api.github.com/users/pggsnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pggsnap/subscriptions","organizations_url":"https://api.github.com/users/pggsnap/orgs","repos_url":"https://api.github.com/users/pggsnap/repos","events_url":"https://api.github.com/users/pggsnap/events{/privacy}","received_events_url":"https://api.github.com/users/pggsnap/received_events","type":"User","site_admin":false},"labels":[{"id":723287572,"node_id":"MDU6TGFiZWw3MjMyODc1NzI=","url":"https://api.github.com/repos/marcosbarbero/spring-cloud-zuul-ratelimit/labels/status:%20waiting-for-feedback","name":"status: waiting-for-feedback","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-18T08:58:59Z","updated_at":"2018-07-28T08:30:06Z","closed_at":null,"author_association":"NONE","body":"      myServiceId:\r\n        - limit: 10 #optional - request number limit per refresh interval window\r\n          quota: 1000 #optional - request time limit per refresh interval window (in seconds)\r\n          refresh-interval: 60 #default value (in seconds)\r\n        - type: #optional value for each type\r\n            - user=anonymous\r\n            - origin=somemachine.com\r\n            - url=/api #url prefix\r\n\r\napplication.yml as above.\r\n\r\nfor a specific user(anonymous) and url(/api)，the key generated is ${spring.application.name}:myServiceId，missing  url and user information.\r\n\r\nThat means  other users accessing the interface are also restricted.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/marcosbarbero/spring-cloud-zuul-ratelimit/issues/comments/408592212","html_url":"https://github.com/marcosbarbero/spring-cloud-zuul-ratelimit/issues/95#issuecomment-408592212","issue_url":"https://api.github.com/repos/marcosbarbero/spring-cloud-zuul-ratelimit/issues/95","id":408592212,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODU5MjIxMg==","user":{"login":"lchayoun","id":10900826,"node_id":"MDQ6VXNlcjEwOTAwODI2","avatar_url":"https://avatars1.githubusercontent.com/u/10900826?v=4","gravatar_id":"","url":"https://api.github.com/users/lchayoun","html_url":"https://github.com/lchayoun","followers_url":"https://api.github.com/users/lchayoun/followers","following_url":"https://api.github.com/users/lchayoun/following{/other_user}","gists_url":"https://api.github.com/users/lchayoun/gists{/gist_id}","starred_url":"https://api.github.com/users/lchayoun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lchayoun/subscriptions","organizations_url":"https://api.github.com/users/lchayoun/orgs","repos_url":"https://api.github.com/users/lchayoun/repos","events_url":"https://api.github.com/users/lchayoun/events{/privacy}","received_events_url":"https://api.github.com/users/lchayoun/received_events","type":"User","site_admin":false},"created_at":"2018-07-28T08:30:06Z","updated_at":"2018-07-28T08:30:06Z","author_association":"COLLABORATOR","body":"@pggsnap It took me some time to notice\r\nYou have a \"-\" before the \"type\" in the configuration of the policy which should not be there...\r\nTherefor it is treated as another policy without any limit (this is a bug)\r\nAnd the first policy is a match for all requests..."}}
{"actor":{"display_login":"lchayoun"}}