-
Notifications
You must be signed in to change notification settings - Fork 31
Kibana Behind NGINX Proxy for Reporting (Failed Reporting with Security Enabled) #310
Comments
Here is the error showing in Kibana console when security is enabled
|
|
Hi,
|
I did some debugging and i can see that the cookie is propagated to pupeeter process, but not sure what happen I got this error
|
That usually means it's not landing on the correct page, so puppeteer couldn't find the html element to do the screenshot.
My suggestion is turn off the headless mode, so you can monitor how puppeteer launches a chromium and access the page, to see where it went wrong. Note: this requires the Choromium binary to support UI, currently only mac-version Chromium we released has UI. If you are not working on Mac, just try print more info while puppeteer is running kibana-reports/kibana-reports/server/routes/utils/visual_report/visualReportHelper.ts Line 63 in b17f359
Change this to false to enable Chromium UI. kibana-reports/kibana-reports/server/routes/utils/visual_report/visualReportHelper.ts Line 64 in b17f359
|
Thanks @zhongnansu for the hint |
@synapticiel No problem! Do you mind sharing some ideas on how you enabled the customized server.basePath, port and host, for reporting? |
HI @zhongnansu |
Thank you for your contribution. We just delivered a fix w.r.t #98. Please take a look |
I have deployed a local instance of Elasticsearch & Kibana (v7.10.0), OpenDistro (1.12.0)
I configured Kibana as follow :
The the following configuration is used for NGINX
I did some changes on the code (Forked from dev branch) to fix the issue #98 and i was able to get reporting working fine but only if securty is disabled
If i enable security, the process through an timeout, in server side i get define a custom URL for proxy in kibana.ymk and that URL is used by headless chromium to get the report, but when security is enabled, the process does not work (Error 401)
Does anyone was able to get Reporting working when Kibana is behind a proxy like NGINGX and security is enabled ?
Regards
The text was updated successfully, but these errors were encountered: