I'm still new to Kibana and when I try to embed my Kibana dashboard by giving it anonymous access, it keeps refreshing itself without me doing anything. Gif below for illustration.
This is the code I used in my kibana.yml file for anonymous access
I've also done auth_provider_hint=anonymous1 in my iFrame code: <iframe src="http://localhost:5601/app/dashboards?auth_provider_hint=anonymous1#/view/f4d17e40-3ae3-11ec-838d-cba5e7ef064e?embed=true&_g=(...)" height="600" width="800"></iframe>
In my Kibana, I also create a new user called anonymous1 and given him a custom role which basically gives the user full access to Kibana.
I've also tried logging into anonymous1 through Kibana UI and I am indeed able to utilize Kibana fully as seen from the picture below.
The configuration looks correct to me (except that the anonymous1 user is a way too powerful, please reduce the permissions if/when you expose Kibana to the internet).
Let's try to figure out what's going on here:
Have you tried setting xpack.security.sameSiteCookies to "None" as described here?
Can you try to open the tab with embedded Kibana in a private window? I just want to make sure you don't have any old cookies (you can also explicitly remove all Kibana-specific cookies with browser dev tools).
If two previous points don't help, can you please record and share a HAR file so that we can see how these infinite redirects look like exactly? It will also might help if you enable verbose logging for Kibana and share the relevant logs:
I assume I did have a cookies issue with google chrome.
I did try to use xpack.security.sameSiteCookies: "None" in my kibana.yml file but I received an error when trying to enter the website. But that should not be an issue since I know its a cookies error now.
For anonymous1 I will reduce its power as I just wanted to make sure I have full access when logging in.
Thank you for the help and advice! Really appreciate it!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.