{"action":"opened","issue":{"url":"https://api.github.com/repos/logsearch/logsearch-for-cloudfoundry/issues/43","labels_url":"https://api.github.com/repos/logsearch/logsearch-for-cloudfoundry/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/logsearch/logsearch-for-cloudfoundry/issues/43/comments","events_url":"https://api.github.com/repos/logsearch/logsearch-for-cloudfoundry/issues/43/events","html_url":"https://github.com/logsearch/logsearch-for-cloudfoundry/issues/43","id":86459616,"number":43,"title":"Add Authentication via kibana-server plugin using CF UAA OAuth2","user":{"login":"mrdavidlaing","id":227505,"avatar_url":"https://avatars.githubusercontent.com/u/227505?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdavidlaing","html_url":"https://github.com/mrdavidlaing","followers_url":"https://api.github.com/users/mrdavidlaing/followers","following_url":"https://api.github.com/users/mrdavidlaing/following{/other_user}","gists_url":"https://api.github.com/users/mrdavidlaing/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdavidlaing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdavidlaing/subscriptions","organizations_url":"https://api.github.com/users/mrdavidlaing/orgs","repos_url":"https://api.github.com/users/mrdavidlaing/repos","events_url":"https://api.github.com/users/mrdavidlaing/events{/privacy}","received_events_url":"https://api.github.com/users/mrdavidlaing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-09T05:42:17Z","updated_at":"2015-06-09T05:42:17Z","closed_at":null,"body":"Core logsearch-boshrelease intentionally doesn't include authentication ( [discussion](https://github.com/logsearch/logsearch-boshrelease/pull/124#issuecomment-100312238) ); expecting to be locked away via firewall rules.\r\n\r\nThe [`push-kibana` errand](https://github.com/logsearch/logsearch-for-cloudfoundry/tree/master/logsearch-for-cloudfoundry-boshrelease/jobs/push-kibana) deploys an instance of Kibana to CF as a way to \"open a public route\" to a logsearch cluster.\r\n\r\nThis is a good place to add authentication, since we can leverage CF's UAA infrastructure & SSL, and the \"malicious request\" filtering provided by the kibana-server elasticsearch proxy.\r\n\r\nKibana v4.2 formalises a way to include plugins in the kibana-server - see https://github.com/elastic/kibana/pull/3714 - based on http://hapijs.com/.  Adding OAuth2 authentication to Hapi applications is a [solved problem](http://www.sitepoint.com/oauth-integration-using-hapi/), so adding a kibana-server plugin to handle authentication should be straight forward.\r\n\r\n"}}