Autologin Kibana

Hello,

We are looking for a way to autologin to Kibana. We want to been able to use a URL that logins in to kibana without entering a username or a password in to the browser. I think this is possible, but I cannot find documentation how to do this.

Can anyone point me in the right direction?

Hello everglade,

You can config Kibana to use auth based token like JWT to do that. After configured you can generate the token on any other system and send the token to Kibana. It ll let you auto-login if token is valid.

Hello ricardobessa,

Do you have a example how this will work with a URL?

Hello @everglade,

There is a post on AWS Blog that explain step by step how to used JWT tokens to access Elasticsearch and Kibana: Use JSON Web Tokens (JWTs) to Authenticate in Open Distro for Elasticsearch and Kibana

In my case I have a diferent environment:

  • Nginx receive all requests and use auth_request module (Module ngx_http_auth_request_module) to send requests to my auth system.

  • My internal auth system check if user has a valid token in session, if not then I request the credentials. If it already have a valid token then just return the token on header.

  • Nginx injects the header with token and proxy the request to Kibana.