grafana-gnocchi-datasource icon indicating copy to clipboard operation
grafana-gnocchi-datasource copied to clipboard

Issue Keystone Auth, forcing HTTPS

Open duhow opened this issue 7 years ago • 4 comments

Using Auth Mode keystone, with all settings OK (URL endpoint http://controller:5000, domain, project, user and password) and CORS enabled. Grafana gets the Keystone token and the Gnocchi endpoint, and goes to query it. But, the connection is done via HTTPS automatically forced, not HTTP. As HTTPS is not responding, data load fails. This happens in some versions of Firefox and Chrome, Internet Explorer is not having this issue and gets the data OK.

duhow avatar Jan 15 '18 11:01 duhow

Recent Chrome and Firefox are stricter about ssl. You can't mix non-ssl with ssl endpoint within the same page with CORS. So I don't think this can be solved on the plugin side. Maybe you should just ensure keystone AND Gnocchi are both in https://

Can you provide browser console output when the issue occurs ? so I can confirm my though.

sileht avatar Jan 15 '18 17:01 sileht

All connections are HTTP, Grafana, Keystone and Gnocchi. Endpoint Gnocchi is also set as HTTP.

In Firefox, directly queries to HTTPS, while Chrome does HTTP but then redirect 307 to HTTPS.

Tomorrow I'll send some screenshots.

duhow avatar Jan 15 '18 17:01 duhow

req1 req2

Console outputs:

Failed to load http://controller:8041/v1/search/resource/instance?filter=id+in+%5B%5D: Response for preflight is invalid (redirect)

duhow avatar Jan 16 '18 09:01 duhow

Same problems. I don't wont use inside ssl, so i configure CORS in keystone and gnocchi as http://my_ip:3000 If i use Internet Explorer all good, problem with redirects in firefox and chrome.

LuckyBirds avatar Jun 12 '18 08:06 LuckyBirds