Auto-authenticating to iframe-embedded Kibana dashboard

You can pass the Authorization header as Joe suggests using an nginx proxy.

Here is the relevant section of my nginx.conf:

 server {
     listen       4443 ssl; # the default was port 443
     server_name  tim-virtual-machine.local;

     ssl_certificate      /home/tim/domain.crt;
     ssl_certificate_key  /home/tim/domain.key;

     ssl_session_cache    shared:SSL:1m;
     ssl_session_timeout  5m;

     ssl_ciphers  HIGH:!aNULL:!MD5;
     ssl_prefer_server_ciphers  on;

     location / {
         proxy_set_header  Host $host;
         proxy_set_header  X-Real-IP $remote_addr;
         proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header  Authorization "Basic cGFudHM6b25maXJl"; # base64-encoded username:password to pass in header
         proxy_pass  https://tim-virtual-machine.local:5601; # actual kibana URL
     }
 }

I got this mostly from following this tutorial: http://shairosenfeld.blogspot.com/2011/03/authorization-header-in-nginx-for.html

I generated the Base64 string out of the username:password combination with this unix one-liner:

echo -n username:password | base64
8 Likes
Auto-authenticate Kibana 5.3 dashboard embedded in iframe
Kibana Iframe avoid credentials
Kibana default basic auth
Auto authenticating to an embedded Kibana dashboard (on Elastic.co CLOUD)
Disable login in Kibana 5.3
Nginx for Kibana Iframe
By passing the login page in the embedded Iframe
How to avoid the cros orgin issue in Kibana Dev mode?
Using Basic Auth Reverse Proxy for iframe Kibana Dashboard
View a Kibana dashboard without login
Not able to bypass Kibana authentication from Angular application
Kibana in Custom App
Access Kibana Dashboard without login
Auto authenticating kibana iframe without logging in again from external web application
How to protect dashboard url from eavesdroping?
KIbana : Bypass Autentication for ifames to share in dashboard
Kibana IFrame - Limit Data Searchable
How to Auto login into embedded iframe on Kiosk mode screen
Login kibana without UI (using token)
How to use the iframe on an external page already authenticated
Kibana logout not working when using nginx reverse proxy
While embedded Kibana how to hide Menu Bar?
Embed Dashboards Kibana with Security
Sending a Kibana dashboard to React via iframe: security considerations
Adding iframe code in wordpress website
Automatic login into Kibana iframe for AD group members
Bypass kibana iframe authentication
Kibana でのリバースプロキシ設定
Hitting Security API Endpoint
How to access a deashboard or view from another php front end
How to Auto Login Kibana Dashboard which embedded in Iframe
Auto-login in iFrame using nginx proxy
Using tokens with the endpoint /internal/security/login for logging instead of basic authentication
Steps for configuring SAML for kibana cloud
How to login to Kibana embedded in an iframe using API
Login to Kibana instance with automatic user generation based on Proxy Header