{"action":"opened","issue":{"url":"https://api.github.com/repos/sscarduzio/elasticsearch-readonlyrest-plugin/issues/356","repository_url":"https://api.github.com/repos/sscarduzio/elasticsearch-readonlyrest-plugin","labels_url":"https://api.github.com/repos/sscarduzio/elasticsearch-readonlyrest-plugin/issues/356/labels{/name}","comments_url":"https://api.github.com/repos/sscarduzio/elasticsearch-readonlyrest-plugin/issues/356/comments","events_url":"https://api.github.com/repos/sscarduzio/elasticsearch-readonlyrest-plugin/issues/356/events","html_url":"https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/issues/356","id":321117591,"number":356,"title":"Read-only on index not respected","user":{"login":"haversham13","id":37577736,"avatar_url":"https://avatars3.githubusercontent.com/u/37577736?v=4","gravatar_id":"","url":"https://api.github.com/users/haversham13","html_url":"https://github.com/haversham13","followers_url":"https://api.github.com/users/haversham13/followers","following_url":"https://api.github.com/users/haversham13/following{/other_user}","gists_url":"https://api.github.com/users/haversham13/gists{/gist_id}","starred_url":"https://api.github.com/users/haversham13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haversham13/subscriptions","organizations_url":"https://api.github.com/users/haversham13/orgs","repos_url":"https://api.github.com/users/haversham13/repos","events_url":"https://api.github.com/users/haversham13/events{/privacy}","received_events_url":"https://api.github.com/users/haversham13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-08T09:51:37Z","updated_at":"2018-05-08T09:51:37Z","closed_at":null,"author_association":"NONE","body":"Hello, I found out that even we restricted read-only on an index \"example\" for authenticated users we can still use search on the \"/\" (e.g. http://examplehost:9200/_search) \r\n\r\n**My readonlyrest.yml file contains the following rules:**\r\n```yml\r\nreadonlyrest:\r\n  response_if_req_forbidden: Sorry, your request is forbidden.\r\n\r\n  access_control_rules:\r\n    - name: Accept all requests from localhost\r\n      hosts: [\"127.0.0.1\"]\r\n\r\n    - name: \"Allow user using external authentication\"\r\n      methods: [GET,HEAD]\r\n      actions: [\"indices:data/read/*\"]\r\n      indices: [\"example\"]\r\n      external_authentication: \"ext1\"\r\n\r\n  external_authentication_service_configs:\r\n    - name: \"ext1\"\r\n      authentication_endpoint: \"http://localhost:5000/apiauth\"\r\n      success_status_code: 200\r\n      cache_ttl_in_sec: 3600\r\n```\r\nIs that on purpose ?"}}
{"actor":{"display_login":"haversham13"}}