{"action":"created","issue":{"url":"https://api.github.com/repos/petalmd/armor/issues/21","repository_url":"https://api.github.com/repos/petalmd/armor","labels_url":"https://api.github.com/repos/petalmd/armor/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/petalmd/armor/issues/21/comments","events_url":"https://api.github.com/repos/petalmd/armor/issues/21/events","html_url":"https://github.com/petalmd/armor/issues/21","id":175847400,"number":21,"title":"ElasticsearchException[Security configuration cannot be loaded for unknown reasons","user":{"login":"vkhazin","id":7328220,"avatar_url":"https://avatars.githubusercontent.com/u/7328220?v=3","gravatar_id":"","url":"https://api.github.com/users/vkhazin","html_url":"https://github.com/vkhazin","followers_url":"https://api.github.com/users/vkhazin/followers","following_url":"https://api.github.com/users/vkhazin/following{/other_user}","gists_url":"https://api.github.com/users/vkhazin/gists{/gist_id}","starred_url":"https://api.github.com/users/vkhazin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkhazin/subscriptions","organizations_url":"https://api.github.com/users/vkhazin/orgs","repos_url":"https://api.github.com/users/vkhazin/repos","events_url":"https://api.github.com/users/vkhazin/events{/privacy}","received_events_url":"https://api.github.com/users/vkhazin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-08T19:52:20Z","updated_at":"2016-10-12T16:26:34Z","closed_at":null,"body":"curl -v http://app.user:***@localhost:9200/_search?pretty=true\r\n```\r\n*   Trying 127.0.0.1...\r\n* Connected to localhost (127.0.0.1) port 9200 (#0)\r\n* Server auth using Basic with user 'app.user'\r\n> GET /_search?pretty=true HTTP/1.1\r\n> Authorization: Basic YXBwLnVzZXI6Um9nZXJzMTIz\r\n> User-Agent: curl/7.40.0\r\n> Host: localhost:9200\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 500 Internal Server Error\r\n< Content-Type: application/json; charset=UTF-8\r\n< Content-Length: 480\r\n< \r\n{\r\n  \"error\" : {\r\n    \"root_cause\" : [ {\r\n      \"type\" : \"runtime_exception\",\r\n      \"reason\" : \"ElasticsearchException[Security configuration cannot be loaded for unknown reasons]\"\r\n    } ],\r\n    \"type\" : \"runtime_exception\",\r\n    \"reason\" : \"ElasticsearchException[Security configuration cannot be loaded for unknown reasons]\",\r\n    \"caused_by\" : {\r\n      \"type\" : \"exception\",\r\n      \"reason\" : \"Security configuration cannot be loaded for unknown reasons\"\r\n    }\r\n  },\r\n  \"status\" : 500\r\n}\r\n```\r\nelasticsearch.yml configurations\r\n```\r\n# Armor\r\narmor.key_path: \"/data/elasticsearch/armor\"\r\narmor.authentication.authentication_backend.impl: com.petalmd.armor.authentication.backend.simple.SettingsBasedAuthenticationBackend\r\narmor.authentication.http_authenticator.impl: com.petalmd.armor.authentication.http.basic.HTTPBasicAuthenticator\r\narmor.authentication.authorizer.impl: com.petalmd.armor.authorization.simple.SettingsBasedAuthorizator\r\n\r\n# Users\r\narmor.authentication.settingsdb.digest: SHA256\r\narmor.authentication.settingsdb.user.app.user: 94aa520b351f5df1abcd3195bf9f06888475e143a4ef20922c4cabe445e66719\r\n\r\n# Roles\r\narmor.authentication.authorization.settingsdb.roles.app.user: [\"admin\"]\r\n\r\n# Permissions\r\narmor.restactionfilter.names: [\"admin\"]\r\narmor.actionrequestfilter.admin.allowed_actions: [\"*\"]\r\n```\r\n\r\nThere is no localhost:9200/ac index present at the time of testing, adding the default settings did not seem to have any impact:\r\n\r\n```\r\ncurl -XPUT 'http://localhost:9200/armor/ac/ac' -d '{\r\n    \"acl\": [\r\n    {\r\n        \"__Comment__\": \"By default no filters are executed and no filters a by-passed. In such a case an exception is thrown and access will be denied.\",\r\n        \"filters_bypass\": [],\r\n        \"filters_execute\": []\r\n     },\r\n     {\r\n           \"__Comment__\": \"For role *admin* all filters are bypassed (so none will be executed). This means unrestricted access.\",\r\n           \"roles\": [\r\n               \"admin\"\r\n           ],\r\n           \"filters_bypass\": [\"*\"],\r\n           \"filters_execute\": []\r\n     }\r\n     ]\r\n}'\r\n```\r\nRoot level request seems to succeed:\r\n```\r\ncurl -v http://app.user:***@localhost:9200/?pretty=true\r\n*   Trying 127.0.0.1...\r\n* Connected to localhost (127.0.0.1) port 9200 (#0)\r\n* Server auth using Basic with user 'app.user'\r\n> GET /?pretty=true HTTP/1.1\r\n> Authorization: Basic YXBwVXNlcjpSb2dlcnMxMjM=\r\n> User-Agent: curl/7.40.0\r\n> Host: localhost:9200\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 200 OK\r\n< Content-Type: application/json; charset=UTF-8\r\n< Content-Length: 366\r\n< \r\n{\r\n  \"name\" : \"audit-log-dev-elasticsearch-host03\",\r\n  \"cluster_name\" : \"audit-logs-dev-elasticsearch-cluster\",\r\n  \"version\" : {\r\n    \"number\" : \"2.3.3\",\r\n    \"build_hash\" : \"218bdf10790eef486ff2c41a3df5cfa32dadcfde\",\r\n    \"build_timestamp\" : \"2016-05-17T15:40:04Z\",\r\n    \"build_snapshot\" : false,\r\n    \"lucene_version\" : \"5.5.0\"\r\n  },\r\n  \"tagline\" : \"You Know, for Search\"\r\n}\r\n* Connection #0 to host localhost left intact\r\n```"},"comment":{"url":"https://api.github.com/repos/petalmd/armor/issues/comments/253264130","html_url":"https://github.com/petalmd/armor/issues/21#issuecomment-253264130","issue_url":"https://api.github.com/repos/petalmd/armor/issues/21","id":253264130,"user":{"login":"jmaitrehenry","id":593562,"avatar_url":"https://avatars.githubusercontent.com/u/593562?v=3","gravatar_id":"","url":"https://api.github.com/users/jmaitrehenry","html_url":"https://github.com/jmaitrehenry","followers_url":"https://api.github.com/users/jmaitrehenry/followers","following_url":"https://api.github.com/users/jmaitrehenry/following{/other_user}","gists_url":"https://api.github.com/users/jmaitrehenry/gists{/gist_id}","starred_url":"https://api.github.com/users/jmaitrehenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmaitrehenry/subscriptions","organizations_url":"https://api.github.com/users/jmaitrehenry/orgs","repos_url":"https://api.github.com/users/jmaitrehenry/repos","events_url":"https://api.github.com/users/jmaitrehenry/events{/privacy}","received_events_url":"https://api.github.com/users/jmaitrehenry/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T16:26:34Z","updated_at":"2016-10-12T16:26:34Z","body":"I have an issue for upgrading the documentation #3.\r\nIf I understand @vkhazin your problem is now solved? Can I close this issue ?\r\n\r\nThanks!"}}
{"actor":{"display_login":"jmaitrehenry"}}