petalmd / armor

Apache License 2.0
15 stars 8 forks source link

wont able to integrate kiban 4.5.4 with armor Courier Fetch Error: unhandled courier request error: [unknown_host_exception] No trusted proxies #22

Open Ravi--Parmar opened 8 years ago

Ravi--Parmar commented 8 years ago

I have using simple setting based authentication. And confiured kibana user and password in kibana yml file. But kibana is not able to connect to elastic search when armor is used.Screen shot of my error and acl rule has beenis attachecd

"acl": [ { "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.", "filters_bypass": [], "filters_execute": [] }, { "Comment": "For role admin all filters are bypassed (so none will be executed). This means unrestricted access.", "roles": [ "admin" ], "filtersbypass": [""], "filters_execute": [] }, { "Comment": "Internal kibana index", "roles": ["kibana"], "indices": [".kibana"], "filtersbypass": [""], "filters_execute": [] } ] }

Elastic yml file configuration as follows armor.rewrite_get_as_search: true armor.authentication.authentication_backend.impl: com.petalmd.armor.authentication.backend.simple.SettingsBasedAuthenticationBackend armor.authentication.authorizer.impl: com.petalmd.armor.authorization.simple.SettingsBasedAuthorizator armor.authentication.http_authenticator.impl: com.petalmd.armor.authentication.http.basic.HTTPBasicAuthenticator armor.authentication.settingsdb.user.admin: password armor.authentication.settingsdb.user.kibana: kibana armor.authentication.authorization.settingsdb.roles.admin: ["admin"] armor.authentication.authorization.settingsdb.roles.kibana: ["kibana"] armor.actionrequestfilter.names: ["readonly"] armor.actionrequestfilter.readonly.allowedactions: ["indices:data/read/", "monitor"] armor.actionrequestfilter.readonly.forbiddenactions: ["cluster:admin", "indices:admin", "indices:data/write"]

kibana yml as follows elasticsearch.username: "kibana" elasticsearch.password: "kibana"

screenshot of kibana issue

2

Plese help if some one has faced the issue earlier

jehuty0shift commented 8 years ago

Hello @Ravi--Parmar, what is the result of this command : curl -u kibana:kibana -XGET http://localhost:9200/.kibana/_search assuming localhost is the address of your cluster.

Ravi--Parmar commented 8 years ago

kibana I am getting this thing @jehuty0shift

jehuty0shift commented 8 years ago

It seems that you are not trying the command tahn the same machine that launched Kibana. Could you try Kibana on your windows machine or the curl command on your Ubuntu Machine ?