mgr/dashboard: Display helpful message if Grafana dashboards are embedded via plain HTTP and may be blocked by the browser
From the dashboard documentation:
Ceph Dashboard embeds the Grafana dashboards via iframe HTML elements. If Grafana is configured without SSL/TLS support, most browsers will block the embedding of insecure content into a secured web page, if the SSL support in the dashboard has been enabled (which is the default configuration). If you can’t see the embedded Grafana dashboards after enabling them as outlined above, check your browser’s documentation on how to unblock mixed content. Alternatively, consider enabling SSL/TLS support in Grafana.
It would probably make sense for the dashboard to display a similar message, if the setting
grafana-api-url begins with
http:// and SSL is enabled on the dashboard.
It should be possible to disable/hide this message, if the user can or does not want to change the Grafana SSL configuration (and disables the security precaution in the browser instead).